|
|
|
@ -27,8 +27,8 @@ |
|
|
|
|
<view class="b"> |
|
|
|
|
<picker mode="multiSelector" @change="multiChange" @columnchange="columnChange" |
|
|
|
|
value="{{multiIndex}}" :range="multiArray" range-key="name"> |
|
|
|
|
<view class="pbox" :style="{'color': cityInfo.province?'#303030':'#C7C7C7' }"> |
|
|
|
|
{{cityInfo?cityInfo.province+cityInfo.city+cityInfo.area:'请选择省市区'}} |
|
|
|
|
<view class="pbox" :style="{'color': cityInfo.province?'#303030':'gray' }"> |
|
|
|
|
{{cityInfo.province?cityInfo.province+cityInfo.city+cityInfo.area:'请选择省市区'}} |
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</picker> |
|
|
|
@ -75,7 +75,7 @@ |
|
|
|
|
region: [], |
|
|
|
|
detail: '' |
|
|
|
|
}, |
|
|
|
|
content:'', |
|
|
|
|
content: '', |
|
|
|
|
addressDetail: null, |
|
|
|
|
addressId: '', |
|
|
|
|
multiIndex: [0, 0, 0], |
|
|
|
@ -104,6 +104,8 @@ |
|
|
|
|
label: this.addressDetail.region.region |
|
|
|
|
}]; |
|
|
|
|
this.form.detail = this.addressDetail.detail; |
|
|
|
|
}else{ |
|
|
|
|
this.cityInfo.province='' |
|
|
|
|
} |
|
|
|
|
this.getProvinceAll() |
|
|
|
|
}, |
|
|
|
@ -136,7 +138,7 @@ |
|
|
|
|
if (res.status) { |
|
|
|
|
let data = res.data.detail |
|
|
|
|
this.cityInfo.province = data.region.province; |
|
|
|
|
this.cityInfo.city =data.region.city; |
|
|
|
|
this.cityInfo.city = data.region.city; |
|
|
|
|
this.cityInfo.area = data.region.region; |
|
|
|
|
this.form.detail = data.detail |
|
|
|
|
this.form.name = data.name; |
|
|
|
@ -149,7 +151,7 @@ |
|
|
|
|
label: data.region.city |
|
|
|
|
}, { |
|
|
|
|
value: data.region_id, |
|
|
|
|
label:data.region.region |
|
|
|
|
label: data.region.region |
|
|
|
|
}]; |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '识别成功', |
|
|
|
@ -176,7 +178,7 @@ |
|
|
|
|
let c_name = this.multiArray[2][e.detail.value[2]].name; |
|
|
|
|
let c_id = this.multiArray[2][e.detail.value[2]].id; |
|
|
|
|
this.cityInfo.province = a_name; |
|
|
|
|
this.cityInfo.city =b_name; |
|
|
|
|
this.cityInfo.city = b_name; |
|
|
|
|
this.cityInfo.area = c_name; |
|
|
|
|
this.form.region = [{ |
|
|
|
|
value: a_id, |
|
|
|
@ -325,6 +327,7 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.addressList { |
|
|
|
|
padding: 0 0 20rpx; |
|
|
|
|
overflow: hidden; |
|
|
|
|