刘翔宇-旅管家 4 years ago
parent 7dc228f46c
commit 37cd4278f2

@ -112,7 +112,7 @@
onLoad(options) { onLoad(options) {
let that = this; let that = this;
if (!that.util.isNull(options.id)) { 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)) { if (!that.util.isNull(options.currentPark)) {
this.form.type = options.currentPark; this.form.type = options.currentPark;
@ -146,8 +146,8 @@
this.listOrder[index].checked = true; this.listOrder[index].checked = true;
this.selectInfo = this.$moment(this.listOrder[index].date).format("MM月DD日") + " " + this.listOrder[ this.selectInfo = this.$moment(this.listOrder[index].date).format("MM月DD日") + " " + this.listOrder[
index].time index].time
this.form.time = this.$moment(this.listOrder[index].date).format("YYYY-MM-DD") + " " + this.listOrder[ this.form.time = this.$moment(this.listOrder[index].date + " " + this.listOrder[
index].time.split("-")[0]; index].time.split("-")[0]).format("YYYY-MM-DD hh:mm:ss");
this.orderid = this.listOrder[index].id; this.orderid = this.listOrder[index].id;
} else { } else {
this.listActivtyOrder[index].checked = false this.listActivtyOrder[index].checked = false
@ -249,6 +249,7 @@
this.util.request({ this.util.request({
api: '/api/mobile/carpark/order', api: '/api/mobile/carpark/order',
data: this.form, data: this.form,
method: "POST",
utilSuccess: function(res) { utilSuccess: function(res) {
console.log(res) console.log(res)
uni.showToast({ uni.showToast({

Loading…
Cancel
Save