Browse Source

支付接口判断,路段支付和停车场支付接口不同

qiubo 3 years ago
parent
commit
e09f27fd2b

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "智慧停车",
-    "appid" : "__UNI__BF6D66C",
+    "appid" : "__UNI__0BC09F6",
     "description" : "",
     "versionName" : "1.5.0",
     "versionCode" : "100",

+ 12 - 2
pages/center/order/orderDetails/orderDetails.vue

@@ -111,7 +111,7 @@
 		</view>
 
 		<!-- 支付方式 -->
-		<PaymentMethod :payWayPop="payWayPop" :curOrderList="orderList" :jumpUrl="jumpUrl"
+		<PaymentMethod :payWayPop="payWayPop" :exportFlag="exportFlag" :curOrderList="orderList" :jumpUrl="jumpUrl"
 			@closePaymentMethod="closePaymentMethod"></PaymentMethod>
 
 		<!-- 加载中遮罩 -->
@@ -148,7 +148,8 @@
 				orderList: [],
 				// 重定向页面
 				jumpUrl: location.href + '&type=open',
-				loadingMask: false
+				loadingMask: false,
+				exportFlag:false,
 			}
 		},
 		onLoad(page) {
@@ -192,6 +193,7 @@
 						.then(res => {
 							if (res.code === 200) {
 								this.orderInfo = res.data
+								console.log(this.orderInfo)
 							} else {
 								this.$refs.uToast.show({
 									title: res.msg,
@@ -206,6 +208,7 @@
 						.then(res => {
 							if (res.code === 200) {
 								this.orderInfo = res.data
+								console.log(this.orderInfo)
 							} else {
 								this.$refs.uToast.show({
 									title: res.msg,
@@ -244,10 +247,17 @@
 				})
 			},
 			goPay(orderId) {
+				
 				this.orderList = []
 				this.orderList.push(orderId)
+				if(this.openFlag == 'park'){
+					this.exportFlag = true
+				}else{
+					this.exportFlag = false
+				}
 				if (this.orderList.length > 0) {
 					this.payWayPop = true
+					
 				} else {
 					this.$refs.uToast.show({
 						title: '当前订单编号不存在,请重新进入当前页面!',

+ 2 - 1
pages/paymentMethod/paymentMethod.vue

@@ -107,7 +107,7 @@
 					payeeName: this.payeeName,
 					pursueType: this.pursueType
 				};
-				if (this.exportFlag) {
+				if (this.exportFlag == true) {
 					this.$u.api.quickPayExportApi(params).then(res=>{
 						if (res.data.needPay) {
 							let payUrl = res.data.url;
@@ -129,6 +129,7 @@
 						});
 					});
 				} else {
+					console.log("333")
 					this.$u.api.payGzbank(params).then(res=>{
 						if (res.data.needPay) {
 							let payUrl = res.data.url;