|
|
@@ -1,11 +1,6 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <tui-list-cell
|
|
|
- class="line-cell"
|
|
|
- :hover="false"
|
|
|
- :arrow="false"
|
|
|
- @click="openAddres"
|
|
|
- >
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="false" @click="openAddres">
|
|
|
<view class="tui-title ">{{ cityTitle }}</view>
|
|
|
<view class="tui-input" v-if="form.province || form.city">
|
|
|
{{ form.province + "-" + form.city }}
|
|
|
@@ -13,12 +8,15 @@
|
|
|
<view class="tui-input" v-else>请选择</view>
|
|
|
<input v-model="form.province" name="province" hidden />
|
|
|
</tui-list-cell>
|
|
|
- <tui-list-cell
|
|
|
- class="line-cell"
|
|
|
- :hover="false"
|
|
|
- :arrow="true"
|
|
|
- @click="selRegionFn"
|
|
|
- >
|
|
|
+ <tui-list-cell v-if="isFloor" class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title ">客户名称</view>
|
|
|
+ <input v-model="form.customName" placeholder-class="phcolor" class="tui-input" name="floor" @input="changeFloor" placeholder="客户名称"/>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell v-if="isFloor" class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title ">客户手机</view>
|
|
|
+ <input v-model="form.customMobile" placeholder-class="phcolor" class="tui-input" name="floor" @input="changeFloor" placeholder="客户手机"/>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="selRegionFn">
|
|
|
<view class="tui-title ">{{ detailTitle }}</view>
|
|
|
<view class="tui-input" v-if="form.address">{{ form.address }}</view>
|
|
|
<view class="tui-placeholder" v-else>请填写详细地址</view>
|
|
|
@@ -26,21 +24,10 @@
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell v-if="isFloor" class="line-cell" :hover="false">
|
|
|
<view class="tui-title ">门牌号</view>
|
|
|
- <input
|
|
|
- v-model="form.floor"
|
|
|
- placeholder-class="phcolor"
|
|
|
- class="tui-input"
|
|
|
- name="floor"
|
|
|
- @input="changeFloor"
|
|
|
- placeholder="楼号门牌号(选填)"
|
|
|
- />
|
|
|
+ <input v-model="form.floor" placeholder-class="phcolor" class="tui-input" name="floor" @input="changeFloor" placeholder="楼号门牌号(选填)"/>
|
|
|
</tui-list-cell>
|
|
|
<!-- 选择地区 -->
|
|
|
- <app-area-sel
|
|
|
- :show.sync="showRegion"
|
|
|
- @change="changeAreaFn"
|
|
|
- :city="form.city"
|
|
|
- />
|
|
|
+ <app-area-sel :show.sync="showRegion" @change="changeAreaFn" :city="form.city"/>
|
|
|
<!-- 省市联动 -->
|
|
|
<!-- <simple-address
|
|
|
ref="simpleAddress"
|
|
|
@@ -89,6 +76,8 @@ export default {
|
|
|
cityPickerValueDefault: [0, 0],
|
|
|
form: {
|
|
|
province: "",
|
|
|
+ customMobile: "",
|
|
|
+ customName: "",
|
|
|
city: "",
|
|
|
address: "",
|
|
|
floor: "",
|
|
|
@@ -114,13 +103,15 @@ export default {
|
|
|
this.form.address = res.data.address;
|
|
|
this.form.latitude = res.data.lat;
|
|
|
this.form.longitude = res.data.long;
|
|
|
+ this.form.customMobile = res.data.name;
|
|
|
+ this.form.customName = res.data.mobile;
|
|
|
this.$emit("selectAdress", this.form);
|
|
|
})
|
|
|
} else {
|
|
|
this.form.province = this.getMyShopInfo.province;
|
|
|
this.form.city = this.getMyShopInfo.city;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
formatForm() {
|
|
|
Object.keys(this.form).forEach(i => {
|
|
|
@@ -151,9 +142,9 @@ export default {
|
|
|
this.form.longitude = e.location.lng;
|
|
|
this.$emit("selectAdress", this.form);
|
|
|
},
|
|
|
- changeFloor(e) {
|
|
|
- this.$emit("selectAdress", this.form);
|
|
|
- }
|
|
|
+ // changeFloor(e) {
|
|
|
+ // this.$emit("selectAdress", this.form);
|
|
|
+ // }
|
|
|
},
|
|
|
watch: {
|
|
|
getFormObj() {
|