保誠-保戶業務員媒合平台
Tomas
2021-12-08 5730601f103ea285d129bf3d89acd649e86c114a
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
import { Vue,Component } from 'vue-property-decorator'
import { isMobileDevice } from '~/assets/ts/device';
import { ReviewsItem } from '~/assets/ts/models/reviews-item.model';
 
@Component({
    layout: 'home'
})
export default class UserReviews extends Vue {
 
    isMobileDevice = true;
    showReviews = false;
 
    reviewsList: ReviewsItem[] = [
        {
            avatar:'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
            name:'蔡美眉',
            avgScore: 0
        },
        {
            avatar:'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
            name:'賈斯町',
            avgScore: 0
        },
        {
            avatar:'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
            name:'服務媒合',
            avgScore: 0
        }
    ];
 
    reviewsDialogCheck(): void {
        this.reviewsList = this.reviewsList.filter((reviewItem) => !reviewItem.avgScore);
        this.showReviews = false;
    };
 
    mounted() {
        this.isMobileDevice = isMobileDevice();
    };
 
    sendReviews() {
        this.showReviews = true;
    };
}