Commit 0cb78db4 by 李嘉林

订阅成功提示

parent e9ecca37
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
methods: { methods: {
// 开播提醒 // 开播提醒
remind() { remind() {
let _this=this; let _this = this;
console.log("点击开播,'------------34"); console.log("点击开播,'------------34");
try { try {
const subscribeMessageObj = this.$store.state.subscribeMessageObj; const subscribeMessageObj = this.$store.state.subscribeMessageObj;
...@@ -55,11 +55,15 @@ export default { ...@@ -55,11 +55,15 @@ export default {
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: tmplIds, tmplIds: tmplIds,
success(res) { success(res) {
let query={ wx.showToast({
liveBroadcastId:Number(_this.liveId), title: "您已成功订阅~",
openId:wx.getStorageSync("openid"), icon: "success"
} });
live.addLiveNoticeByCustomer(query).then(res=>{}); let query = {
liveBroadcastId: Number(_this.liveId),
openId: wx.getStorageSync("openid")
};
live.addLiveNoticeByCustomer(query).then(res => {});
console.log("message success response: ", res); console.log("message success response: ", res);
}, },
fail(res) { fail(res) {
......
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