Commit debd1056a7252cc10066cf9579cb335cccea949f

Authored by wangfan
1 parent c3f5d7d8

seller-Invitation

@@ -217,23 +217,15 @@ Page({ @@ -217,23 +217,15 @@ Page({
217 }) 217 })
218 }, 218 },
219 shareSetting(){ 219 shareSetting(){
220 - console.log('this.topicVal', this.topicVal)  
221 - if (this.topicVal && this.data.detail.openid == getApp().openid) {  
222 - App.Reserve.SetTopicFromShare({  
223 - rid: this.id,  
224 - topic: this.topicVal  
225 - })  
226 - }  
227 - let nickname = "";  
228 - try {  
229 - nickname = util.cache('userInfo').nickName;  
230 - } catch (e) {  
231 - }  
232 return { 220 return {
233 - //title: (nickname||'')+'给你发了一个邀请,点击查看',  
234 title: '你收到一个邀请函,点击查看', 221 title: '你收到一个邀请函,点击查看',
235 - path: '/pages/customer/index?id=' + this.id + '&fromid=' + getApp().openid + '&invite_name=' + nickname + '&hasInvitation=1',  
236 - imageUrl: util.cgi('App.Reserve.MakePic&rid=') + this.id, 222 + path: util.http_build_query({
  223 + id:this.id,
  224 + fromid:getApp().openid,
  225 + hasInvitation:1,
  226 + tplid:this.data.options.tplid,
  227 + },'/pages/customer/index'),
  228 + imageUrl: this.data.tpls[0].shareImage,
237 } 229 }
238 }, 230 },
239 cookbook(){ 231 cookbook(){