wupengfei
2 天以前 84609d384c2f0abfcfcb23cbfe1be5922425842a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
  <div class="withdraw-money-card">
    <div class="withdraw-money-card-value">
      <div class="withdraw-money-card-value-unit">¥</div>
      <div class="withdraw-money-card-value-num">{{ toThousand(props.money) }}</div>
    </div>
    <div class="withdraw-money-card-type">{{ props.title }}</div>
  </div>
</template>
 
<script setup lang="ts">
import { toThousand } from '@12333/utils';
 
defineOptions({
  name: 'WithdrawMoneyCard',
});
 
type Props = {
  money: number;
  title: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
 
const emit = defineEmits<{
  (e: 'update:checkedId', value: string): void;
}>();
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.withdraw-money-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  // background-color: #ffffff;
  padding: 70px 0;
 
  .withdraw-money-card-value {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: boleGetCssVar('text-color', 'primary');
 
    .withdraw-money-card-value-unit {
      font-size: 32px;
    }
 
    .withdraw-money-card-value-num {
      font-size: 64px;
    }
  }
 
  .withdraw-money-card-type {
    margin-top: 10px;
    font-weight: 400;
    font-size: 28px;
    color: boleGetCssVar('text-color', 'primary');
  }
}
</style>