Commit a32a0a1d by 汪睦雄

提交修改限制bug

parent 7eeac9aa
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
], ],
"plugins": { "plugins": {
"live-player-plugin": { "live-player-plugin": {
"version": "1.0.2", "version": "1.1.0",
"provider": "wx2b03c6e691cd7370" "provider": "wx2b03c6e691cd7370"
} }
} }
......
...@@ -252,19 +252,20 @@ Page({ ...@@ -252,19 +252,20 @@ Page({
}) })
//检查是否限购,0为不限购 //检查是否限购,0为不限购
if (this.data.detail.vip_limits && this.data.detail.is_vip) { // if (this.data.detail.vip_limits && this.data.detail.is_vip) {
//检查当前购买数量是否大于限购 // //检查当前购买数量是否大于限购
console.log(this.data.detail.buy_vip_limits, this.data.detail.vip_limits); // console.log(this.data.detail.buy_vip_limits, this.data.detail.vip_limits);
if (this.data.detail.buy_vip_limits >= this.data.detail.vip_limits) { // if (this.data.detail.buy_vip_limits >= this.data.detail.vip_limits) {
//弹窗不让购买 // //弹窗不让购买
wx.showModal({ // wx.showModal({
title: '信息', // title: '信息',
content: '您已超过此活动的会员限购次数,如需额外购买,请联系客服处理!', // content: '您已超过此活动的会员限购次数,如需额外购买,请联系客服处理!',
showCancel: false // showCancel: false
}) // })
return; // return;
} // }
} // }
let status = this.data.detail.status let status = this.data.detail.status
// 0-立即报名;1-预约下次;2-已售罄 // 0-立即报名;1-预约下次;2-已售罄
if (status == 0) { if (status == 0) {
......
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