From 369978ee66e94f9979ed0d4217003ee858eec44e Mon Sep 17 00:00:00 2001 From: fanfan Date: Fri, 23 Feb 2024 21:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/news/park/addressEdit.vue | 35 ++++++++++++++++++--------------- yanzong_qianduan | 1 - 2 files changed, 19 insertions(+), 17 deletions(-) delete mode 160000 yanzong_qianduan diff --git a/pages/news/park/addressEdit.vue b/pages/news/park/addressEdit.vue index 05c4282..f92869c 100644 --- a/pages/news/park/addressEdit.vue +++ b/pages/news/park/addressEdit.vue @@ -27,8 +27,8 @@ - - {{cityInfo?cityInfo.province+cityInfo.city+cityInfo.area:'请选择省市区'}} + + {{cityInfo.province?cityInfo.province+cityInfo.city+cityInfo.area:'请选择省市区'}} @@ -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; diff --git a/yanzong_qianduan b/yanzong_qianduan deleted file mode 160000 index adf9856..0000000 --- a/yanzong_qianduan +++ /dev/null @@ -1 +0,0 @@ -Subproject commit adf98563164876f5353fe4b81dc81a8a70e3aa34