ScriptList.vue 1.6 KB
<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>