Commit a3f2f1b6f51f2e76f2432a2d0a05b9d1fbc2fd60

Authored by wangfan
1 parent e2ff7691

seller-Invitation

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