订单逻辑修改,支付宝兼容
This commit is contained in:
@@ -94,10 +94,9 @@
|
||||
}
|
||||
},
|
||||
|
||||
groupChange (n) {
|
||||
console.log(n)
|
||||
this.radiovalue = n;
|
||||
this.paymentBtnText = n==1?'余额支付':'微信支付'
|
||||
groupChange (e) {
|
||||
this.radiovalue = e.type;
|
||||
this.paymentBtnText = e.name;
|
||||
},
|
||||
/**
|
||||
* 获取订单信息
|
||||
@@ -133,14 +132,14 @@
|
||||
* 去支付
|
||||
*/
|
||||
goToPay(){
|
||||
if ( this.radiovalue == 2 && this.listinfo.payAmount <= 0 ) {
|
||||
if ( this.radiovalue == 2 || this.radiovalue == 3 && this.listinfo.payAmount <= 0 ) {
|
||||
uni.showToast({
|
||||
title: "支付金额必须大于0",
|
||||
icon: 'none'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (this.radiovalue == 2) {
|
||||
if (this.radiovalue == 2 || this.radiovalue == 3) {
|
||||
this.wechatPay() //微信支付
|
||||
} else {
|
||||
// 先判断是否设置支付密码。0是没设置。没设置的情况下跳转到设置页面。有的话输入支付密码
|
||||
|
||||
Reference in New Issue
Block a user