|
@@ -104,6 +104,8 @@ const payPrice = ref(0)
|
|
|
const expirationTime = ref(-1)
|
|
|
const orderId = ref('')
|
|
|
|
|
|
+let paymentCodeParams = null
|
|
|
+
|
|
|
const canUse = computed(() => {
|
|
|
return new Date().getTime() < userStore.userInfo?.vipExpireDate
|
|
|
})
|
|
@@ -133,6 +135,7 @@ getData()
|
|
|
// 重新获取订单
|
|
|
const refreshQrCode = (payType) => {
|
|
|
payChannelCode.value = payType
|
|
|
+ paymentCode(paymentCodeParams)
|
|
|
}
|
|
|
|
|
|
const dredgeIndex = ref(0)
|
|
@@ -149,6 +152,7 @@ async function createOrder (val, i) {
|
|
|
|
|
|
if (data) {
|
|
|
// 获取支付码
|
|
|
+ paymentCodeParams = data
|
|
|
paymentCode(data)
|
|
|
return
|
|
|
}
|
|
@@ -168,6 +172,7 @@ async function createOrder (val, i) {
|
|
|
|
|
|
// 获取支付码
|
|
|
|
|
|
+ paymentCodeParams = _data
|
|
|
paymentCode(_data)
|
|
|
// qrCode.value = data
|
|
|
} catch (error) {
|