Update styles of buttons (#21)
This commit is contained in:
1 parent
23bd8e44d6
commit
b5b0216272
8 files changed
+30
-8
No files matched your search
@@ -49,7 +49,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column>
|
||||
<template #default="scope">
|
||||
<el-button type="danger" size="small" @click="onDelete(scope.row.id)">
|
||||
<el-button type="danger" round size="small" @click="onDelete(scope.row.id)">
|
||||
{{ $t('common.button.delete') }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -112,7 +112,6 @@ export default defineComponent({
|
||||
application: undefined,
|
||||
loading: false,
|
||||
form: {
|
||||
amount: 1000,
|
||||
packageId: undefined
|
||||
},
|
||||
creating: false
|
||||
@@ -165,13 +164,13 @@ export default defineComponent({
|
||||
orderOperator
|
||||
.create({
|
||||
application_id: this.application?.id,
|
||||
amount: this.form.amount,
|
||||
amount: this.package?.amount,
|
||||
...(this.form.packageId !== 'custom' && this.package
|
||||
? {
|
||||
package_id: this.package.id
|
||||
}
|
||||
: {}),
|
||||
description: `${this.application?.service?.title} x ${this.form.amount} ${unit}`
|
||||
description: `${this.application?.service?.title} x ${this.package?.amount} ${unit}`
|
||||
})
|
||||
.then(({ data: data }: { data: IOrderDetailResponse }) => {
|
||||
this.creating = false;
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
<el-descriptions-item v-if="order?.application?.service" :label="$t('order.field.api')">
|
||||
{{ order?.application?.service?.title }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="order?.pay_way" :label="$t('order.field.payWay')">
|
||||
<span v-if="order?.pay_way === PayWay.WechatPay">{{ $t('order.title.wechatPay') }}</span>
|
||||
<span v-if="order?.pay_way === PayWay.Stripe">{{ $t('order.title.stripe') }}</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :label="$t('order.field.amount')">
|
||||
{{ order?.amount }} {{ $t(`service.unit.${order?.application?.service?.unit}`) }}
|
||||
</el-descriptions-item>
|
||||
@@ -48,6 +52,12 @@
|
||||
<el-alert :title="$t('order.message.paidSuccessfully')" type="success" show-icon :closable="false" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row v-if="order?.state === OrderState.EXPIRED" class="mb-5">
|
||||
<el-col :span="14" :offset="5">
|
||||
<el-divider border-style="dashed" />
|
||||
<el-alert :title="$t('order.message.orderExpired')" type="error" show-icon :closable="false" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row v-if="order?.state === OrderState.PENDING || order?.state === OrderState.FAILED">
|
||||
<el-col :span="14" :offset="5">
|
||||
<el-divider border-style="dashed" />
|
||||
|
||||
Reference in new issue
Block a user