|
...
|
...
|
@@ -11,6 +11,7 @@ Page({ |
|
|
|
dataStr: Date.now() * 1 / 1000,
|
|
|
|
detail: {},
|
|
|
|
exp_date: {},
|
|
|
|
isShow:'1',
|
|
|
|
resultCoupon: '', //0未领取 1已领取
|
|
|
|
},
|
|
|
|
/**
|
|
...
|
...
|
@@ -167,6 +168,23 @@ Page({ |
|
|
|
firstTitle
|
|
|
|
};
|
|
|
|
},
|
|
|
|
// 点转发后核销
|
|
|
|
writeOff(){
|
|
|
|
console.log('点转发后',{...this.data.detail});
|
|
|
|
if(this.data.detail.arule.is_share_have == '0' && this.data.detail.activity_id){
|
|
|
|
App.Activity.SetActivityStatus({
|
|
|
|
id: this.data.detail.activity_id,
|
|
|
|
}).then(res => {
|
|
|
|
if (res.ret == '200') {
|
|
|
|
console.log('转发核销');
|
|
|
|
this.setData({
|
|
|
|
isShow:'0'
|
|
|
|
})
|
|
|
|
wx.hideShareMenu()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sharesetting() {
|
|
|
|
let data = this.data.opt;
|
|
|
|
let detail = this.data.detail;
|
|
...
|
...
|
@@ -183,6 +201,8 @@ Page({ |
|
|
|
sellerid:this.data.opt.sid
|
|
|
|
}).then(res => {
|
|
|
|
if (res.ret === 200) {
|
|
|
|
let detail = this.data.detail;
|
|
|
|
detail.activity_id = res.data.length > 0 ? res.data[0].activity_id : '';
|
|
|
|
this.setData({
|
|
|
|
resultCoupon: res.data.length > 0 ? '1' : '0',
|
|
|
|
})
|
|
...
|
...
|
@@ -237,6 +257,7 @@ Page({ |
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onShareAppMessage() {
|
|
|
|
this.writeOff()
|
|
|
|
return this.sharesetting();
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|