Commit 88c84412769404cf63fdae53611b171350da0edd

Authored by 前端开发-罗建龙
1 parent 165889cc

oa优化

packageE/pages/cart/cart2/cart2.js
@@ -3098,11 +3098,12 @@ Page({ @@ -3098,11 +3098,12 @@ Page({
3098 for (let j = 0,length=strarr.length; j < length; j++) { 3098 for (let j = 0,length=strarr.length; j < length; j++) {
3099 3099
3100 let userbuynum = await this.getUserBuyPromNum(strarr[j].goods_prom_id) 3100 let userbuynum = await this.getUserBuyPromNum(strarr[j].goods_prom_id)
3101 - if (userbuynum >=strarr[j].act.buy_limit) { 3101 + if (strarr[j].act.buy_limit !=0 && userbuynum >=strarr[j].act.buy_limit) {
3102 cbarr.push(strarr[j].goods_name) 3102 cbarr.push(strarr[j].goods_name)
3103 cbarr_id.push(strarr[j].id) 3103 cbarr_id.push(strarr[j].id)
3104 } 3104 }
3105 } 3105 }
  3106 +
3106 if(cbarr.length>0){ 3107 if(cbarr.length>0){
3107 let str = cbarr.join() 3108 let str = cbarr.join()
3108 wx.showModal({ 3109 wx.showModal({