diff --git a/components/diy_floatingBox/diy_floatingBox.wxss b/components/diy_floatingBox/diy_floatingBox.wxss index ef59390..9d6d1fe 100644 --- a/components/diy_floatingBox/diy_floatingBox.wxss +++ b/components/diy_floatingBox/diy_floatingBox.wxss @@ -22,7 +22,7 @@ z-index: 100; background-color: #fff; border: 1px solid #adadad; - box-shadow: 0 0 10px 2px #adadad; + /* box-shadow: 0 0 10px 2px #adadad; */ display: flex; align-items: center; justify-content: center; diff --git a/components/diy_service/diy_service.wxss b/components/diy_service/diy_service.wxss index 9c7b0e3..977ca16 100644 --- a/components/diy_service/diy_service.wxss +++ b/components/diy_service/diy_service.wxss @@ -1,5 +1,5 @@ .custom-service{ width: 80rpx; height: 80rpx; border-radius: 50%; background-color: #fff;z-index: 100; - border: 1px solid #adadad; box-shadow: 0 0 10px 2px #adadad; line-height: 28rpx; + border: 1px solid #adadad; line-height: 28rpx; right: 2rpx; display: flex;align-items: center;justify-content: center;} .cs-img{ width: 36rpx; height: 36rpx;} diff --git a/packageE/pages/cart/cart2/cart2.js b/packageE/pages/cart/cart2/cart2.js index bec46df..5742e16 100644 --- a/packageE/pages/cart/cart2/cart2.js +++ b/packageE/pages/cart/cart2/cart2.js @@ -1027,39 +1027,43 @@ Page({ //-- 判断组合购是总数量是不是存在 -- var no_zh_num={}; //-- 多促销活动调用接口需要的参数,和商品的购买数量和活动的购买数量的请求参数 -- - var dug_cx_arr = []; - //获取 限购 和 多活动的促销---2024-2-1 - for (var i = 0; i < carr.length; i++) { - let item1 = carr[i]; - //如果不是活动的时候,不是代发商品的时候,不是赠品的时候,不是阶梯商品拆分的,不是组合购拆分的 - if([1, 2, 4, 6, 8, 9].indexOf(item1.prom_type)== -1 && !item1.whsle_id - && !item1.is_gift && !item1.is_ld_split && !item1.is_zh_split ){ - //-- 快速查找,组装查询多活动的列表 -- - let f_idx=dug_cx_arr.findIndex(function (ele) { - return ele.goods_id == item1.goods_id - }); - if(f_idx==-1) { - let gd_ite={ - goods_id:carr[i].goods_id, - goods_num:1, - is_limit_show:1, - is_state:0 + if(!is_change){ + var dug_cx_arr = []; + //获取 限购 和 多活动的促销---2024-2-1 + for (var i = 0; i < carr.length; i++) { + + let item1 = carr[i]; + //如果不是活动的时候,不是代发商品的时候,不是赠品的时候,不是阶梯商品拆分的,不是组合购拆分的 + if([1, 2, 4, 6, 8, 9].indexOf(item1.prom_type)== -1 && !item1.whsle_id + && !item1.is_gift && !item1.is_ld_split && !item1.is_zh_split ){ + //-- 快速查找,组装查询多活动的列表 -- + let f_idx=dug_cx_arr.findIndex(function (ele) { + return ele.goods_id == item1.goods_id + }); + if(f_idx==-1) { + let gd_ite={ + goods_id:carr[i].goods_id, + goods_num:1, + is_limit_show:1, + is_state:0 + } + dug_cx_arr.push(gd_ite); } - dug_cx_arr.push(gd_ite); + } + if(is_change){ + carr[i].collocationList=null; + } } - - if(is_change){ - carr[i].collocationList=null; + //-- 对商品的多促销进行判断 ---2024-2-1-- + if(dug_cx_arr.length){ + await th.buy_pro_group(dug_cx_arr,carr); } } - //-- 对商品的多促销进行判断 ---2024-2-1-- - if(dug_cx_arr.length){ - await th.buy_pro_group(dug_cx_arr,carr); - } + //在分组的时候,就不要再调用接口,await for (var i = 0; i < carr.length; i++) { var item = carr[i]; @@ -2477,9 +2481,9 @@ Page({ ord_goods.splice(pos+1,0,newd); th.data.old_cartlist[i].goods.splice(pos2+1,0,newd); - - var txt9 = "cartlist[" + i + "].goods["+(pos+1)+"]"; - th.setData({ [txt9]: newd }) + var txt9 = "cartlist[" + i + "].goods"; + th.setData({ [txt9]: ord_goods }) + } @@ -8610,6 +8614,11 @@ Page({ //--- 不参与优惠促销的开关 --- no_cj_prom: function (e) { + //重新调用cart_next,进行下一步计算 + wx.showLoading({ + title: "处理中.", + }) + this.setData({ send_lb:{}, month_lb:{}, @@ -8693,10 +8702,7 @@ Page({ th.data.cartlist_y = JSON.parse(JSON.stringify(n_goods)) - //重新调用cart_next,进行下一步计算 - wx.showLoading({ - title: "处理中.", - }) + this.get_cart_next(null, 1, {prom_type: 0, prom_id: 0}); diff --git a/packageE/pages/cart/cart2/cart2.wxml b/packageE/pages/cart/cart2/cart2.wxml index 4e3b855..1c395ed 100644 --- a/packageE/pages/cart/cart2/cart2.wxml +++ b/packageE/pages/cart/cart2/cart2.wxml @@ -122,7 +122,7 @@ - + @@ -210,7 +210,7 @@ - + - diff --git a/pages/goods/categoryList/categoryList.wxml b/pages/goods/categoryList/categoryList.wxml index 954d239..843abfc 100644 --- a/pages/goods/categoryList/categoryList.wxml +++ b/pages/goods/categoryList/categoryList.wxml @@ -306,7 +306,7 @@ - + {{classify_name}} 更多 @@ -340,7 +340,7 @@ - + {{goods.items.name}}