|
|
@@ -32,7 +32,7 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title required">订花人姓名</view>
|
|
|
<input v-model="form.bookName" placeholder-class="phcolor" placeholder-style="color:#ccc;" style="width:282upx;" class="tui-input" name="bookName" placeholder="请填写姓名" />
|
|
|
- <button class="admin-button-com default middle" @click="form.bookName='游客'" style="margin-right:10upx;">填"游客"</button>
|
|
|
+ <button class="admin-button-com default middle" @click="form.bookName='游客'" style="margin-right:10upx;">填游客</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -63,15 +63,14 @@
|
|
|
<view class="tui-input" v-if="form.province || form.city" >{{ form.province + '-' + form.city }}</view> <view class="tui-placeholder" v-else>请选择</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="selRegionFn">
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">详细地址</view>
|
|
|
- <view class="tui-input" v-if="form.address">{{ form.address }}</view>
|
|
|
- <view class="tui-placeholder" v-else>请填写地址</view>
|
|
|
+ <input v-model="form.address" placeholder-class="phcolor" placeholder-style="color:#ccc" class="tui-input" name="address" placeholder="请填写地址" @input="changeAddress()" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">楼号门牌号</view>
|
|
|
- <input v-model="form.floor" placeholder-class="phcolor" placeholder-style="color:#ccc" class="tui-input" name="floor" placeholder="选填" />
|
|
|
+ <view class="tui-title">楼号门牌</view>
|
|
|
+ <input v-model="form.floor" placeholder-class="phcolor" placeholder-style="color:#ccc" class="tui-input" name="floor" placeholder="选填" @input="changeFloor()" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
</template>
|
|
|
@@ -94,13 +93,8 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
<!-- 省市联动 -->
|
|
|
<simple-address ref="simpleAddress" :region="regionTree" :pickerValueDefault="cityPickerValueDefault" @onConfirm="getCityConfirm" ></simple-address>
|
|
|
-
|
|
|
- <!-- 选择详细地址 -->
|
|
|
- <app-area-sel :show.sync="showRegion" :city="form.city" @change="changeAreaFn" />
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -145,7 +139,7 @@ export default {
|
|
|
remark: "",
|
|
|
anonymity:0
|
|
|
},
|
|
|
- region: {latitude: 0,longitude: 0},
|
|
|
+ region: {latitude:10,longitude:11},
|
|
|
regionTree:[],
|
|
|
cityPickerValueDefault: [0, 0],
|
|
|
timeOptions: [
|
|
|
@@ -169,12 +163,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeAddress(){
|
|
|
+ this.form.showAddress = this.form.city+this.form.address+this.form.floor
|
|
|
+ },
|
|
|
+ changeFloor(){
|
|
|
+ this.form.showAddress = this.form.city+this.form.address+this.form.floor
|
|
|
+ },
|
|
|
bindTimeChange(event){
|
|
|
let val = event.detail.value
|
|
|
let before = Number(val[0])
|
|
|
@@ -185,21 +184,6 @@ export default {
|
|
|
selTimeFn(e) {
|
|
|
this.form.reachDate = e.detail.value;
|
|
|
},
|
|
|
- // 选择地址
|
|
|
- selRegionFn() {
|
|
|
- if (!this.form.city) {
|
|
|
- this.$msg("请选择城市");
|
|
|
- return false;
|
|
|
- }
|
|
|
- this.showRegion = true;
|
|
|
- },
|
|
|
- changeAreaFn(e) {
|
|
|
- this.form.address = e.title;
|
|
|
- this.form.showAddress = e.address;
|
|
|
- this.region.latitude = e.location.lat;
|
|
|
- this.region.longitude = e.location.lng;
|
|
|
- this.$emit("changeAddress", e);
|
|
|
- },
|
|
|
timeTodaySelFn(index) {
|
|
|
this.form.reachPeriod = index;
|
|
|
},
|