|
@@ -32,7 +32,7 @@ const response = ref({
|
|
src: ''
|
|
src: ''
|
|
})
|
|
})
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- getDetial()
|
|
|
|
|
|
+ // getDetial()
|
|
})
|
|
})
|
|
|
|
|
|
function inverRequest() {
|
|
function inverRequest() {
|
|
@@ -73,11 +73,18 @@ async function handleQueryOrderStatus() {
|
|
function getDetial() {
|
|
function getDetial() {
|
|
getOrderInfo(orderSn.value).then((res) => {
|
|
getOrderInfo(orderSn.value).then((res) => {
|
|
orderDetal.value = res
|
|
orderDetal.value = res
|
|
|
|
+ if (isEur.value) {
|
|
|
|
+ selectedPayType.value = orderDetal.value.payType == 5 ? 'paypal' : 'stripe'
|
|
|
|
+ }
|
|
getCode()
|
|
getCode()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+getDetial()
|
|
function handlePay() {
|
|
function handlePay() {
|
|
if (orderDetal.value.payType == 5 || orderDetal.value.payType == 6) {
|
|
if (orderDetal.value.payType == 5 || orderDetal.value.payType == 6) {
|
|
|
|
+ //打开一个不被拦截的新窗口
|
|
|
|
+ var win = window.open();
|
|
|
|
+ win.document.body.innerHTML="正在拼命加载中......";
|
|
openPay({
|
|
openPay({
|
|
orderSn: orderSn.value,
|
|
orderSn: orderSn.value,
|
|
payType: paysidtype[selectedPayType.value],
|
|
payType: paysidtype[selectedPayType.value],
|
|
@@ -85,7 +92,9 @@ function handlePay() {
|
|
openId: ''
|
|
openId: ''
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
qrCodeUrl.value = res.qrCodeUrl || res.redirect
|
|
qrCodeUrl.value = res.qrCodeUrl || res.redirect
|
|
- window.open(qrCodeUrl.value)
|
|
|
|
|
|
+ // window.open('javascript:;', '<script>console.log(window.name)<\/script>')
|
|
|
|
+ win.location.href = qrCodeUrl.value;
|
|
|
|
+ // window.open(qrCodeUrl.value)
|
|
// inverRequest()
|
|
// inverRequest()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|