Add round style for button and fix model name (#17)

This commit is contained in:
AceDataCloud committed 2024-04-05 06:39:40 +00:00
1 parent 1d4b42aefb
commit b2036fc477
9 files changed
+41 -31

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@
<el-table-column fixed="right" width="120px">
<template #default="scope">
<div class="float-right">
<el-button type="primary" size="small" @click="onBuyMore(scope?.row)">
<el-button type="primary" round size="small" @click="onBuyMore(scope?.row)">
{{ $t('application.button.buyMore') }}
</el-button>
</div>
+2 -2
View File
@@ -90,12 +90,12 @@
</div>
</div>
<div v-if="!order?.pay_way">
<el-button :loading="prepaying" type="primary" size="large" class="btn-pay" @click="onPay">{{
<el-button :loading="prepaying" round type="primary" size="large" class="btn-pay" @click="onPay">{{
$t('common.button.pay')
}}</el-button>
</div>
<div v-else>
<el-button type="primary" size="large" class="btn-repay" @click="onRepay">{{
<el-button type="primary" round size="large" class="btn-repay" @click="onRepay">{{
$t('common.button.repay')
}}</el-button>
</div>
+14 -12
View File
@@ -23,17 +23,7 @@
<span class="price">¥{{ scope.row?.price?.toFixed(2) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('order.field.createdAt')" width="180px">
<template #default="scope">
<span class="created-at">{{ $dayjs.format(scope.row.created_at) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('order.field.description')" width="300px">
<template #default="scope">
<span class="description">{{ scope.row.description }}</span>
</template>
</el-table-column>
<el-table-column prop="state" :label="$t('order.field.state')" class-name="text-center">
<el-table-column prop="state" :label="$t('order.field.state')" class-name="text-center" width="120px">
<template #default="scope">
<span v-if="scope.row.state === OrderState?.PENDING">
<el-tag type="info" class="mx-1" effect="dark">{{ $t('order.state.pending') }}</el-tag>
@@ -49,13 +39,24 @@
</span>
</template>
</el-table-column>
<el-table-column min-width="120px">
<el-table-column :label="$t('order.field.description')" width="300px">
<template #default="scope">
<span class="description">{{ scope.row.description }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('order.field.createdAt')" width="180px">
<template #default="scope">
<span class="created-at">{{ $dayjs.format(scope.row.created_at) }}</span>
</template>
</el-table-column>
<el-table-column fixed="right" min-width="120px">
<template #default="scope">
<div class="float-right">
<el-button
v-if="scope.row.state !== OrderState.PAID"
type="primary"
size="small"
round
@click="
$router.push({
name: 'console-order-detail',
@@ -70,6 +71,7 @@
<el-button
v-else
size="small"
round
@click="
$router.push({
name: 'console-order-detail',