提交 去掉paypal

This commit is contained in:
2025-02-24 13:50:00 +08:00
parent 202b63322d
commit 9e02df8f96

View File

@@ -66,7 +66,7 @@
</div> </div>
<div class="SettlementInstallmentOptionArea"> <div class="SettlementInstallmentOptionArea">
<div class="optionArea"> <div class="optionArea">
<div <!-- <div
class="installmentOption" class="installmentOption"
:class="selectedPaymentMethod == 'PayPal' ? 'isSelect' : ''" :class="selectedPaymentMethod == 'PayPal' ? 'isSelect' : ''"
@click="selectPaymentMethod('PayPal')" @click="selectPaymentMethod('PayPal')"
@@ -92,7 +92,7 @@
</div> </div>
<div v-if="selectedPaymentMethod === 'PayPal'" class="checkmark"></div> <div v-if="selectedPaymentMethod === 'PayPal'" class="checkmark"></div>
</div> </div>
</div> </div> -->
<div <div
class="installmentOption" class="installmentOption"
:class="selectedPaymentMethod == 'Paystation' ? 'isSelect' : ''" :class="selectedPaymentMethod == 'Paystation' ? 'isSelect' : ''"
@@ -184,7 +184,8 @@ export default {
articleInfo: {}, articleInfo: {},
journalInfo: {}, journalInfo: {},
total: '', total: '',
selectedPaymentMethod: 'PayPal', // 默认选中 PayPal // selectedPaymentMethod: 'PayPal', // 默认选中 PayPal
selectedPaymentMethod: 'Paystation', // 默认选中 PayPal
articleId: this.$route.query.id, articleId: this.$route.query.id,
urlList: { urlList: {
detail: 'api/Order/preOrderDetail', detail: 'api/Order/preOrderDetail',
@@ -239,10 +240,12 @@ export default {
.then((res) => { .then((res) => {
console.log('res at line 222:', res); console.log('res at line 222:', res);
if (res.code == 0) { if (res.code == 0) {
this.$router.push(res.data.paystation.payment_url)
window.location.href = res.data.paystation.payme_url; loading.close(); // window.location.href = res.data.paystation.payment_url;
loading.close();
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
loading.close()
} }
}); });
}, },