Add subscription support (#100)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-08-16 00:31:58 +08:00
1 parent 7688a1787e
commit 14b04fe54f
355 files changed
+9161 -7020

No files matched your search

+3 -1
View File
@@ -43,7 +43,7 @@
</div>
</el-col>
</el-row>
<el-row v-if="order?.state === OrderState.PAID" class="mb-5">
<el-row v-if="order?.state === OrderState.PAID || order?.state === OrderState.FINISHED" class="mb-5">
<el-col :span="16" :offset="4">
<el-divider border-style="dashed" />
<el-alert :title="$t('order.message.paidSuccessfully')" type="success" show-icon :closable="false" />
@@ -140,6 +140,7 @@ import WechatPayOrder from '@/components/order/WechatPay.vue';
import StripePayOrder from '@/components/order/StripePay.vue';
import { IApplicationType, IOrder, IOrderDetailResponse, OrderState } from '@/models';
import { getPriceString } from '@/utils';
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
enum PayWay {
WechatPay = 'WechatPay',
@@ -163,6 +164,7 @@ export default defineComponent({
name: 'ConsoleOrderDetail',
components: {
ElButton,
CopyToClipboard,
ElRow,
ElCard,
ElCol,
+4 -1
View File
@@ -31,6 +31,9 @@
<span v-else-if="scope.row.state === OrderState?.PAID" class="state state-paid">
<el-tag type="success" class="mx-1" effect="dark">{{ $t('order.state.paid') }}</el-tag>
</span>
<span v-else-if="scope.row.state === OrderState?.FINISHED" class="state state-finished">
<el-tag type="success" class="mx-1" effect="dark">{{ $t('order.state.finished') }}</el-tag>
</span>
<span v-else-if="scope.row.state === OrderState?.EXPIRED" class="state state-expired">
<el-tag type="warning" class="mx-1" effect="dark">{{ $t('order.state.expired') }}</el-tag>
</span>
@@ -53,7 +56,7 @@
<template #default="scope">
<div class="float-right">
<el-button
v-if="scope.row.state !== OrderState.PAID"
v-if="scope.row.state !== OrderState.PAID || scope.row.state !== OrderState.FINISHED"
type="primary"
size="small"
round