Browse Source

opt: 根据后台配置选择对应的支付渠道进行支付

Shu 1 month ago
parent
commit
de0cdbb46b
2 changed files with 2 additions and 4 deletions
  1. 1 2
      subpkg/extend/extend.vue
  2. 1 2
      subpkg_checkin/confirmOrder/confirmOrder.vue

+ 1 - 2
subpkg/extend/extend.vue

@@ -137,7 +137,6 @@
 				endTime: '',
 				canExtend: false,
 				checkinInfoId: '',
-				useYst: true
 			};
 		},
 		computed: {
@@ -242,7 +241,7 @@
 			async pay(orderId) {
 				console.log("pay start");
 				// #ifdef MP-WEIXIN
-				if (this.useYst) {
+				if (this.currentHotel.paymentChannel === "YST") {
 					await this.ystPayment(orderId)
 				} else {
 					let res = await uni.$http.post('/order/payment/weChat', {

+ 1 - 2
subpkg_checkin/confirmOrder/confirmOrder.vue

@@ -97,7 +97,7 @@
 					<text text="" align="right" size="20">(注:需付押金{{order.deposit ? order.deposit : ""}}元)</text>
 				</view>
 			</view>
-			<view class="completeBtn" v-if="useYst">
+			<view class="completeBtn" v-if="currentHotel.paymentChannel === 'YST'">
 				<button class="u-button" @click="ystPayment">支付</button>
 			</view>
 			<view class="completeBtn" v-else>
@@ -146,7 +146,6 @@
 					}
 				}],
 				title: "",
-				useYst: true,
 				// #ifdef MP-ALIPAY
 				rightBtns: [{
 					text: "删除",