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