|
@@ -64,20 +64,20 @@
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<view class="parking-lock-info">
|
|
<view class="parking-lock-info">
|
|
- <view class="parking-lock-info-item">
|
|
|
|
- <view>出口无车辆</view>
|
|
|
|
|
|
+ <view class="parking-lock-info-item-1">
|
|
|
|
+ <view>{{ tipTxt }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
<!-- 支付方式 -->
|
|
<!-- 支付方式 -->
|
|
<ChoosePayment
|
|
<ChoosePayment
|
|
|
|
+ v-if="choosePayment"
|
|
ref="choosePayment"
|
|
ref="choosePayment"
|
|
:payWayPop="payWayPop"
|
|
:payWayPop="payWayPop"
|
|
:curOrderList="orderList"
|
|
:curOrderList="orderList"
|
|
:jumpUrl="jumpUrl"
|
|
:jumpUrl="jumpUrl"
|
|
:exportFlag="true"
|
|
:exportFlag="true"
|
|
- :sanPay="saopay"
|
|
|
|
- :otherParams="{ parkType: 'export' }"
|
|
|
|
|
|
+ :sanPay="true"
|
|
@closePaymentMethod="closePaymentMethod"
|
|
@closePaymentMethod="closePaymentMethod"
|
|
/>
|
|
/>
|
|
<u-toast ref="uToast" />
|
|
<u-toast ref="uToast" />
|
|
@@ -98,13 +98,14 @@ export default {
|
|
polyOrderId: '',
|
|
polyOrderId: '',
|
|
isBack: 0
|
|
isBack: 0
|
|
},
|
|
},
|
|
- saopay: true,
|
|
|
|
payWayPop: false, // 支付弹框
|
|
payWayPop: false, // 支付弹框
|
|
infoData: undefined, // 订单信息
|
|
infoData: undefined, // 订单信息
|
|
orderList: [], // 支付订单列表
|
|
orderList: [], // 支付订单列表
|
|
jumpUrl: location.href + '&isBack=1', // 回调地址
|
|
jumpUrl: location.href + '&isBack=1', // 回调地址
|
|
timer: null, // 轮询
|
|
timer: null, // 轮询
|
|
- isPay: false // 支付按钮显示
|
|
|
|
|
|
+ isPay: false, // 支付按钮显示
|
|
|
|
+ choosePayment: false,
|
|
|
|
+ tipTxt: '出口无车辆'
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(page) {
|
|
onLoad(page) {
|
|
@@ -132,6 +133,7 @@ export default {
|
|
* 立即支付
|
|
* 立即支付
|
|
*/
|
|
*/
|
|
onEntraceClick() {
|
|
onEntraceClick() {
|
|
|
|
+ this.choosePayment = true;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs['choosePayment'].openPopup({ ...this.infoData }, 'single', 'parking');
|
|
this.$refs['choosePayment'].openPopup({ ...this.infoData }, 'single', 'parking');
|
|
});
|
|
});
|
|
@@ -201,6 +203,7 @@ export default {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
|
+ this.tipTxt = err?.msg ?? '出口无车辆'
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -208,7 +211,7 @@ export default {
|
|
* 关闭支付弹框
|
|
* 关闭支付弹框
|
|
*/
|
|
*/
|
|
closePaymentMethod() {
|
|
closePaymentMethod() {
|
|
- this.payWayPop = false;
|
|
|
|
|
|
+ this.choosePayment = false;
|
|
},
|
|
},
|
|
jumpHome(url) {
|
|
jumpHome(url) {
|
|
uni.switchTab({
|
|
uni.switchTab({
|