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

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

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" },