From 9a4effe05dd9d274cc78e3a43b9829ecafb9bf28 Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Thu, 30 Apr 2026 18:48:49 +0800 Subject: [PATCH] f --- src/pages/api/ApiDebugger.vue | 3 ++- src/pages/api/Usage.vue | 5 ++++- src/pages/products/detail.vue | 14 ++++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/pages/api/ApiDebugger.vue b/src/pages/api/ApiDebugger.vue index b3bef02..82afc7a 100644 --- a/src/pages/api/ApiDebugger.vue +++ b/src/pages/api/ApiDebugger.vue @@ -43,7 +43,7 @@

{{ product.name }}

{{ product.code }}

-
+
价格: ¥{{ product.price }}
@@ -631,6 +631,7 @@ const router = useRouter() const route = useRoute() const userStore = useUserStore() +const isSubordinate = computed(() => userStore.accountKind === 'subordinate') // 响应式数据 const loading = ref(false) diff --git a/src/pages/api/Usage.vue b/src/pages/api/Usage.vue index f25e72b..53cc535 100644 --- a/src/pages/api/Usage.vue +++ b/src/pages/api/Usage.vue @@ -233,7 +233,7 @@ {{ selectedApiCall.product_name || '未知接口' }}
-
+
¥{{ formatPrice(selectedApiCall.cost) }} @@ -288,6 +288,9 @@ import { ElMessage } from 'element-plus' // 移动端检测 const { isMobile } = useMobileTable() +const userStore = useUserStore() +const isSubordinate = computed(() => userStore.accountKind === 'subordinate') + // 认证相关 const { isCertified, diff --git a/src/pages/products/detail.vue b/src/pages/products/detail.vue index 9cf523b..1fe8424 100644 --- a/src/pages/products/detail.vue +++ b/src/pages/products/detail.vue @@ -112,7 +112,7 @@
-
+
¥{{ formatPrice(product.price) }}
@@ -139,7 +139,7 @@

组合包内容

-
+
-
+
价值: ¥{{ formatPrice(item.price) }}
@@ -335,7 +335,7 @@
-
+

价格信息

@@ -385,6 +385,8 @@ import { h } from 'vue' const route = useRoute() const router = useRouter() +const userStore = useUserStore() +const isSubordinate = computed(() => userStore.accountKind === 'subordinate') // 移动端检测 const { isMobile } = useMobileTable() @@ -1322,7 +1324,7 @@ const showWechatPaymentQRCode = (codeUrl, orderId) => { }, '点击打开微信支付') ]), h('div', { style: 'font-size: 14px; color: #666;' }, [ - h('p', `支付金额:¥${formatPrice(currentUIComponentPrice)}`), + isSubordinate.value ? null : h('p', `支付金额:¥${formatPrice(currentUIComponentPrice)}`), h('p', '支付完成后,请点击"我已支付"按钮') ]) ]) @@ -1330,7 +1332,7 @@ const showWechatPaymentQRCode = (codeUrl, orderId) => { }) ]), h('div', { style: 'font-size: 14px; color: #666;' }, [ - h('p', `支付金额:¥${formatPrice(currentUIComponentPrice.value || 0)}`), + isSubordinate.value ? null : h('p', `支付金额:¥${formatPrice(currentUIComponentPrice.value || 0)}`), h('p', '支付完成后,系统将自动检测支付状态') ]) ]),