Selaa lähdekoodia

添加支付停车场出场支付标识

空白格 3 vuotta sitten
vanhempi
sitoutus
c524d81999
1 muutettua tiedostoa jossa 45 lisäystä ja 45 poistoa
  1. 45 45
      pages/center/order/orderDetails/orderDetails.vue

+ 45 - 45
pages/center/order/orderDetails/orderDetails.vue

@@ -13,7 +13,7 @@
 					:value="(orderInfo.preferentialAmount ? orderInfo.preferentialAmount.toFixed(2) : 0) + ' 元'">
 				</u-cell-item>
 			</u-cell-group>
-		 <!-- 路段显示 -->
+			<!-- 路段显示 -->
 			<u-cell-group v-if="openFlag == 'road'">
 				<u-cell-item title="订单编号 " :arrow="false" :border-bottom="false" :border-top="false"
 					:value="orderInfo.orderId"></u-cell-item>
@@ -64,43 +64,43 @@
 			</u-cell-group>
 			<!-- 停车场时长 -->
 			<u-cell-group v-if="openFlag == 'park'">
-					<u-cell-item title="订单编号 " :arrow="false" :border-bottom="false" :border-top="false"
-						:value="orderInfo.orderId"></u-cell-item>
-					<template v-if="orderInfo.deviceType == 1">
-						<u-cell-item title="入场通道 " :arrow="false" :border-bottom="false" :border-top="false"
-							value="停车场入口"></u-cell-item>
-						<u-cell-item title="入场时间 " :arrow="false" :border-bottom="false" :border-top="false"
-							:value="orderInfo.inTime"></u-cell-item>
-						<u-cell-item title="出场通道 " :arrow="false" :border-bottom="false" :border-top="false"
-							value="停车场出口"></u-cell-item>
-						<u-cell-item title="出场时间 " :arrow="false" :border-bottom="false" :border-top="false"
-							:value="orderInfo.outTime"></u-cell-item>
-					</template>
-					<template v-else>
-						<u-cell-item title="开始计费 " :arrow="false" :border-bottom="false" :border-top="false"
-							:value="orderInfo.inTime"></u-cell-item>
-						<u-cell-item title="结束计费 " :arrow="false" :border-bottom="false" :border-top="false"
-							:value="orderInfo.outTime"></u-cell-item>
-					</template>
-					<template v-if="orderInfo.deviceType == 1">
-						<u-cell-item title="免费时长 " :arrow="false" :border-bottom="false" :border-top="false"
-							:value="orderInfo.freeDuration"></u-cell-item>
-					</template>
-					<template v-else>
-						<u-cell-item title="免费时长 " :arrow="false" :border-bottom="false" :border-top="false"
-							value="0天0时15分0秒"></u-cell-item>
-					</template>
-					<u-cell-item title="计费时长 " :arrow="false" :border-bottom="false" :border-top="false"
-						:value="orderInfo.calcDuration"></u-cell-item>
-					<u-cell-item title="累计停车时长 " :arrow="false" :border-bottom="false" :border-top="false"
-						:value="orderInfo.duration"></u-cell-item>
-					<u-cell-item v-if="orderInfo.createTime" title="订单创建时间 " :arrow="false" :border-bottom="false"
-						:border-top="false" :value="orderInfo.createTime"></u-cell-item>
-					<u-cell-item v-if="orderInfo.payTime" title="支付时间 " :arrow="false" :border-bottom="false"
-						:border-top="false" :value="orderInfo.payTime"></u-cell-item>
-					<u-cell-item v-if="orderInfo.payStatus == 1" title="缴费方式 " :arrow="false" :border-bottom="false"
-						:border-top="false" :value="orderInfo.paySource | verifyPaySource"></u-cell-item>
-				</u-cell-group>
+				<u-cell-item title="订单编号 " :arrow="false" :border-bottom="false" :border-top="false"
+					:value="orderInfo.orderId"></u-cell-item>
+				<template v-if="orderInfo.deviceType == 1">
+					<u-cell-item title="入场通道 " :arrow="false" :border-bottom="false" :border-top="false" value="停车场入口">
+					</u-cell-item>
+					<u-cell-item title="入场时间 " :arrow="false" :border-bottom="false" :border-top="false"
+						:value="orderInfo.inTime"></u-cell-item>
+					<u-cell-item title="出场通道 " :arrow="false" :border-bottom="false" :border-top="false" value="停车场出口">
+					</u-cell-item>
+					<u-cell-item title="出场时间 " :arrow="false" :border-bottom="false" :border-top="false"
+						:value="orderInfo.outTime"></u-cell-item>
+				</template>
+				<template v-else>
+					<u-cell-item title="开始计费 " :arrow="false" :border-bottom="false" :border-top="false"
+						:value="orderInfo.inTime"></u-cell-item>
+					<u-cell-item title="结束计费 " :arrow="false" :border-bottom="false" :border-top="false"
+						:value="orderInfo.outTime"></u-cell-item>
+				</template>
+				<template v-if="orderInfo.deviceType == 1">
+					<u-cell-item title="免费时长 " :arrow="false" :border-bottom="false" :border-top="false"
+						:value="orderInfo.freeDuration"></u-cell-item>
+				</template>
+				<template v-else>
+					<u-cell-item title="免费时长 " :arrow="false" :border-bottom="false" :border-top="false"
+						value="0天0时15分0秒"></u-cell-item>
+				</template>
+				<u-cell-item title="计费时长 " :arrow="false" :border-bottom="false" :border-top="false"
+					:value="orderInfo.calcDuration"></u-cell-item>
+				<u-cell-item title="累计停车时长 " :arrow="false" :border-bottom="false" :border-top="false"
+					:value="orderInfo.duration"></u-cell-item>
+				<u-cell-item v-if="orderInfo.createTime" title="订单创建时间 " :arrow="false" :border-bottom="false"
+					:border-top="false" :value="orderInfo.createTime"></u-cell-item>
+				<u-cell-item v-if="orderInfo.payTime" title="支付时间 " :arrow="false" :border-bottom="false"
+					:border-top="false" :value="orderInfo.payTime"></u-cell-item>
+				<u-cell-item v-if="orderInfo.payStatus == 1" title="缴费方式 " :arrow="false" :border-bottom="false"
+					:border-top="false" :value="orderInfo.paySource | verifyPaySource"></u-cell-item>
+			</u-cell-group>
 		</view>
 		<view class="bottom-btn-wrap"
 			v-if="(orderInfo.payStatus == 0 || orderInfo.payStatus == 2 || orderInfo.payStatus == 3) && openFlag !== 'open'">
@@ -112,7 +112,7 @@
 
 		<!-- 支付方式 -->
 		<PaymentMethod :payWayPop="payWayPop" :curOrderList="orderList" :jumpUrl="jumpUrl"
-			@closePaymentMethod="closePaymentMethod"></PaymentMethod>
+			:exportFlag="openFlag === 'park'" @closePaymentMethod="closePaymentMethod"></PaymentMethod>
 
 		<!-- 加载中遮罩 -->
 		<u-mask :show="loadingMask">
@@ -171,7 +171,7 @@
 						}
 					}, 1000)
 				} else {
-					this.handleGetOrderinfo(this.orderId,this.openFlag)
+					this.handleGetOrderinfo(this.orderId, this.openFlag)
 				}
 			}
 		},
@@ -184,8 +184,8 @@
 			/**
 			 * 通过订单id去获取订单信息
 			 * */
-			handleGetOrderinfo(orderId,openFlag) {
-				if(openFlag == 'road'){
+			handleGetOrderinfo(orderId, openFlag) {
+				if (openFlag == 'road') {
 					this.$u.api.getOrderDetail({
 							id: orderId
 						})
@@ -199,7 +199,7 @@
 								})
 							}
 						})
-				}else{
+				} else {
 					this.$u.api.getRoomOrderDetail({
 							id: orderId
 						})
@@ -214,7 +214,7 @@
 							}
 						})
 				}
-			
+
 			},
 			/**
 			 * 查询支付状态
@@ -228,7 +228,7 @@
 						if (res.data.payStatus === 1 || res.data.payStatus === 3) {
 							this.loadingMask = false
 							clearInterval(this.timer);
-							this.handleGetOrderinfo(this.orderId,this.openFlag)
+							this.handleGetOrderinfo(this.orderId, this.openFlag)
 						}
 					} else {
 						this.$refs.uToast.show({