|
|
|
|
@ -36,13 +36,16 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<u-popup :show="showInfo" mode="bottom" @close="closeInfo" :round="10" closeable>
|
|
|
|
|
<view class="mpopup">
|
|
|
|
|
<view class="mpopup" :style="[{height:maxheight}]">
|
|
|
|
|
<view class="mpopup-title">
|
|
|
|
|
{{notice.name}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="mpopup-content" style="margin-top: 60rpx;">
|
|
|
|
|
<rich-text :nodes="notice.value"></rich-text>
|
|
|
|
|
<view style="margin-top: 80px;"></view>
|
|
|
|
|
<view class="mpopup-content" style="margin-top: 60rpx;">
|
|
|
|
|
<scroll-view scroll-y="true" :style="[{height:scrollheight}]">
|
|
|
|
|
<rich-text :nodes="notice.value"></rich-text>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
|
|
<view style="margin-top: 40rpx;"></view>
|
|
|
|
|
<u-button type="primary" @click="closeInfo">知道了</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -90,6 +93,17 @@
|
|
|
|
|
<u-button type="primary" @click="handleConfirmOrder">确定</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
<u-popup :show="successshow" customStyle="width:600rpx;height:300rpx;text-align:center" :round="10" mode="center" width="600rpx" height="150rpx">
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="successBox">
|
|
|
|
|
<!-- <u-icon name="checkmark-circle" size="90" color="#EF9525"></u-icon> -->
|
|
|
|
|
<view class="h3">您已经预约成功</view>
|
|
|
|
|
<view class="p">即将跳转到车位预约 {{time}} s</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="pinkBtn" @click="goHome">返回首页</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
@ -104,12 +118,18 @@
|
|
|
|
|
plate
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
return {
|
|
|
|
|
successshow: false,
|
|
|
|
|
time:3,
|
|
|
|
|
showInfo: false,
|
|
|
|
|
showSelectorder: false,
|
|
|
|
|
showSelectorder: false,
|
|
|
|
|
maxheight:"",
|
|
|
|
|
scrollheight:"",
|
|
|
|
|
selectInfo: "--",
|
|
|
|
|
showSelecttime: false,
|
|
|
|
|
plateNumber: ['苏', 'E', '', '', '', '', ''],
|
|
|
|
|
plateNumber: ['苏', 'E', '', '', '', '', ''],
|
|
|
|
|
t:null,
|
|
|
|
|
timer:null,
|
|
|
|
|
form: {
|
|
|
|
|
plate: "",
|
|
|
|
|
mobile: "",
|
|
|
|
|
@ -157,12 +177,29 @@
|
|
|
|
|
|
|
|
|
|
that.util.getUserInfo(function(r) {
|
|
|
|
|
that.form.mobile = r.mobile;
|
|
|
|
|
}, true);
|
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
|
|
that.maxheight = wx.getSystemInfoSync().windowHeight*0.6 + "px"
|
|
|
|
|
that.scrollheight = wx.getSystemInfoSync().windowHeight*0.6*0.7 + "px"
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onHide() {
|
|
|
|
|
clearInterval(this.t)
|
|
|
|
|
clearTimeout(this.timer)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onUnload() {
|
|
|
|
|
clearInterval(this.t)
|
|
|
|
|
clearTimeout(this.timer)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
methods: {
|
|
|
|
|
goHome(){
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
url: "/pages/index/index"
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
loadConfigInfo() {
|
|
|
|
|
var that = this;
|
|
|
|
|
this.util.request({
|
|
|
|
|
@ -313,16 +350,28 @@
|
|
|
|
|
api: '/api/mobile/carpark/order',
|
|
|
|
|
data: this.form,
|
|
|
|
|
method: "POST",
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "下单成功",
|
|
|
|
|
complete() {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/pages/success/success?from=park&id=" + res.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
that.successshow = true;
|
|
|
|
|
that.t = setInterval(function() {
|
|
|
|
|
if (that.time > 0)
|
|
|
|
|
that.time = that.time - 1;
|
|
|
|
|
}, 1000)
|
|
|
|
|
that.timer = setTimeout(function() {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/pages/order/parkorder'
|
|
|
|
|
})
|
|
|
|
|
clearInterval(that.t);
|
|
|
|
|
clearTimeout(that.timer)
|
|
|
|
|
}, 3000)
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "下单成功",
|
|
|
|
|
// complete() {
|
|
|
|
|
// uni.redirectTo({
|
|
|
|
|
// url: "/pages/success/success?from=park&id=" + res.id
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
that.util.toast(res);
|
|
|
|
|
@ -334,7 +383,7 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
page {
|
|
|
|
|
background: #f7f6f4;
|
|
|
|
|
}
|
|
|
|
|
@ -384,5 +433,39 @@
|
|
|
|
|
padding: 15rpx 25rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
.successBox {
|
|
|
|
|
|
|
|
|
|
.iconfont {
|
|
|
|
|
color: #00CCB9;
|
|
|
|
|
font-size: 180rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.h3 {
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-top: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.p {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-top: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pinkBtn {
|
|
|
|
|
width: 50%;
|
|
|
|
|
background-image: linear-gradient(45deg, #EF9525 0%, #EF9525 100%);
|
|
|
|
|
border-radius: 44rpx;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 70rpx;
|
|
|
|
|
margin:30rpx auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|