feat: 更新了权益的样式
This commit is contained in:
1 parent
e675ecc3d7
commit
8f8ca96a82
9 files changed
+97
-450
No files matched your search
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
import { computed } from "vue";
|
||||
import { BENEFIT_TYPE_LABEL } from "@/constant";
|
||||
import { dateRangeText, priceText } from "@/utils";
|
||||
import { dateRangeText, priceText, rateText } from "@/utils";
|
||||
|
||||
const props = defineProps({
|
||||
visible: { type: Boolean, default: false },
|
||||
@@ -20,6 +20,8 @@ const typeKey = computed(() => b.value.section_key || b.value.type || "");
|
||||
const typeLabel = computed(() => BENEFIT_TYPE_LABEL[typeKey.value] || "权益");
|
||||
|
||||
const priceLine = computed(() => {
|
||||
const rate = rateText(b.value.price?.rate);
|
||||
if (rate) return `门市价 ${rate}`;
|
||||
const deal = priceText(b.value.price?.deal);
|
||||
const original = priceText(b.value.price?.original);
|
||||
if (!deal) return b.value.scope_desc || "";
|
||||
|
||||
Reference in new issue
Block a user