fix: 更新订单组件中的价格和金额显示格式,确保以美元为单位展示

This commit is contained in:
2026-01-08 00:55:46 +07:00
parent ff970092f0
commit d8ba3fedf3
3 changed files with 10 additions and 10 deletions

View File

@@ -34,7 +34,7 @@
"@elysiajs/eden": "^1.4.5",
"@ionic/vue": "^8.7.11",
"@ionic/vue-router": "^8.7.11",
"@riwa/api-types": "http://192.168.1.17:9527/api/riwa-eden-0.0.89.tgz",
"@riwa/api-types": "http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz",
"@tailwindcss/vite": "^4.1.18",
"@vee-validate/yup": "^4.15.1",
"@vueuse/core": "^14.1.0",

12
pnpm-lock.yaml generated
View File

@@ -57,8 +57,8 @@ importers:
specifier: ^8.7.11
version: 8.7.11(@stencil/core@4.39.0)(vue-router@4.6.3(vue@3.5.25(typescript@5.9.3)))(vue@3.5.25(typescript@5.9.3))
'@riwa/api-types':
specifier: http://192.168.1.17:9527/api/riwa-eden-0.0.89.tgz
version: '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.89.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))'
specifier: http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz
version: '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))'
'@tailwindcss/vite':
specifier: ^4.1.18
version: 4.1.18(vite@7.2.7(@types/node@24.10.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.1)(yaml@2.8.2))
@@ -2766,9 +2766,9 @@ packages:
'@remirror/core-constants@3.0.0':
resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}
'@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.89.tgz':
resolution: {tarball: http://192.168.1.17:9527/api/riwa-eden-0.0.89.tgz}
version: 0.0.89
'@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz':
resolution: {tarball: http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz}
version: 0.0.91
peerDependencies:
'@elysiajs/eden': ^1.4.5
@@ -12077,7 +12077,7 @@ snapshots:
'@remirror/core-constants@3.0.0': {}
'@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.89.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))':
'@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.91.tgz(@elysiajs/eden@1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))':
dependencies:
'@elysiajs/eden': 1.4.5(elysia@1.4.18(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3))

View File

@@ -83,7 +83,7 @@ onMounted(() => {
<div class="grid grid-cols-2 gap-2 mb-2">
<div class="flex justify-between text-xs">
<span class="text-(--ion-text-color-step-400)">单价</span>
<span class="text-(--ion-text-color) font-medium">{{ Number(item.quantity).toFixed(2) }}</span>
<span class="text-(--ion-text-color) font-medium">${{ Number(item.subscriptionOrder.unitPrice).toFixed(2) }}</span>
</div>
<div class="flex justify-between text-xs">
<span class="text-(--ion-text-color-step-400)">数量</span>
@@ -95,11 +95,11 @@ onMounted(() => {
</div>
<div class="flex justify-between text-xs">
<span class="text-(--ion-text-color-step-400)">总额</span>
<span class="text-(--ion-text-color) font-medium">{{ item.subscriptionOrder.totalAmount }} USDT</span>
<span class="text-(--ion-text-color) font-medium">${{ item.costValue }}</span>
</div>
<div class="flex justify-between text-xs">
<span class="text-(--ion-text-color-step-400)">总分红</span>
<span class="text-(--ion-text-color) font-medium">{{ Number(item.totalDividendReceived).toFixed(2) }} USDT</span>
<span class="text-(--ion-text-color) font-medium">${{ Number(item.totalDividendReceived).toFixed(2) }}</span>
</div>
</div>