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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
| <template>
|
| <!-- 應需截圖畫面上傳Otis 所以先分割出來一頁 , u也有在 NavBar 改 Role的設定 => needRole: [Role.NOT_LOGIN, Role.USER] 分開,
| 預計應該會使用辨識 保戶/顧問 登入而顯示不同渲染方式,已把兩種不同方式頁面做在名稱為 record/index 裡 Helen -->
| <div class="user-reviews-page">
| <section class="mdTxt">
| 查看紀錄
| </section>
|
| <section class="user-reviews-header">
| <div class="header-title mdTxt">
| 滿意度紀錄
| </div>
| </section>
|
| <!-- TODO: 根據登入者的 role 顯示不同的列表渲染方式 -->
|
|
| <!-- TODO: v-if curentUser Role is Client -->
| <section class="user-reviews-content">
| <div class="user-reviews-card" v-for="(item,index) in userReviewsList" :key="index">
| <div class="user-reviews-card-content" >
| 您對 <span class="mdTxt">{{item.name + ' '}}</span>做了{{item.score}}評價!
| </div>
| <div class="user-reviews-card-date">
| <div class="date">
| {{item.date}}
| </div>
| <div class="time">
| {{item.time}}
| </div>
| </div>
| </div>
| </section>
|
| <!-- TODO: v-if curentUser Role is Consultant -->
|
|
| </div>
|
| </template>
| <script lang="ts">
| import { Vue , Component} from 'vue-property-decorator';
|
|
| @Component
| export default class UserReviewsRecord extends Vue{
|
| userReviewsList=[
| {
| name:'蔡美眉',
| score:'★★★★★★',
| date:'今天',
| time:'10:00'
| },
| {
| name:'賈斯町',
| score:'★★★',
| date:'今天',
| time:'10:00'
| },
| {
| name:'陳家庭',
| score:'★★',
| date:'今天',
| time:'10:00'
| },
| {
| name:'李顧問',
| score:'★★★★★★',
| date:'今天',
| time:'10:00'
| },
| {
| name:'周顧問',
| score:'★★★★★★',
| date:'今天',
| time:'10:00'
| }
| ];
|
| }
| </script>
| <style lang="scss" scoped>
| .user-reviews-page{
| margin-bottom:155px;
| .user-reviews-header{
| height: 43px;
| margin-top: 28px;
| display: flex;
| justify-content: center;
| border-bottom: 2px solid black;
| }
| .user-reviews-content{
| .user-reviews-card{
| display: flex;
| justify-content: space-between;
| margin-top: 26px;
| border-bottom: 1px solid #707070;
| height: 54px;
| padding-bottom: 15px;
| .user-reviews-card-content{
| width: 242px;
| padding-right:50px;
| line-height: 1.2;
| font-size: 20px;
| margin-left: 15px;
| }
| .user-reviews-card-date{
| font-size: 12px;
| display: flex;
| flex-direction: column;
| align-items: flex-end;
| margin-right: 15px;
| width:52px;
| .date{
| margin-bottom: 2px;
|
| }
| }
| }
| }
| }
| @include desktop{
| .user-reviews-card-content{
| flex: 1;
| }
| }
| </style>
|
|