陈冉 6 lat temu
rodzic
commit
c2dcce29b1
1 zmienionych plików z 6 dodań i 3 usunięć
  1. 6
    3
      src/pages/reservation/lookhouse.vue

+ 6
- 3
src/pages/reservation/lookhouse.vue Wyświetl plik

@@ -19,7 +19,7 @@
19 19
           </van-cell>
20 20
           <van-cell class="field_name">楼盘地址:<span class="buildingaddress">{{detail.buildingAddress}}</span></van-cell>
21 21
           <van-switch-cell size="20px" v-model="checked" title="马上去"  @change="onChange" />
22
-          <van-field class="field_name" @click="showDatePicker()" label="预约时间:"  v-model="formdata.booktime"  />
22
+          <van-field class="field_name" @click="showDatePicker()" label="预约时间:"  v-model="formdata.booktime" v-if='appointment'/>
23 23
           <van-popup v-model="show" position="bottom" :overlay="true">
24 24
             <van-datetime-picker v-model="currentDate" :formatter="formatter" type="datetime"  @cancel="cancel" @confirm="confirm"/>
25 25
           </van-popup>
@@ -74,6 +74,7 @@ export default {
74 74
       currentDate: new Date(),
75 75
       showPage: false,
76 76
       active:false,
77
+      appointment:true,
77 78
       buildingname: "",
78 79
       booktime: "",
79 80
       buildingid: "",
@@ -121,13 +122,15 @@ export default {
121 122
     },
122 123
     onChange() {
123 124
       if (this.checked) {
124
-        this.formdata.booktime='',
125
+        this.appointment=false
126
+        // this.formdata.booktime='',
125 127
         // this.date=  new Date(+new Date()+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'')
126 128
         this.$dialog.alert({
127 129
           message:
128 130
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
129 131
         });
130
-
132
+      }else{
133
+        this.appointment=true
131 134
       }
132 135
     },
133 136
     //点击取消按钮实现收起日历