From 9af2312c4a685178c1821aff34f79501e9253cd3 Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Tue, 3 Jan 2023 11:24:37 +0800 Subject: [PATCH] OA单优化 --- packageE/pages/cart/cart2/cart2.js | 2 +- pages/cart/cart/cart.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packageE/pages/cart/cart2/cart2.js b/packageE/pages/cart/cart2/cart2.js index 1a0e683..c709394 100644 --- a/packageE/pages/cart/cart2/cart2.js +++ b/packageE/pages/cart/cart2/cart2.js @@ -3855,7 +3855,7 @@ Page({ }, function () { - return false; + // return false; //支付失败 setTimeout(function () { var cps = getCurrentPages(); diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js index a8fa924..072a779 100644 --- a/pages/cart/cart/cart.js +++ b/pages/cart/cart/cart.js @@ -1430,11 +1430,11 @@ Page({ a = this.data.requestData[b].goods[a]; console.log('add+'); - + if(this.data.sales_rules <2 || a.whsle_id || [1,2,4,6,8,9].indexOf(a.prom_type)>-1 ) { - if (a.goods_num < a.store_count) { - + if (a.goods_num > a.store_count) { + console.log('购买的数量不能-----'); // wx.showModal({ // title: '提示', // content: '购买的数量不能超出库存数量', -- libgit2 0.21.4