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