From 37cd4278f2de94076f1334d3f8a362130f38e70c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Mon, 16 May 2022 09:07:44 +0800 Subject: [PATCH] up --- pages/park/book.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/park/book.vue b/pages/park/book.vue index 69ed512..d7b4b3d 100644 --- a/pages/park/book.vue +++ b/pages/park/book.vue @@ -112,7 +112,7 @@ onLoad(options) { let that = this; if (!that.util.isNull(options.id)) { - this.form.car_park_id = options.id; + this.form.car_park_id = parseInt(options.id); } if (!that.util.isNull(options.currentPark)) { this.form.type = options.currentPark; @@ -146,8 +146,8 @@ this.listOrder[index].checked = true; this.selectInfo = this.$moment(this.listOrder[index].date).format("MM月DD日") + " " + this.listOrder[ index].time - this.form.time = this.$moment(this.listOrder[index].date).format("YYYY-MM-DD") + " " + this.listOrder[ - index].time.split("-")[0]; + this.form.time = this.$moment(this.listOrder[index].date + " " + this.listOrder[ + index].time.split("-")[0]).format("YYYY-MM-DD hh:mm:ss"); this.orderid = this.listOrder[index].id; } else { this.listActivtyOrder[index].checked = false @@ -249,6 +249,7 @@ this.util.request({ api: '/api/mobile/carpark/order', data: this.form, + method: "POST", utilSuccess: function(res) { console.log(res) uni.showToast({