From dc5dbf0304050a2a84cd16df3330949de41ca723 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 10 十一月 2025 16:45:19 +0800
Subject: [PATCH] fix: bug
---
packages/components/src/Card/TaskPrice.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/packages/components/src/Card/TaskPrice.vue b/packages/components/src/Card/TaskPrice.vue
index b359093..0f93364 100644
--- a/packages/components/src/Card/TaskPrice.vue
+++ b/packages/components/src/Card/TaskPrice.vue
@@ -1,17 +1,23 @@
<template>
<div class="task-price">
- <div class="task-price-decimal">55</div>
- <div class="task-price-unit">鍏�/灏忔椂</div>
+ <div class="task-price-decimal" v-if="billingMethod !== EnumBillingMethod.Face">
+ {{ value }}
+ </div>
+ <div class="task-price-unit">{{ unit }}</div>
</div>
</template>
<script setup lang="ts">
+import { EnumBillingMethod } from '@12333/constants';
+
defineOptions({
name: 'TaskPrice',
});
type Props = {
- value?: number;
+ value?: number | string;
+ unit?: string;
+ billingMethod?: EnumBillingMethod;
};
const props = withDefaults(defineProps<Props>(), {});
@@ -29,6 +35,7 @@
font-size: 32px;
line-height: 40px;
margin-right: 8px;
+ font-weight: 600;
}
.task-price-unit {
--
Gitblit v1.9.1