commentRate.vue
1.2 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
<template>
<view class="commentRate">
<view class="left">
<image class="avatar" src="https://cdn.uviewui.com/uview/album/2.jpg" mode="widthFix"></image>
</view>
<view class="right">
<view class="info">
<view class="top">
<text class="name">CLOOL</text>
<text class="arenaNum">预订场号:3号场</text>
</view>
<u-rate :count="count" active-color="#FF9900" size="20" inactiveColor="#CDCDCD" v-model="value"></u-rate>
</view>
<view class="comment_time">2022-12-26</view>
</view>
</view>
</template>
<script>
export default{
data(){
return {
count: 5,
value: 2
}
}
}
</script>
<style lang="scss" scoped>
.commentRate{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 24rpx;
line-height: 32rpx;
color: #999;
.left{
width: 64rpx;
height: 64rpx;
border-radius: 50%;
overflow: hidden;
margin-right: 16rpx;
.avatar{
width: 100%;
height: 100%;
}
}
.right{
display: flex;
justify-content: space-between;
flex: 1;
height: 100%;
.top {
margin-bottom: 8rpx;
.name{
color: #333;
margin-right: 10rpx;
}
}
}
}
</style>