更新
This commit is contained in:
parent
c9fd0ac0ab
commit
9d5b5426f9
@ -91,7 +91,7 @@
|
|||||||
<text class="sub_title">配送方式:</text>
|
<text class="sub_title">配送方式:</text>
|
||||||
<view class="flex">
|
<view class="flex">
|
||||||
<checkbox-group name="" @change="checkboxChange">
|
<checkbox-group name="" @change="checkboxChange">
|
||||||
<checkbox disabled :checked="isZiti" :value="check.ziti" /><text
|
<checkbox :checked="isZiti" :value="check.ziti" /><text
|
||||||
class="text ziti">到店自提</text>
|
class="text ziti">到店自提</text>
|
||||||
<checkbox :checked="isKuaidi" :value="check.kuaidi" /><text class="text">商家配送</text>
|
<checkbox :checked="isKuaidi" :value="check.kuaidi" /><text class="text">商家配送</text>
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
@ -369,7 +369,16 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkboxChange(val) {
|
checkboxChange(val) {
|
||||||
this.delivery_way = val.detail.value
|
if(val.detail.value.length==0) {
|
||||||
|
this.isZiti = false;
|
||||||
|
this.isKuaidi = false;
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
if(this.delivery_way[0]==1) this.isZiti = true;
|
||||||
|
else this.isKuaidi = true;
|
||||||
|
})
|
||||||
|
return Toast('请至少选择一种配送方式!');
|
||||||
|
}
|
||||||
|
this.delivery_way = val.detail.value;
|
||||||
},
|
},
|
||||||
//开启信用购
|
//开启信用购
|
||||||
change(e) {
|
change(e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user