提交
This commit is contained in:
@@ -240,8 +240,8 @@ export default {
|
||||
.then((res) => {
|
||||
console.log('res at line 222:', res);
|
||||
if (res.code == 0) {
|
||||
this.$router.push(res.data.paystation.payment_url)
|
||||
// window.location.href = res.data.paystation.payment_url;
|
||||
|
||||
window.location.href = res.data.detail.paystation_url;
|
||||
loading.close();
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="success-box" v-if="articleInfo.accept_sn">
|
||||
<div class="success-box" v-if="articleInfo.order_sn">
|
||||
<div class="payment-success">
|
||||
<div style="display: flex; align-items: center; margin-bottom: 10px">
|
||||
<h2 style="margin: 0 auto; display: flex; align-items: center">
|
||||
@@ -10,11 +10,11 @@
|
||||
<p>
|
||||
Article ID:
|
||||
|
||||
<span style="color: #333; font-weight: 600"> {{ articleInfo.accept_sn }}</span>
|
||||
<span style="color: #333; font-weight: 600"> {{ articleInfo.order_sn }}</span>
|
||||
</p>
|
||||
<p>
|
||||
Total Amount: <span style="color: #ff5000"><span class="currency">$</span></span
|
||||
><span style="color: #ff5000; font-size: 24px; line-height: 24px">{{ formatAmount(total) }}</span>
|
||||
Total Amount: <span style="color: #ff5000"></span
|
||||
><span style="color: #ff5000; font-size: 24px; line-height: 24px">{{ formatAmount(total) }} <span class="" style="font-size: 20px;">{{ articleInfo.paystation.currency }}</span></span>
|
||||
</p>
|
||||
<!-- <p>Payment Method: {{ paymentMethod }}</p> -->
|
||||
<p>You will receive an email confirmation shortly.</p>
|
||||
@@ -30,7 +30,7 @@ export default {
|
||||
return {
|
||||
alertShow: true,
|
||||
urlList: {
|
||||
detail: 'api/Order/preOrderDetail',
|
||||
detail: 'api/Preaccept/getPreacceptPayment',
|
||||
createdOrder: 'api/Order/creatArticleOrder'
|
||||
},
|
||||
articleInfo: {},
|
||||
@@ -68,10 +68,10 @@ export default {
|
||||
.then((res) => {
|
||||
console.log('res at line 191:', res);
|
||||
if (res.code == 0) {
|
||||
this.articleInfo = res.data.article_detail;
|
||||
this.journalInfo = res.data.journal_detail;
|
||||
this.articleInfo = res.data.order;
|
||||
// this.journalInfo = res.data.journal_detail;
|
||||
|
||||
this.total = this.journalInfo.fee;
|
||||
this.total = Number(res.data.order.paystation.amount / 100);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user