From eae59b2d0c6f23529b4ab22c0bc4ed528e4d64f5 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 31 十二月 2025 10:03:06 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
---
packages/components/src/Card/TaskPrice.vue | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/packages/components/src/Card/TaskPrice.vue b/packages/components/src/Card/TaskPrice.vue
index b359093..6a77f96 100644
--- a/packages/components/src/Card/TaskPrice.vue
+++ b/packages/components/src/Card/TaskPrice.vue
@@ -1,17 +1,26 @@
<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 || 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 +38,7 @@
font-size: 32px;
line-height: 40px;
margin-right: 8px;
+ font-weight: 600;
}
.task-price-unit {
--
Gitblit v1.10.0