fix: 🐛 修复店铺入驻bug

master
Yer 2023-09-04 10:27:10 +08:00
parent 63fee6f272
commit 1e0580ba15
3 changed files with 22 additions and 12 deletions

View File

@ -180,6 +180,7 @@ export default {
if (this.tabbars[index].id != item.id) {
this.tabbars[index].localName = item.name;
this.tabbars[index].id = item.id;
this.tabbars[index].center = item.center
if (index < this.tabbars.length - 1) {
this.tabbars.splice(index + 1, this.tabbars.length - index - 1);
}
@ -195,6 +196,7 @@ export default {
localName: "请选择",
id: "",
children: data.data.result,
};
this.tabbars.push(current);
this.tabCurrentIndex++;
@ -387,4 +389,4 @@ export default {
icon {
margin-left: 40rpx;
}
</style>
</style>

View File

@ -17,12 +17,12 @@
:border-bottom="false"
prop="companyAddressPath"
label="公司所在地"
><u-input
type="select"
>
<div @click="showPicker()" style="margin-right: 30rpx;">选择</div>
<u-input
disabled
:custom-style="defaultInputStyle"
v-model="form.companyAddressPath"
disabled
@click="showPicker()"
/></u-form-item>
<u-form-item
required
@ -338,6 +338,7 @@ export default {
},
//
showPicker() {
console.log(this.$refs)
this.$refs.cityPicker.show();
},
validatorStep1Form() {

View File

@ -33,7 +33,10 @@
:border-bottom="false"
prop="goodsManagementCategory"
label="店铺经营类目"
><u-input
>
<div @click="showCategory()" style="margin-right: 30rpx;">选择</div>
<u-input
:custom-style="defaultInputStyle"
v-model="goodsManagementCategory"
disabled
@ -46,15 +49,17 @@
prop="storeAddressPath"
label="店铺所在地"
>
<div @click="showPicker()" style="margin-right: 30rpx;">选择</div>
<u-input
:custom-style="defaultInputStyle"
v-model="form.storeAddressPath"
disabled
@click="showPicker()"
/>
</u-form-item>
<u-form-item
<!-- <u-form-item
required
:border-bottom="false"
prop="storeAddressPath"
@ -62,7 +67,7 @@
>
<div class="get-center" @click="clickUniMap()"></div>
<div class="tips-success" v-if="form.storeCenter"></div>
</u-form-item>
</u-form-item> -->
<u-form-item
required
@ -287,7 +292,7 @@ export default {
},
getPickerParentValue(e) {
this.form.storeAddressIdPath = [];
console.log(e)
let name = "";
e.forEach((item, index) => {
if (item.id) {
@ -298,9 +303,11 @@ export default {
} else {
name += item.localName + ",";
}
this.form.storeAddressPath = name;
this.$set(this.form,'storeAddressPath',name)
}
});
this.form.storeCenter = e[e.length-1].center
},
//
showPicker() {