ExistingBureau.vue
2.4 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
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
<template>
<view class="existing_bureau">
<view v-for="item in 3" :key="item" class="bureau_item" @click="goRouter">
<view class="left">
<image class="cover_img" src="@/static/homeImg/bgimg.webp" mode=""></image>
</view>
<view class="right">
<text class="f-w-500 f-28 l-h-38 mb-10">北宋奇案·汴京</text>
<view class="line-2">
<text>1号包间</text>
<text class="m-l-20">¥99/人</text>
</view>
<text class="col-3d">06月03日 今天19:30</text>
<text class="detail">详情</text>
<view class="avatar_group">
<u-avatar-group
:urls="urls"
size="15"
maxCount="4"
gap="0.4"
/>
<text class="col-3d">等7人</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data(){
return {
urls: [
'https://cdn.uviewui.com/uview/album/1.jpg',
'https://cdn.uviewui.com/uview/album/2.jpg',
'https://cdn.uviewui.com/uview/album/3.jpg',
'https://cdn.uviewui.com/uview/album/4.jpg',
'https://cdn.uviewui.com/uview/album/7.jpg',
'https://cdn.uviewui.com/uview/album/6.jpg',
'https://cdn.uviewui.com/uview/album/5.jpg'
]
}
},
methods: {
goRouter(){
uni.navigateTo({
url: '/pages/bureauDetail/bureauDetail'
})
}
}
}
</script>
<style scoped lang="scss">
.existing_bureau{
padding: 0 14rpx;
.bureau_item{
display: flex;
align-items: center;
border-bottom: 1px solid #eee;
padding: 30rpx 0;
&:last-child{
border-bottom: 0;
}
.left{
width: 120rpx;
height: 120rpx;
border-radius: 12rpx;
overflow: hidden;
margin-right: 20rpx;
.cover_img{
width: 100%;
height: 100%;
}
}
.right{
position: relative;
flex: 1;
display: flex;
flex-direction: column;
font-size: 24rpx;
line-height: 32rpx;
.line-2{
color: #FFD900;
margin-bottom: 8rpx;
}
.detail {
position: absolute;
top: 0;
right: 40rpx;
color: #FFD900;
&::after{
position: absolute;
top: 50%;
right: -22rpx;
transform: translateY(-50%);
content: '';
width: 0;
height: 0;
border-top: 6rpx solid transparent;
border-bottom: 6rpx solid transparent;
border-left: 12rpx solid #FFD900;
}
}
.avatar_group{
position: absolute;
bottom: -8rpx;
right: 36rpx;
display: flex;
align-items: center;
gap: 4rpx;
}
}
}
}
</style>