evaluateCard.vue
1.8 KB
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
<template>
<view class="comment_arena">
<CommonTitleNav titleName="场馆评价">
<template #side-content>
<view style="display: flex;align-items: center;font-size: 24rpx;color: #999;">
<text style="margin-right: 6rpx;">更多评价</text>
<u-icon name="arrow-right" color="#999999" size="14"></u-icon>
</view>
</template>
</CommonTitleNav>
<!-- 评分 -->
<view class="evaluate">
<view class="left_box">
<view class="evaluate_item">
<text>整体评价</text>
<text class="score">4.8</text>
</view>
</view>
<view class="right_box">
<view v-for="(item, index) in evaluateList" :key="index" class="evaluate_item">
<text>{{ item.title }}</text>
<text class="score">{{ item.score }}</text>
</view>
</view>
</view>
</view>
</template>
<script>
import CommonTitleNav from '@/components/commonTitleNav.vue'
export default{
components: { CommonTitleNav },
data() {
return {
evaluateList: [
{ title: '环境', score: '4.6' },
{ title: '服务', score: '4.5' },
{ title: '性价比', score: '4.9' },
]
}
}
}
</script>
<style lang="scss" scoped>
// 场馆评价
.comment_arena{
background: #FFFFFF;
border-radius: 16rpx;
margin: 24rpx 30rpx;
padding: 24rpx 32rpx;
box-sizing: border-box;
// 评价
.evaluate{
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 26rpx;
.left_box{
flex: 3;
.evaluate_item{
align-items: flex-start;
}
}
.right_box{
flex: 4;
display: flex;
justify-content: space-around;
}
.evaluate_item{
display: flex;
flex-direction: column;
align-items: center;
color: #333;
font-size: 24rpx;
line-height: 32rpx;
.score{
color: $uni-color-primary;
font-size: 32rpx;
margin-top: 24rpx;
}
}
}
}
</style>