Commit 74106942 by 李嘉林

修改

parent 8a9b92b3
...@@ -54,17 +54,19 @@ export default { ...@@ -54,17 +54,19 @@ export default {
if (tmplIds.length > 0) { if (tmplIds.length > 0) {
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: tmplIds, tmplIds: tmplIds,
success(res) { success:(res)=> {
wx.showToast({ if(res.tmplIds[0]=="accept"){
title: "您已成功订阅~", wx.showToast({
icon: "success" title: "您已成功订阅~",
}); icon: "success"
let query = { });
liveBroadcastId: Number(_this.liveId), let query = {
openId: wx.getStorageSync("openid"), liveBroadcastId: Number(_this.liveId),
subMessageTemplateId:tmplIds[0], openId: wx.getStorageSync("openid"),
}; subMessageTemplateId:tmplIds[0],
live.addLiveNoticeByCustomer(query).then(res => {}); };
live.addLiveNoticeByCustomer(query).then(res => {});
}
console.log("message success response: ", res); console.log("message success response: ", res);
}, },
fail(res) { fail(res) {
......
...@@ -174,6 +174,9 @@ export default { ...@@ -174,6 +174,9 @@ export default {
}else if(querys.length == 2){ }else if(querys.length == 2){
this.params += `&userId=${querys[1]}` this.params += `&userId=${querys[1]}`
} }
}else if(querys[0] == "coupon"){
this.page = `/personalCenter/coupon/getCoupon`;
this.params+=`&couponId=${querys[1]}`
} }
} }
console.log(querys, "scene"); console.log(querys, "scene");
......
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