|
|
|
@ -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, |
|
|
|
@ -277,25 +279,25 @@ |
|
|
|
|
.section { |
|
|
|
|
background-color: #fff; |
|
|
|
|
padding: 0 18upx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.realAddr { |
|
|
|
|
padding: 10upx 0 !important; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .uni-input-wrapper { |
|
|
|
|
text-align: left !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .uni-input-placeholder { |
|
|
|
|
white-space: pre-wrap; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.btnContent { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
padding-bottom: 30upx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.btn { |
|
|
|
|
width: 120upx; |
|
|
|
|
height: 50upx; |
|
|
|
@ -304,19 +306,19 @@ |
|
|
|
|
opacity: 1; |
|
|
|
|
line-height: 50upx; |
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
font-size: 24upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 500; |
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.addrDetail { |
|
|
|
|
padding: 0 10upx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.addrTitle { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
font-size: 28upx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 400; |
|
|
|
@ -325,6 +327,7 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.addressList { |
|
|
|
|
padding: 0 0 20rpx; |
|
|
|
|
overflow: hidden; |
|
|
|
|