解锁视频增加加载
This commit is contained in:
@@ -1041,6 +1041,7 @@
|
||||
},
|
||||
popupPyaClose() {
|
||||
this.isOrder = true
|
||||
console.log(this.isOrder)
|
||||
},
|
||||
/**
|
||||
* @param {Object} type 类型
|
||||
@@ -1048,9 +1049,13 @@
|
||||
* 2:购买单集视频
|
||||
*/
|
||||
payVideo(type, num) {
|
||||
console.log(this.isOrder)
|
||||
if(!this.isOrder){
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
})
|
||||
this.isOrder = false
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.submitPay(type, num)
|
||||
@@ -1091,16 +1096,18 @@
|
||||
if (type == 1) { //金币
|
||||
this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
|
||||
} else if (type == 2) { //支付宝
|
||||
uni.hideLoading()
|
||||
this.closePay() //关闭购买选择弹窗
|
||||
this.payPrice = res.data.orders.payMoney //需要支付的价格
|
||||
this.openPopusPay() //显示充值弹窗
|
||||
}
|
||||
|
||||
}
|
||||
console.log(this.isOrder)
|
||||
|
||||
// this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
|
||||
} else {
|
||||
|
||||
this.isOrder = true
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
@@ -1124,7 +1131,6 @@
|
||||
this.closePopusPay()
|
||||
this.closePay()
|
||||
that.showPay = false
|
||||
this.isOrder = true
|
||||
that.showMoney = false
|
||||
that.noBuyVideoIndex = null
|
||||
setTimeout(() => {
|
||||
@@ -1143,6 +1149,7 @@
|
||||
// this.payPrice = payMoney //需要支付的价格
|
||||
// this.openPopusPay() //显示充值弹窗
|
||||
}
|
||||
this.isOrder = true
|
||||
});
|
||||
},
|
||||
//打开购买弹窗
|
||||
|
||||
Reference in New Issue
Block a user