陈冉 hace 6 años
padre
commit
c7ab031a28
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5
    2
      src/pages/reservation/lookhouse.vue

+ 5
- 2
src/pages/reservation/lookhouse.vue Ver fichero

@@ -121,6 +121,7 @@ export default {
121 121
     onChange() {
122 122
       if (this.checked) {
123 123
         this.formdata.booktime='',
124
+        this.date=  new Date(+new Date()+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'')
124 125
         this.$dialog.alert({
125 126
           message:
126 127
             "使用马上去功能,我们将以短信形式发送楼盘地址给您,您可以选择使用滴滴、美团打车、或乘坐出租车等方式到达售楼中心,联系置业顾问后即可报销车票!   部分售楼处可能通过发放礼品等形式抵扣车费,也可能此售楼处报销车费活动已经结束,具体解释权归售楼处所有,可提前通过上方电话咨询。"
@@ -199,8 +200,10 @@ export default {
199 200
       }else if(!this.formdata.personcnt){
200 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 208
     ...maploocActions(["getLookHouse"]),
206 209
     ...mapnameActions(["getHouseNameList"]),