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