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

+ 5
- 2
src/pages/reservation/lookhouse.vue View File

121
     onChange() {
121
     onChange() {
122
       if (this.checked) {
122
       if (this.checked) {
123
         this.formdata.booktime='',
123
         this.formdata.booktime='',
124
+        this.date=  new Date(+new Date()+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'')
124
         this.$dialog.alert({
125
         this.$dialog.alert({
125
           message:
126
           message:
126
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
127
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
199
       }else if(!this.formdata.personcnt){
200
       }else if(!this.formdata.personcnt){
200
         this.$toast("请填写人数");
201
         this.$toast("请填写人数");
201
       }
202
       }
202
-      const updata = this.checked?{ ...this.formdata,project_id: this.$route.query.project_id, buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,booktime:new Date()}:{ ...this.formdata, project_id: this.$route.query.project_id,buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,}
203
-      this.postOrder(updata);
203
+      const updata = this.checked?{ ...this.formdata,project_id: this.$route.query.project_id, buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,booktime: this.date}:{ ...this.formdata, project_id: this.$route.query.project_id,buildingid: this.detail.buildingid,buildingname:this.detail.buildingName,}
204
+      this.postOrder(updata).then(()=>{
205
+        this.$toast("提交成功");
206
+      });
204
     },
207
     },
205
     ...maploocActions(["getLookHouse"]),
208
     ...maploocActions(["getLookHouse"]),
206
     ...mapnameActions(["getHouseNameList"]),
209
     ...mapnameActions(["getHouseNameList"]),