Add pricing display (#31)

This commit is contained in:
AceDataCloud committed 2024-04-21 18:22:03 +00:00
1 parent 18259e0482
commit 282256de5d
146 files changed
+1135 -582

No files matched your search

-1
View File
@@ -46,7 +46,6 @@ import ModelSelector from '@/components/chat/ModelSelector.vue';
import { ERROR_CODE_CANCELED, ERROR_CODE_NOT_APPLIED, ERROR_CODE_UNKNOWN } from '@/constants/errorCode';
import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW } from '@/router';
import { Status } from '@/models';
import { log } from '@/utils/log';
import Introduction from '@/components/chat/Introduction.vue';
import Layout from '@/layouts/Chat.vue';
import { isJSONString } from '@/utils/is';
+1 -1
View File
@@ -20,7 +20,7 @@
</el-table-column>
<el-table-column :label="$t('order.field.price')" width="100px">
<template #default="scope">
<span class="price">¥{{ scope.row?.price?.toFixed(2) }}</span>
<span class="price">${{ scope.row?.price?.toFixed(2) }}</span>
</template>
</el-table-column>
<el-table-column prop="state" :label="$t('order.field.state')" class-name="text-center" width="150px">
+9
View File
@@ -1,5 +1,6 @@
<template>
<el-row class="panel">
<help-entry class="help" />
<el-col :span="24">
<el-row>
<el-col :span="24">
@@ -197,6 +198,7 @@ import { userOperator } from '@/operators';
import QrCode from 'vue-qrcode';
import { ROUTE_DISTRIBUTION_HISTORY, ROUTE_DISTRIBUTION_INVITEES } from '@/router';
import { IDistributionLevel, IDistributionStatus, IUser } from '@/models';
import HelpEntry from '@/components/common/HelpEntry.vue';
interface IData {
invitees: IUser[];
@@ -212,6 +214,7 @@ export default defineComponent({
CopyToClipboard,
FontAwesomeIcon,
QrCode,
HelpEntry,
ElProgress,
ElRow,
ElCol,
@@ -424,4 +427,10 @@ export default defineComponent({
color: var(--el-text-color-regular);
}
}
.help {
position: fixed;
right: 40px;
bottom: 40px;
z-index: 1000;
}
</style>