|
...
|
...
|
@@ -55,10 +55,10 @@ Page({ |
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onPullDownRefresh: function () {
|
|
|
|
|
|
|
|
onShareAppMessage: function () {
|
|
|
|
return this.shareSetting();
|
|
|
|
},
|
|
|
|
getDetail(fouce=false){
|
|
|
|
App.Reserve.Detail({
|
|
...
|
...
|
@@ -120,9 +120,9 @@ Page({ |
|
|
|
this.getDetail(true);
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
wx.navigateTo({
|
|
|
|
url:'invite?id='+this.id,
|
|
|
|
});
|
|
|
|
// wx.navigateTo({
|
|
|
|
// url:'invite?id='+this.id,
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
},
|
|
|
|
reserveCancel(){
|
|
...
|
...
|
@@ -133,5 +133,22 @@ Page({ |
|
|
|
}).then(res=>{
|
|
|
|
this.getDetail(true);
|
|
|
|
})
|
|
|
|
},
|
|
|
|
shareSetting(){
|
|
|
|
console.log('this.topicVal',this.topicVal)
|
|
|
|
if(this.topicVal && this.data.detail.openid==getApp().openid){
|
|
|
|
App.Reserve.SetTopicFromShare({
|
|
|
|
rid:this.id,
|
|
|
|
topic:this.topicVal
|
|
|
|
})
|
|
|
|
}
|
|
|
|
let nickname="";
|
|
|
|
try{
|
|
|
|
nickname=util.cache('userInfo').nickName;
|
|
|
|
}catch(e){}
|
|
|
|
return {
|
|
|
|
title: nickname+'给你发了一个邀请,点击查看',
|
|
|
|
path: '/pages/customer/index?id='+this.id+'&fromid='+getApp().openid+'&invite_name='+nickname,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|