feat:钱包规则

This commit is contained in:
dzc committed 2025-03-30 19:52:09 +08:00
1 parent 4db372e852
commit 0bb6a90c9a
10 files changed
+425 -26

No files matched your search

@@ -0,0 +1,30 @@
<template>
<div class="size-full flex justify-start">
<div class="size-full text-start">
<span class="color-primary">{{ detail.sourceName ? detail.sourceName : "???" }}</span>
<span>转到</span>
<span class="color-primary">{{ detail.targetName ? detail.targetName : "???" }}</span>
<span>百分比为</span>
<span class="color-danger">{{ detail.balanceMultiple ? detail.balanceMultiple : "???" }}%</span>
<span>,如100元从</span>
<span class="color-primary">{{ detail.sourceName ? detail.sourceName : "???" }}</span>
<span>转到</span>
<span class="color-primary">{{ detail.targetName ? detail.targetName : "???" }}</span>
<span>为{{ (100 * detail.balanceMultiple) / 100 }}元</span>
</div>
</div>
</template>
<script setup lang="ts" name="mchRuleDesc">
import { displayPrice } from "/@/utils/formatMoney"
export type Props = {
detail: any
}
const props = withDefaults(defineProps<Props>(), {
detail: {},
})
const { detail } = toRefs(props)
</script>