master
lion 1 year ago
parent b820d9b6e6
commit adbe84ffcb

@ -8,11 +8,15 @@
<u--form labelPosition="top" labelWidth="120px" :model="form" ref="form"> <u--form labelPosition="top" labelWidth="120px" :model="form" ref="form">
<u-form-item label="预约入场时间" labelPosition="top" borderBottom> <u-form-item label="预约入场时间" labelPosition="top" borderBottom>
<view style="color: #EF9525;font-size: 24rpx;" @click="showSelecttime=true"> <view style="color: #EF9525;font-size: 24rpx;display: flex;" @click="showSelecttime=true">
<!-- {{selectInfo}} --> <!-- {{selectInfo}} -->
{{(form.time?timeFormat(formTime, 'yyyy年MM月DD日 HH:mm'):'请选择入场时间>')}} <text>{{(form.time?timeFormat(formTime, 'yyyy年MM月DD日 HH:mm'):'请选择入场时间>')}}</text>
<u-icon name="arrow-down" color="#000"></u-icon>
</view> </view>
<u-datetime-picker :show="showSelecttime" closeOnClickOverlay @close="cancelTime" <u-datetime-picker
:minDate="minDate"
:maxDate="maxDate"
:show="showSelecttime" closeOnClickOverlay @close="cancelTime"
@cancel="cancelTime" @confirm="confirmTime" v-model="form.time" mode="datetime"> @cancel="cancelTime" @confirm="confirmTime" v-model="form.time" mode="datetime">
</u-datetime-picker> </u-datetime-picker>
</u-form-item> </u-form-item>
@ -146,7 +150,9 @@
activity_order_id: "", activity_order_id: "",
visit_order_id: "" visit_order_id: ""
}, },
formTime: Number(new Date()), formTime: Number(new Date()),
minDate:'',
maxDate:'',
listOrder: [], listOrder: [],
listActivtyOrder: [], listActivtyOrder: [],
orderType: 1, orderType: 1,
@ -166,21 +172,25 @@
this.form.type = options.currentPark; this.form.type = options.currentPark;
} }
if (!that.util.isNull(options.bookinfo)) { // if (!that.util.isNull(options.bookinfo)) {
let bookinfo = JSON.parse(unescape(options.bookinfo)); // let bookinfo = JSON.parse(unescape(options.bookinfo));
this.bookinfo = bookinfo; // this.bookinfo = bookinfo;
this.form.time = bookinfo.time; // this.form.time = bookinfo.time;
this.formTime = bookinfo.time; // this.formTime = bookinfo.time;
this.orderType = bookinfo.orderType; // this.orderType = bookinfo.orderType;
this.selectInfo = bookinfo.info; // this.selectInfo = bookinfo.info;
if (this.orderType == 2) // if (this.orderType == 2)
this.form.activity_order_id = bookinfo.orderid // this.form.activity_order_id = bookinfo.orderid
else // else
this.form.visit_order_id = bookinfo.orderid // this.form.visit_order_id = bookinfo.orderid
this.orderid = bookinfo.orderid // this.orderid = bookinfo.orderid
} // }
that.form.time = new Date() that.form.time = new Date()
console.log(that.form.time) console.log(that.form.time)
this.minDate = this.$moment(this.$moment().format('YYYY-MM-DD HH:mm:ss')).valueOf()
this.maxDate = this.$moment(this.$moment().add('days',6).format('YYYY-MM-DD') + ' 23:59:59').valueOf()
console.log("this.minDate",this.minDate,this.maxDate)
that.loadConfigInfo(); that.loadConfigInfo();
that.util.getUserInfo(function(r) { that.util.getUserInfo(function(r) {

@ -37,7 +37,8 @@
</view> </view>
<text class="iconfont icon-tingchechang1" style="font-size: 28rpx;"></text> <text class="iconfont icon-tingchechang1" style="font-size: 28rpx;"></text>
<view> <view>
<text>大中(09:00-12:00){{remain_big_park}}</text> <!-- <text>大中(09:00-12:00){{remain_big_park}}</text> -->
<text>大中型车</text>
</view> </view>
</view> </view>
<view class="parkbox-item flex-col align-center" <view class="parkbox-item flex-col align-center"
@ -48,12 +49,12 @@
</view> </view>
<view class="flex-row align-center"> <view class="flex-row align-center">
<text class="iconfont icon-tingchechang1" <text class="iconfont icon-tingchechang1"
style="font-size: 28rpx;"></text><text>小车{{remain_small_park}}</text> style="font-size: 28rpx;"></text><text>小车</text>
</view> </view>
<text style="font-size: 24rpx;color: #828282;">充电桩空闲0</text> <!-- <text style="font-size: 24rpx;color: #828282;">充电桩空闲0</text> -->
</view> </view>
<view class="parkbox-item flex-row align-center" style="margin-right: 10rpx;padding: 28rpx 20rpx;" <!-- <view class="parkbox-item flex-row align-center" style="margin-right: 10rpx;padding: 28rpx 20rpx;"
@click="handleSelectPark(4)" :class="(currentPark==4?'parkbox-item-on':'')" @click="handleSelectPark(4)" :class="(currentPark==4?'parkbox-item-on':'')"
v-if="remain_big_park2>0"> v-if="remain_big_park2>0">
<view class="parkbox-item-status" v-if="currentPark==4"> <view class="parkbox-item-status" v-if="currentPark==4">
@ -63,7 +64,7 @@
<view> <view>
<text>大中(13:00-16:00){{remain_big_park2}}</text> <text>大中(13:00-16:00){{remain_big_park2}}</text>
</view> </view>
</view> </view> -->
<view class="parkbox-item flex-row align-center" style="" <view class="parkbox-item flex-row align-center" style=""
@click="handleSelectPark(3)" :class="(currentPark==3?'parkbox-item-on':'')" @click="handleSelectPark(3)" :class="(currentPark==3?'parkbox-item-on':'')"
v-if="remain_special_park>0"> v-if="remain_special_park>0">
@ -72,7 +73,8 @@
</view> </view>
<text class="iconfont icon-tingchechang1" style="font-size: 28rpx;"></text> <text class="iconfont icon-tingchechang1" style="font-size: 28rpx;"></text>
<view> <view>
<text>残疾人车位{{remain_special_park}}</text> <!-- <text>残疾人车位{{remain_special_park}}</text> -->
<text>残疾人车位</text>
</view> </view>
</view> </view>

@ -1,9 +1,9 @@
import md5 from "./md5.min"; import md5 from "./md5.min";
const HOSTARR = { const HOSTARR = {
'development':'https://leyiyuyue.szgmbwg.org.cn', // 'development':'https://leyiyuyue.szgmbwg.org.cn',
'production': 'https://leyiyuyue.szgmbwg.org.cn', // 'production': 'https://leyiyuyue.szgmbwg.org.cn',
// 'development':'https://leyitest.ali251.langye.net', 'development':'https://leyitest.ali251.langye.net',
// 'production': 'https://leyitest.ali251.langye.net', 'production': 'https://leyitest.ali251.langye.net',
}; // 审核状态 }; // 审核状态

Loading…
Cancel
Save