修改默认地址checked格式错误的问题;修改编辑地址不回显的问题
This commit is contained in:
@ -107,14 +107,16 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
items(nextItem) {
|
||||
console.log(nextItem);
|
||||
this.province = nextItem;
|
||||
},
|
||||
defaultValue(next){
|
||||
this.value=next
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this);
|
||||
if (this.defaultValue) {
|
||||
this.value = this.defaultValue;
|
||||
if (this.value) {
|
||||
this.value = this.value;
|
||||
}
|
||||
this.province = this.items;
|
||||
},
|
||||
|
@ -20,7 +20,8 @@
|
||||
"modules" : {
|
||||
"OAuth" : {},
|
||||
"Payment" : {},
|
||||
"Share" : {}
|
||||
"Share" : {},
|
||||
"Geolocation" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
@ -74,7 +75,8 @@
|
||||
"UniversalLinks" : "https://yixiang.co/app/"
|
||||
}
|
||||
},
|
||||
"ad" : {}
|
||||
"ad" : {},
|
||||
"geolocation" : {}
|
||||
},
|
||||
"splashscreen" : {
|
||||
"ios" : {
|
||||
|
@ -28,7 +28,7 @@
|
||||
<view class="checkbox-wrapper">
|
||||
<checkbox-group @change="ChangeIsDefault">
|
||||
<label class="well-check">
|
||||
<checkbox value :checked="userAddress.isDefault ? true : false"></checkbox>
|
||||
<checkbox :value="userAddress.isDefault==1?'checked':''" :checked="userAddress.isDefault ? true : false"></checkbox>
|
||||
<text class="def">设置为默认地址</text>
|
||||
</label>
|
||||
</checkbox-group>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<view class="checkbox-wrapper">
|
||||
<checkbox-group @change="radioChange(item.id)">
|
||||
<label class="well-check">
|
||||
<checkbox value :checked="item.isDefault||item.isDefault=='1' ? true : false"></checkbox>
|
||||
<checkbox :value="item.isDefault==1?'checked':''" :checked="item.isDefault||item.isDefault=='1' ? true : false"></checkbox>
|
||||
<text class="default">设为默认</text>
|
||||
</label>
|
||||
</checkbox-group>
|
||||
|
Reference in New Issue
Block a user