|
@ -302,7 +302,6 @@ const onPay = () => { |
|
|
body: cart.value |
|
|
body: cart.value |
|
|
}).then(async res => { |
|
|
}).then(async res => { |
|
|
if (res.code == 0) { |
|
|
if (res.code == 0) { |
|
|
console.log(res.data) |
|
|
|
|
|
try { |
|
|
try { |
|
|
// 生成二维码图像数据URL |
|
|
// 生成二维码图像数据URL |
|
|
wxPayQrCode.value = await QRCode.toDataURL(res.data); |
|
|
wxPayQrCode.value = await QRCode.toDataURL(res.data); |
|
@ -349,6 +348,7 @@ const reload = async () => { |
|
|
cart.value.comments = `购买${response.value?.data.shortName}`; |
|
|
cart.value.comments = `购买${response.value?.data.shortName}`; |
|
|
if(response.value?.data.price){ |
|
|
if(response.value?.data.price){ |
|
|
cart.value.payPrice = response.value?.data.price; |
|
|
cart.value.payPrice = response.value?.data.price; |
|
|
|
|
|
cart.value.adminUrl = response.value?.data.domain; |
|
|
computeTotalPrice(); |
|
|
computeTotalPrice(); |
|
|
} |
|
|
} |
|
|
useHead({ |
|
|
useHead({ |
|
|