保誠-保戶業務員媒合平台
Mila
2021-11-01 d4a535ae7dd07f70cf2f59fbc8256a3fa1df8c93
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
<template>
    <div class="consultantCardStyle">
        <img class="avator" :src="agentInfo.img" alt="">
        <div class="name">{{agentInfo.name}}</div>
        <div class="star">{{agentInfo.satisfaction}}</div>
    </div>
</template>
 
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
import { Agents } from '~/plugins/api/home';
 
@Component
export default class Avator extends Vue {
    @Prop() agentInfo!: Agents;
}
</script>
 
<style lang="scss" scoped>
    .consultantCardStyle {
        text-align: center;
 
        .avator {
            width: 80px;
            height: 80px;
            border-radius: 50px;
            margin: 0 auto 8px auto;
        }
 
        .name {
            font-size: 16px;
            font-weight: bold;
        }
 
        .star {
            font-size: 20px;
 
            &:before {
                content: '\2605';
                color: $PRIMARY_RED;
                margin-right: 10px;
                font-size: 15px;
            }
        }
    }
</style>