Commit 75550135e87c9318fab92270d55d98ffa3d450cd
1 parent
b78d10f4
搭配预存优化
Showing
1 changed file
with
4 additions
and
3 deletions
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -363,7 +363,7 @@ Page({ |
363 | 363 | this.setData({ [txt]: 2 }) |
364 | 364 | } |
365 | 365 | //搭配购直接购买特殊处理 |
366 | - if(this.data.collocation_goods && this.data.cartlist){ | |
366 | + if(this.data.collocation_goods && this.data.collocation_goods.length>0 && this.data.cartlist){ | |
367 | 367 | let txt = 'cartlist[0].yck_off'; |
368 | 368 | let txt1 = 'old_cartlist[0].yck_off'; |
369 | 369 | if (this.data.cartlist[0].yck_off == 2) { |
... | ... | @@ -2878,7 +2878,7 @@ Page({ |
2878 | 2878 | |
2879 | 2879 | if (!good) return false; |
2880 | 2880 | |
2881 | - //搭配的计算要用购物的车计算方法 | |
2881 | + //搭配的计算要用购物的车计算方法 | |
2882 | 2882 | // if (good.prom_type == 5 ) { |
2883 | 2883 | |
2884 | 2884 | if (good.prom_type == 5 ) { |
... | ... | @@ -3226,7 +3226,7 @@ Page({ |
3226 | 3226 | } else { |
3227 | 3227 | th.setData({ [order_prom_txt1]: 0, [order_prom_txt2]: 0 }) |
3228 | 3228 | } |
3229 | - | |
3229 | + | |
3230 | 3230 | //预存金额使用参与计算 |
3231 | 3231 | if (th.data.udata && th.data.udata.Balance > 0 && order_m * 1 > 0) { |
3232 | 3232 | if (!th.data.bn_goods.keyid) { |
... | ... | @@ -6533,6 +6533,7 @@ Page({ |
6533 | 6533 | select_coll(e) { |
6534 | 6534 | console.log("--1111--aaa--"); |
6535 | 6535 | console.log(e); |
6536 | + | |
6536 | 6537 | //-- 如果是购物车的选择添加搭配商品 -- |
6537 | 6538 | if (e.detail.is_cart == 1) { |
6538 | 6539 | this.select_coll_buy_cart(e.detail); | ... | ... |