陈冉 6 years ago
parent
commit
c2dcce29b1
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      src/pages/reservation/lookhouse.vue

+ 6
- 3
src/pages/reservation/lookhouse.vue View File

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