fix: 🐛 修复店铺入驻bug
parent
63fee6f272
commit
1e0580ba15
|
@ -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>
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue