feat:修改区县

This commit is contained in:
2025-09-26 15:04:12 +08:00
parent a2faab2646
commit 22d1ca72cb
6 changed files with 12 additions and 5 deletions
+2 -3
View File
@@ -3,7 +3,7 @@
"appid" : "__UNI__4910728",
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
"versionName" : "1.0.1",
"versionCode" : 131,
"versionCode" : 132,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
@@ -82,8 +82,7 @@
"weixin" : {
"appid" : "wx7a5902cd556d9396",
"UniversalLinks" : "https://app.tbmall.xin/uni-universallinks/__UNI__4910728/"
},
"apple" : {}
}
}
},
"icons" : {
@@ -8,7 +8,7 @@
<view style="margin-left: 20rpx;">{{ item.phone }}</view>
</view>
<view class="address_item_address">
{{ item.countryName }} {{ item.provinceName }} {{ item.cityName }} {{ item.areaName }} {{ item.address }}{{ item.townshipName }}
{{ item.countryName }} {{ item.provinceName }} {{ item.cityName }} {{ item.areaName }} {{ item.townshipName }} {{ item.address }}
</view>
<view class="address_operate">
<up-checkbox :customStyle="{}" label="已默认" name="agree" usedAlone :checked="item.isDefault" shape="circle"
@@ -203,6 +203,7 @@ export default {
this.form.countryId = regionId[0] ? regionId[0] : null;
this.form.provinceId = regionId[1] ? regionId[1] : null;
this.form.cityId = regionId[2] ? regionId[2] : null;
this.form.areaId = regionId[3] ? regionId[3] : null;
this.form.townshipId = regionId[4] ? regionId[4] : null;
}
this.regionShowCheck(false);
@@ -446,7 +446,8 @@ export default {
adress: null,
addressId: null,
areaName: null,
cityName: null,
cityName: null,
townshipName:null,
goodsId: this.sed.id,
id: this.sed.specsId.id,
img: data.goodsGraph,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+6
View File
@@ -259,6 +259,9 @@ export function assembleAddress(addressObj){
if(addressObj.areaId){
ids.push(addressObj.areaId)
}
if(addressObj.townshipId){
ids.push(addressObj.townshipId)
}
const names=[];
if(addressObj.countryName){
names.push(addressObj.countryName);
@@ -272,6 +275,9 @@ export function assembleAddress(addressObj){
if(addressObj.areaName){
names.push(addressObj.areaName);
}
if(addressObj.townshipName){
names.push(addressObj.townshipName);
}
resutlObj.ids=ids.join(",");
resutlObj.names=names.join(" ");
return resutlObj;