|
@@ -45,9 +45,10 @@
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
<div class="call-one-btn">
|
|
<div class="call-one-btn">
|
|
|
<view>
|
|
<view>
|
|
|
- <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="appWxPayFn">微信支付</button>
|
|
|
|
|
|
|
+ <!-- <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="appWxPayFn">微信支付</button> -->
|
|
|
|
|
+ <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="appAliPayFn(0)">微信支付</button>
|
|
|
</view>
|
|
</view>
|
|
|
- <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'ali-btn':'default']" :disabled="remainPayTime >0 ? false : true" @click="appAliPayFn">支付宝支付</button>
|
|
|
|
|
|
|
+ <button class="button-com pay-wx" :class="[remainPayTime >0 ? 'ali-btn':'default']" :disabled="remainPayTime >0 ? false : true" @click="appAliPayFn(1)">支付宝支付</button>
|
|
|
<button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
|
|
<button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
@@ -184,14 +185,14 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- appAliPayFn(){
|
|
|
|
|
|
|
+ appAliPayFn(payWay){
|
|
|
let that = this
|
|
let that = this
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
// #endif
|
|
// #endif
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
|
let id = this.option.id ? this.option.id : 0
|
|
let id = this.option.id ? this.option.id : 0
|
|
|
- purchaseAliPay({ orderSn: this.orderSn }).then(res => {
|
|
|
|
|
|
|
+ purchaseAliPay({ orderSn: this.orderSn,payWay:payWay }).then(res => {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
if(res.data.payUrl){
|
|
if(res.data.payUrl){
|