Commit 88c84412769404cf63fdae53611b171350da0edd
1 parent
165889cc
oa优化
Showing
1 changed file
with
2 additions
and
1 deletions
packageE/pages/cart/cart2/cart2.js
| ... | ... | @@ -3098,11 +3098,12 @@ Page({ |
| 3098 | 3098 | for (let j = 0,length=strarr.length; j < length; j++) { |
| 3099 | 3099 | |
| 3100 | 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 | 3102 | cbarr.push(strarr[j].goods_name) |
| 3103 | 3103 | cbarr_id.push(strarr[j].id) |
| 3104 | 3104 | } |
| 3105 | 3105 | } |
| 3106 | + | |
| 3106 | 3107 | if(cbarr.length>0){ |
| 3107 | 3108 | let str = cbarr.join() |
| 3108 | 3109 | wx.showModal({ | ... | ... |