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