Commit 7b5ccb897c064e65bcbed433657779346872d5ca

Authored by 前端开发-罗建龙
1 parent cb5a1ee9

搭配购物流方式判断

components/cart_collect_temp/cart_collect_temp.js
@@ -75,17 +75,17 @@ Component({ @@ -75,17 +75,17 @@ Component({
75 if(ob.selected){ 75 if(ob.selected){
76 let distr_t=this.properties.distr_t 76 let distr_t=this.properties.distr_t
77 let distr_type=itr.distr_type 77 let distr_type=itr.distr_type
78 - let all_collocation_list=this.properties.all_collocation_list 78 + let all_collocation_list=this.properties.all_collocation_list
79 let disoff=0 79 let disoff=0
80 if(distr_t==0){ 80 if(distr_t==0){
81 - all_collocation_list.map(item=>{  
82 - if (item.selected && item.distr_type !=0 && item.distr_type !=distr_type) { 81 + all_collocation_list.map(item=>{
  82 + if (distr_type!=0 && item.selected && item.distr_type !=0 && item.distr_type !=distr_type) {
83 disoff=1 83 disoff=1
84 } 84 }
85 }) 85 })
86 }else{ 86 }else{
87 all_collocation_list.map(item=>{ 87 all_collocation_list.map(item=>{
88 - if (item.selected && item.distr_type !=0 && item.distr_type !=distr_type) { 88 + if (distr_type!=0 && item.selected && item.distr_type !=0 && item.distr_type !=distr_type) {
89 disoff=1 89 disoff=1
90 } 90 }
91 }) 91 })