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) { if (this.tabbars[index].id != item.id) {
this.tabbars[index].localName = item.name; this.tabbars[index].localName = item.name;
this.tabbars[index].id = item.id; this.tabbars[index].id = item.id;
this.tabbars[index].center = item.center
if (index < this.tabbars.length - 1) { if (index < this.tabbars.length - 1) {
this.tabbars.splice(index + 1, this.tabbars.length - index - 1); this.tabbars.splice(index + 1, this.tabbars.length - index - 1);
} }
@ -195,6 +196,7 @@ export default {
localName: "请选择", localName: "请选择",
id: "", id: "",
children: data.data.result, children: data.data.result,
}; };
this.tabbars.push(current); this.tabbars.push(current);
this.tabCurrentIndex++; this.tabCurrentIndex++;

View File

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

View File

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