This commit is contained in:
2026-04-30 18:48:49 +08:00
parent 0050127cfd
commit 9a4effe05d
3 changed files with 14 additions and 8 deletions

View File

@@ -43,7 +43,7 @@
<div class="flex-1"> <div class="flex-1">
<h4 class="text-sm font-semibold text-gray-800 m-0 mb-1">{{ product.name }}</h4> <h4 class="text-sm font-semibold text-gray-800 m-0 mb-1">{{ product.name }}</h4>
<p class="text-xs text-gray-500 m-0 mb-1 font-mono">{{ product.code }}</p> <p class="text-xs text-gray-500 m-0 mb-1 font-mono">{{ product.code }}</p>
<div class="flex items-center gap-1"> <div v-if="!isSubordinate" class="flex items-center gap-1">
<span class="text-xs text-gray-500">价格:</span> <span class="text-xs text-gray-500">价格:</span>
<span class="text-xs font-semibold text-red-600">¥{{ product.price }}</span> <span class="text-xs font-semibold text-red-600">¥{{ product.price }}</span>
</div> </div>
@@ -631,6 +631,7 @@ const router = useRouter()
const route = useRoute() const route = useRoute()
const userStore = useUserStore() const userStore = useUserStore()
const isSubordinate = computed(() => userStore.accountKind === 'subordinate')
// 响应式数据 // 响应式数据
const loading = ref(false) const loading = ref(false)

View File

@@ -233,7 +233,7 @@
<label class="detail-label">接口名称</label> <label class="detail-label">接口名称</label>
<span class="detail-value">{{ selectedApiCall.product_name || '未知接口' }}</span> <span class="detail-value">{{ selectedApiCall.product_name || '未知接口' }}</span>
</div> </div>
<div class="detail-item"> <div v-if="!isSubordinate" class="detail-item">
<label class="detail-label">费用</label> <label class="detail-label">费用</label>
<span class="detail-value"> <span class="detail-value">
<span v-if="selectedApiCall.cost" class="text-red-600 font-semibold">¥{{ formatPrice(selectedApiCall.cost) }}</span> <span v-if="selectedApiCall.cost" class="text-red-600 font-semibold">¥{{ formatPrice(selectedApiCall.cost) }}</span>
@@ -288,6 +288,9 @@ import { ElMessage } from 'element-plus'
// 移动端检测 // 移动端检测
const { isMobile } = useMobileTable() const { isMobile } = useMobileTable()
const userStore = useUserStore()
const isSubordinate = computed(() => userStore.accountKind === 'subordinate')
// 认证相关 // 认证相关
const { const {
isCertified, isCertified,

View File

@@ -112,7 +112,7 @@
</el-tag> </el-tag>
</span> </span>
</div> </div>
<div class="info-item"> <div v-if="!isSubordinate" class="info-item">
<label class="info-label">价格</label> <label class="info-label">价格</label>
<span class="info-value price">¥{{ formatPrice(product.price) }}</span> <span class="info-value price">¥{{ formatPrice(product.price) }}</span>
</div> </div>
@@ -139,7 +139,7 @@
<div v-if="product.is_package && product.package_items && product.package_items.length > 0" class="detail-section"> <div v-if="product.is_package && product.package_items && product.package_items.length > 0" class="detail-section">
<h3 class="section-title">组合包内容</h3> <h3 class="section-title">组合包内容</h3>
<div class="package-items-container"> <div class="package-items-container">
<div class="package-summary"> <div v-if="!isSubordinate" class="package-summary">
<el-alert <el-alert
title="此组合包包含以下产品" title="此组合包包含以下产品"
type="info" type="info"
@@ -168,7 +168,7 @@
</div> </div>
</div> </div>
<div class="package-item-price"> <div v-if="!isSubordinate" class="package-item-price">
<span class="price-label">价值</span> <span class="price-label">价值</span>
<span class="price-value">¥{{ formatPrice(item.price) }}</span> <span class="price-value">¥{{ formatPrice(item.price) }}</span>
</div> </div>
@@ -335,7 +335,7 @@
</div> </div>
</div> </div>
<div class="price-info" v-if="currentUIComponentPrice && !canDownloadReport"> <div v-if="!isSubordinate && currentUIComponentPrice && !canDownloadReport" class="price-info">
<h4>价格信息</h4> <h4>价格信息</h4>
<div class="price-summary"> <div class="price-summary">
<div class="price-row"> <div class="price-row">
@@ -385,6 +385,8 @@ import { h } from 'vue'
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
const userStore = useUserStore()
const isSubordinate = computed(() => userStore.accountKind === 'subordinate')
// 移动端检测 // 移动端检测
const { isMobile } = useMobileTable() const { isMobile } = useMobileTable()
@@ -1322,7 +1324,7 @@ const showWechatPaymentQRCode = (codeUrl, orderId) => {
}, '点击打开微信支付') }, '点击打开微信支付')
]), ]),
h('div', { style: 'font-size: 14px; color: #666;' }, [ h('div', { style: 'font-size: 14px; color: #666;' }, [
h('p', `支付金额:¥${formatPrice(currentUIComponentPrice)}`), isSubordinate.value ? null : h('p', `支付金额:¥${formatPrice(currentUIComponentPrice)}`),
h('p', '支付完成后,请点击"我已支付"按钮') h('p', '支付完成后,请点击"我已支付"按钮')
]) ])
]) ])
@@ -1330,7 +1332,7 @@ const showWechatPaymentQRCode = (codeUrl, orderId) => {
}) })
]), ]),
h('div', { style: 'font-size: 14px; color: #666;' }, [ 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', '支付完成后,系统将自动检测支付状态') h('p', '支付完成后,系统将自动检测支付状态')
]) ])
]), ]),