Commit 3c8862753f32e9ccea3e67f6442cf480eca4faef

Authored by yvan.ni
1 parent 37bb6ed8

购物 is_discount_amount =1的优化, 只有再第一次平摊的时候才能等一1

Showing 1 changed file with 1 additions and 2 deletions
pages/cart/cart2/cart2.js
@@ -2240,7 +2240,6 @@ Page({ @@ -2240,7 +2240,6 @@ Page({
2240 if (th.data.is_all_zt == 1) addr = null; 2240 if (th.data.is_all_zt == 1) addr = null;
2241 var val_arr = t.detail.value; 2241 var val_arr = t.detail.value;
2242 2242
2243 -  
2244 if (th.data.is_all_zt != 1) 2243 if (th.data.is_all_zt != 1)
2245 if (th.data.wu_arr == null || th.data.wu_arr.length <= 0) { 2244 if (th.data.wu_arr == null || th.data.wu_arr.length <= 0) {
2246 th.data.is_summit_ing = 0; 2245 th.data.is_summit_ing = 0;
@@ -2426,7 +2425,7 @@ Page({ @@ -2426,7 +2425,7 @@ Page({
2426 } 2425 }
2427 2426
2428 //把优惠的平摊结果写进去 2427 //把优惠的平摊结果写进去
2429 - if (g_item.account >= 0 || g_item.account_yu != 0) { 2428 + if (g_item.account >= 0 || (g_item.account_yu != 0 && g_item.account!=undefined)) {
2430 if (g_item.account >= 0) goods.account = g_item.account; 2429 if (g_item.account >= 0) goods.account = g_item.account;
2431 if (g_item.account_yu != 0) goods.account_yu = g_item.account_yu; 2430 if (g_item.account_yu != 0) goods.account_yu = g_item.account_yu;
2432 item.is_discount_amount = 1; 2431 item.is_discount_amount = 1;