From c2f9aaf00edf2bdb3252c85db75778e6b901b0d2 Mon Sep 17 00:00:00 2001 From: abson Date: Tue, 28 Dec 2021 19:53:59 +0800 Subject: [PATCH] 优化空白行 --- packageB/pages/zuhegou/index/index.js | 7 ++----- pages/cart/cart/zh_calculate.js | 5 +---- pages/cart/cart2/zh_calculate.js | 7 ++----- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/packageB/pages/zuhegou/index/index.js b/packageB/pages/zuhegou/index/index.js index 181e4db..e6c47c3 100644 --- a/packageB/pages/zuhegou/index/index.js +++ b/packageB/pages/zuhegou/index/index.js @@ -1971,7 +1971,6 @@ Page({ if(this.data.act.is_bzyh && zhqty_bz.length > 0 ){ if(zhqty_bz.length>1){ zhqty_len=1; - aprice += be * aprice; let min_bz_num= Math.min.apply(Math, zhqty_bz.map(function(o) {return o['num']})); let new_arr=zhqty_bz.filter(ii=>{ return ii['num']==min_bz_num @@ -1997,10 +1996,9 @@ Page({ no_in_arr.splice(index,1) } } + aprice += be * aprice; }else{ - for(let i=0;i 0) { if(zhqty_bz.length>1){ zhqty_len=1; - aprice += be * aprice; let min_bz_num= Math.min.apply(Math, zhqty_bz.map(function(o) {return o['num']})); let new_arr=zhqty_bz.filter(ii=>{ return ii['num']==min_bz_num @@ -264,9 +263,8 @@ module.exports = { no_in_arr.splice(index,1) } } + aprice += be * aprice; }else{ - // for(let i=0;i 0) { if(zhqty_bz.length>1){ zhqty_len=1; - aprice += be * aprice; let min_bz_num= Math.min.apply(Math, zhqty_bz.map(function(o) {return o['num']})); let new_arr=zhqty_bz.filter(ii=>{ return ii['num']==min_bz_num @@ -176,10 +175,9 @@ module.exports = { no_in_arr.splice(index,1) } } + aprice += be * aprice; }else{ - for(let i=0;i