Commit aeb8e765 authored by wildfirecode13's avatar wildfirecode13

111

parent 0ebe8c4a
......@@ -150,13 +150,31 @@ Page({
}
})
.catch(res => { console.warn(res); commonToast(res && res.message); }) || {};
this.checkDohelp();
},
checkDohelp(){
if(this.inviteId) {
//是分享落地页,可以助力
//todo 需要判断是不是会员
commonToast('准备5秒后给邀请者助力~');
setTimeout(() => {
API.doHelp({activityId: app.activityId,inviteId:this.inviteId}).then(res=>{
commonToast('助力成功~');
}).catch(err=>{
commonToast(JSON.stringify(err));
});
}, 5000);
}else{
commonToast('不是分享落地页,不需要走助力~')
}
},
// 分享
onShareAppMessage() {
// 返回自定义分享信息
SHARE_CONFIG.imageUrl = ''
SHARE_CONFIG.path = this.changeURLArg('/pages/homePage/homePage', 'shareId', app.openId)
SHARE_CONFIG.path = this.changeURLArg('/pages/homePage/homePage', 'inviteId', app.openId)
console.log('SHARE_CONFIG.path',SHARE_CONFIG.path)
return SHARE_CONFIG;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment