|
...
|
...
|
@@ -114,12 +114,25 @@ Page({ |
|
|
|
},
|
|
|
|
userinfo(){
|
|
|
|
if(!this.data.detail.hasCanSuccess){
|
|
|
|
let userInfo=util.cache('userInfo');
|
|
|
|
if(userInfo){
|
|
|
|
userInfo=JSON.stringify({
|
|
|
|
openid: getApp().openid,
|
|
|
|
avatar: userInfo.avatarUrl,
|
|
|
|
nickname: userInfo.nickName,
|
|
|
|
gender: userInfo.gender
|
|
|
|
})
|
|
|
|
}
|
|
|
|
App.Reserve.SetRelaSuccess({
|
|
|
|
rid:this.id,
|
|
|
|
openid:getApp().openid,
|
|
|
|
is_agree:1,
|
|
|
|
userinfo:userInfo
|
|
|
|
}).then(res=>{
|
|
|
|
this.getDetail(true);
|
|
|
|
App.Reserve.Detail({
|
|
|
|
openid: getApp().openid,
|
|
|
|
rid: this.id
|
|
|
|
},'clear')
|
|
|
|
wx.navigateTo({
|
|
|
|
//id={{detail.id}}&rdate={{detail.rdate}}
|
|
|
|
url:'remind?id='+this.id+'&rdate='+this.data.detail.rdate,
|
|
...
|
...
|
@@ -132,14 +145,24 @@ Page({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
reserveCancel(){
|
|
|
|
App.Reserve.SetRelaSuccess({
|
|
|
|
rid:this.id,
|
|
|
|
openid:getApp().openid,
|
|
|
|
cancel:'cancel',
|
|
|
|
is_agree:0
|
|
|
|
}).then(res=>{
|
|
|
|
this.getDetail(true);
|
|
|
|
let userInfo = util.cache('userInfo');
|
|
|
|
if (userInfo) {
|
|
|
|
userInfo = JSON.stringify({
|
|
|
|
openid: getApp().openid,
|
|
|
|
avatar: userInfo.avatarUrl,
|
|
|
|
nickname: userInfo.nickName,
|
|
|
|
gender: userInfo.gender
|
|
|
|
})
|
|
|
|
}
|
|
|
|
App.Reserve.SetRelaSuccess({
|
|
|
|
rid: this.id,
|
|
|
|
openid: getApp().openid,
|
|
|
|
cancel: 'cancel',
|
|
|
|
is_agree: 0,
|
|
|
|
userinfo: userInfo
|
|
|
|
}).then(res => {
|
|
|
|
this.getDetail(true);
|
|
|
|
})
|
|
|
|
},
|
|
|
|
shareSetting(){
|
|
|
|
console.log('this.topicVal',this.topicVal)
|
|
...
|
...
|
@@ -159,4 +182,4 @@ Page({ |
|
|
|
imageUrl:util.cgi('App.Reserve.MakePic&rid=')+this.id,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
|
|
|
}) |
...
|
...
|
|