From 7b5ccb897c064e65bcbed433657779346872d5ca Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Fri, 3 Feb 2023 17:42:50 +0800 Subject: [PATCH] 搭配购物流方式判断 --- components/cart_collect_temp/cart_collect_temp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/cart_collect_temp/cart_collect_temp.js b/components/cart_collect_temp/cart_collect_temp.js index c3e4e1e..32d4b38 100644 --- a/components/cart_collect_temp/cart_collect_temp.js +++ b/components/cart_collect_temp/cart_collect_temp.js @@ -75,17 +75,17 @@ Component({ if(ob.selected){ let distr_t=this.properties.distr_t let distr_type=itr.distr_type - let all_collocation_list=this.properties.all_collocation_list + let all_collocation_list=this.properties.all_collocation_list let disoff=0 if(distr_t==0){ - all_collocation_list.map(item=>{ - if (item.selected && item.distr_type !=0 && item.distr_type !=distr_type) { + all_collocation_list.map(item=>{ + if (distr_type!=0 && item.selected && item.distr_type !=0 && item.distr_type !=distr_type) { disoff=1 } }) }else{ all_collocation_list.map(item=>{ - if (item.selected && item.distr_type !=0 && item.distr_type !=distr_type) { + if (distr_type!=0 && item.selected && item.distr_type !=0 && item.distr_type !=distr_type) { disoff=1 } }) -- libgit2 0.21.4