ScriptList.vue
1.6 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
<template>
<view class="scriptList">
<view v-for="item in 3" :key="item" class="scritp_item" @click="goRouter">
<view class="left">
<image class="cover_img" src="@/static/homeImg/bgimg.webp" mode=""></image>
<text class="people_num">6人本</text>
</view>
<view class="right">
<text class="f-32 col-3d f-w-500 l-h-38 mb-10">北宋奇案·汴京</text>
<text class="col-9">古风/推理/悬疑/高阶</text>
<text class="rate">8.1分</text>
<text class="u-line-1 col-9">一段北宋时期耻辱的历史,两个南宋同朝...</text>
</view>
</view>
</view>
</template>
<script>
export default {
methods: {
goRouter(){
uni.navigateTo({
url: '/pages/bureauDetail/bureauDetail'
})
}
}
}
</script>
<style lang="scss" scoped>
.scriptList{
padding: 0 20rpx;
.scritp_item{
display: flex;
align-items: center;
padding: 30rpx 0;
border-bottom: 1px solid #eee;
&:last-child{
border-bottom: 0;
}
.left{
position: relative;
width: 140rpx;
height: 180rpx;
border-radius: 8rpx;
overflow: hidden;
margin-right: 20rpx;
.cover_img{
width: 100%;
height: 100%;
}
.people_num{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 32rpx;
background-color: rgba(0, 0, 0, 0.7);
line-height: 32rpx;
color: #fff;
text-align: center;
font-size: 24rpx;
}
}
.right{
display: flex;
flex-direction: column;
flex: 1;
font-size: 24rpx;
line-height: 32rpx;
.rate{
color: #FFD900;
margin-top: 18rpx;
margin-bottom: 14rpx;
}
}
}
}
</style>