Commit 9af2312c4a685178c1821aff34f79501e9253cd3
1 parent
2f691db0
OA单优化
Showing
2 changed files
with
4 additions
and
4 deletions
packageE/pages/cart/cart2/cart2.js
pages/cart/cart/cart.js
... | ... | @@ -1430,11 +1430,11 @@ Page({ |
1430 | 1430 | a = this.data.requestData[b].goods[a]; |
1431 | 1431 | |
1432 | 1432 | console.log('add+'); |
1433 | - | |
1433 | + | |
1434 | 1434 | if(this.data.sales_rules <2 || a.whsle_id || [1,2,4,6,8,9].indexOf(a.prom_type)>-1 ) { |
1435 | 1435 | |
1436 | - if (a.goods_num < a.store_count) { | |
1437 | - | |
1436 | + if (a.goods_num > a.store_count) { | |
1437 | + console.log('购买的数量不能-----'); | |
1438 | 1438 | // wx.showModal({ |
1439 | 1439 | // title: '提示', |
1440 | 1440 | // content: '购买的数量不能超出库存数量', | ... | ... |