Commit abf9108ed1dfe3491ed501a9a5636e138b69be81

Authored by yvan.ni
1 parent d88787b9

外网的bug优化

packageE/pages/cart/cart2/cart2.js
... ... @@ -2759,6 +2759,10 @@ Page({
2759 2759 for (var i in c_arr) {
2760 2760 var cart_item = c_arr[i];
2761 2761 cart_item.prom_pt_json=[];
  2762 + //要清空
  2763 + cart_item.g_zxlb_num=[];
  2764 + cart_item.g_lb_num=[];
  2765 + cart_item.g_monthlb_num=[];
2762 2766 }
2763 2767  
2764 2768 //调用函数计算每件商品的单价
... ...
pages/user/order_detail/order_detail.js
... ... @@ -2042,12 +2042,16 @@ Page({
2042 2042 newd['is_pd_normal']=g_item.is_pd_normal;
2043 2043 }
2044 2044 if(g_item.prom_type){
2045   - newd['prom_type']=g_item.prom_type;
2046   - newd['prom_id']=g_item.prom_id;
  2045 + //3,5,7,10加入购物车,统一prom_type为0
  2046 + if([3,5,7,10].indexOf(g_item.prom_type)>-1){
  2047 + g_item.prom_type=0;
  2048 + g_item.prom_id=0;
  2049 + }
  2050 + newd['prom_type']=g_item.prom_type;
  2051 + newd['prom_id']=g_item.prom_id;
2047 2052 }
2048 2053  
2049   -
2050   -
  2054 +
2051 2055 var b_cart_goods=null;
2052 2056 await getApp().request.promiseGet("/api/weshop/cart/page", {
2053 2057 data: {
... ...