|
|
|
|
@ -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({
|
|
|
|
|
|