This commit is contained in:
weipengfei 2024-03-21 14:36:49 +08:00
parent c9fd0ac0ab
commit 9d5b5426f9
1 changed files with 11 additions and 2 deletions

View File

@ -91,7 +91,7 @@
<text class="sub_title">配送方式</text>
<view class="flex">
<checkbox-group name="" @change="checkboxChange">
<checkbox disabled :checked="isZiti" :value="check.ziti" /><text
<checkbox :checked="isZiti" :value="check.ziti" /><text
class="text ziti">到店自提</text>
<checkbox :checked="isKuaidi" :value="check.kuaidi" /><text class="text">商家配送</text>
</checkbox-group>
@ -369,7 +369,16 @@
})
},
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) {