管理端店铺经纬度改为店铺定位

master
mabo 2021-06-28 17:07:48 +08:00
parent 2f6380da22
commit 20e4662961
4 changed files with 19 additions and 8 deletions

View File

@ -90,7 +90,6 @@
</FormItem>
<FormItem>
<Button @click="$emit('change', 1)">返回</Button>
<Button type="primary" :loading="loading" @click="next"
>提交平台审核</Button

View File

@ -98,8 +98,8 @@
</p>
<p class="item">
<span class="label">店铺经纬度</span>
<span class="info">{{storeInfo.storeCenter?storeInfo.storeCenter:'暂未完善'}}</span>
<span class="label">店铺定位</span>
<span class="info">{{storeInfo.storeCenter?'已定位':'未定位'}}</span>
</p>
<p class="item">
<span class="label">经营范围</span>

View File

@ -27,8 +27,18 @@
</RadioGroup>
</FormItem>
<FormItem label="店铺经纬度" prop="shopCenter">
<Input v-model="shopForm.storeCenter" @on-focus="$refs.liliMap.showMap = true" clearable style="width: 350px" />
<FormItem label="店铺定位" prop="shopCenter">
<!-- <Input v-model="shopForm.storeCenter" @on-focus="$refs.liliMap.showMap = true" clearable style="width: 350px" /> -->
<Button
type="info"
v-if="!shopForm.storeCenter"
@click="$refs.liliMap.showMap = true"
>点击获取店铺定位</Button>
<Button
type="success"
v-else
@click="$refs.liliMap.showMap = true"
>已定位</Button>
</FormItem>
<FormItem label="店铺所在地" prop="storeAddressPath">
@ -267,7 +277,7 @@ export default {
{ required: true, message: "店铺简介不能为空", trigger: "blur" },
],
storeCenter: [
{ required: true, message: "店铺经纬度不能为空", trigger: "change" },
{ required: true, message: "店铺未定位", trigger: "change" },
],
companyName: [
{ required: true, message: "公司名称不能为空", trigger: "blur" },

View File

@ -621,7 +621,7 @@ export default {
/** 是否重新生成sku */
regeneratorSkuFlag: false,
/** 运费模板id **/
templateId: 0,
templateId: '',
/** 参数组*/
goodsParamsDTOList: [],
},
@ -685,6 +685,7 @@ export default {
{required: true, message: "请输入物流参数"},
{validator: checkWeight},
],
templateId: [{required: true, message: '请选择物流模板'}],
sellingPoint: [{required: true, message: "请输入商品卖点"}],
goodsUnit: [{required: true, message: "请选择计量单位"}],
},
@ -763,7 +764,7 @@ export default {
mobileIntro: "",
updateSku: true,
regeneratorSkuFlag: false,
templateId: 0,
templateId: '',
goodsParamsDTOList: [],
};
this.activestep = 0;
@ -1548,6 +1549,7 @@ export default {
this.$Message.error("请上传商品图片");
return;
}
if (this.baseInfoForm.templateId === '') this.baseInfoForm.templateId = 0;
let flag = false;
let paramValue = "";
// //