Commit 74106942 by 李嘉林

修改

parent 8a9b92b3
...@@ -54,7 +54,8 @@ export default { ...@@ -54,7 +54,8 @@ export default {
if (tmplIds.length > 0) { if (tmplIds.length > 0) {
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: tmplIds, tmplIds: tmplIds,
success(res) { success:(res)=> {
if(res.tmplIds[0]=="accept"){
wx.showToast({ wx.showToast({
title: "您已成功订阅~", title: "您已成功订阅~",
icon: "success" icon: "success"
...@@ -65,6 +66,7 @@ export default { ...@@ -65,6 +66,7 @@ export default {
subMessageTemplateId:tmplIds[0], 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