Commit 9af2312c4a685178c1821aff34f79501e9253cd3
1 parent
2f691db0
OA单优化
Showing
2 changed files
with
4 additions
and
4 deletions
packageE/pages/cart/cart2/cart2.js
| @@ -3855,7 +3855,7 @@ Page({ | @@ -3855,7 +3855,7 @@ Page({ | ||
| 3855 | }, function () { | 3855 | }, function () { |
| 3856 | 3856 | ||
| 3857 | 3857 | ||
| 3858 | - return false; | 3858 | + // return false; |
| 3859 | //支付失败 | 3859 | //支付失败 |
| 3860 | setTimeout(function () { | 3860 | setTimeout(function () { |
| 3861 | var cps = getCurrentPages(); | 3861 | var cps = getCurrentPages(); |
pages/cart/cart/cart.js
| @@ -1430,11 +1430,11 @@ Page({ | @@ -1430,11 +1430,11 @@ Page({ | ||
| 1430 | a = this.data.requestData[b].goods[a]; | 1430 | a = this.data.requestData[b].goods[a]; |
| 1431 | 1431 | ||
| 1432 | console.log('add+'); | 1432 | console.log('add+'); |
| 1433 | - | 1433 | + |
| 1434 | if(this.data.sales_rules <2 || a.whsle_id || [1,2,4,6,8,9].indexOf(a.prom_type)>-1 ) { | 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 | // wx.showModal({ | 1438 | // wx.showModal({ |
| 1439 | // title: '提示', | 1439 | // title: '提示', |
| 1440 | // content: '购买的数量不能超出库存数量', | 1440 | // content: '购买的数量不能超出库存数量', |