Commit 0cb78db4 by 李嘉林

订阅成功提示

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