bigShots.vue 4.6 KB
<template>
	<view class="bigShots">
		<view class="bigShots-1">
			<view class="bigShots-1-1">
				<view @tap="tabsClick(BIGSHOTS.VIDEOLESSONS)" :class="{'bigShots-1-1-i': true, 'bigShots-1-1-is': type === BIGSHOTS.VIDEOLESSONS}">视频课程</view>
				<view @tap="tabsClick(BIGSHOTS.AUDIOLESSONS)" :class="{'bigShots-1-1-i': true, 'bigShots-1-1-is': type === BIGSHOTS.AUDIOLESSONS}">音频课程</view>
			</view>
			<view class="bigShots-1-2">
				<view class="bigShots-1-2-i">
					视频专辑 <u-icon size="12" name="arrow-down-fill" color="#646464"></u-icon>
				</view>
				<view class="bigShots-1-2-i">
					评论量 <u-icon size="12" name="arrow-down-fill" color="#646464"></u-icon>
				</view>
				<view class="bigShots-1-2-i">
					点赞量 <u-icon size="12" name="arrow-down-fill" color="#646464"></u-icon>
				</view>
			</view>
		</view>
		<view class="bigShots-2">
			<view class="bigShots-2-i" @click="toBigShotsDetails">
				<view class="bigShots-2-i-l">
					<image class="bigShots-2-i-l-i" src="@/static/images/ewm.png"></image>
				</view>
				<view class="bigShots-2-i-r">
					<view class="bigShots-2-i-r-1">5000题申论100题国考省考公务员考试</view>
					<view class="bigShots-2-i-r-2">
						<view class="bigShots-2-i-r-2-i">
							<image class="bigShots-2-i-r-2-i-l" src="@/static/imagesV2/icon44.png" mode="widthFix"></image>
							<text class="bigShots-2-i-r-2-i-t">0</text>
						</view>
						<view class="bigShots-2-i-r-2-i">
							<image class="bigShots-2-i-r-2-i-l" src="@/static/imagesV2/icon45.png" mode="widthFix"></image>
							<text class="bigShots-2-i-r-2-i-t">0</text>
						</view>
					</view>
				</view>
			</view>
			<u-empty
				mode="data"
				text="暂无数据"
				icon="/static/imagesV2/icon24.png"
			>
			</u-empty>
		</view>
	</view>
</template>

<script>
	import { BIGSHOTS } from '@/emit/index.js'
	export default {
		data() {
			return {
				BIGSHOTS,
				type: BIGSHOTS.VIDEOLESSONS
			}
		},
		methods: {
			tabsClick(type) {
				this.type = type
			},
			toBigShotsDetails() {
				uni.navigateTo({
					url: '/pagesStu/bigShotsDetails/bigShotsDetails'
				})
				// uni.navigateTo({
				// 	url: '/pagesStu/audioFrequency/audioFrequency'
				// })
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bigShots{
		.bigShots-1{
			width: 100%;
			position: fixed;
			top: 0;
			background-color: #f3f4f6;
			.bigShots-1-1{
				border-top:1rpx solid #f3f4f6;
				display: flex;
				background: #fff;
				justify-content: space-around;
				.bigShots-1-1-i{
					font-size: 28rpx;
					color: #323232;
					height: 88rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
				.bigShots-1-1-is{
					color: #2D81FF;
					position: relative;
					&:before{
						content: '';
						position: absolute;
						bottom: 0;
						left: 50%;
						background-image: url(@/static/imagesV2/icon23.png);
						background-size: 100% 100%;
						transform: translateX(-50%);
						height: 24rpx;
						width: 24rpx;
					}
				}
			}
			.bigShots-1-2{
				color: #646464;
				font-size: 26rpx;
				display: flex;
				height: 85rpx;
				align-items: center;
				padding: 0 25rpx;
				.bigShots-1-2-i{
					padding-right: 25rpx;
					display: flex;
					align-items: center;
				}
			}
		}
		.bigShots-2{
			padding: 0 25rpx;
			padding-top: calc(88rpx + 85rpx);
			padding-bottom: calc(env(safe-area-inset-bottom) + 30rpx);
			.bigShots-2-i{
				display: flex;
				background: #FFFFFF;
				border-radius: 20rpx;
				padding: 30rpx;
				margin-bottom: 20rpx;
				.bigShots-2-i-l{
					.bigShots-2-i-l-i{
						height: 200rpx;
						width: 150rpx;
						border-radius: 10rpx;
					}
				}
				.bigShots-2-i-r{
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					margin-left: 28rpx;
					.bigShots-2-i-r-1{
						font-size: 30rpx;
						line-height: 45rpx;
					}
					.bigShots-2-i-r-2{
						padding-bottom: 16rpx;
						display: flex;
						.bigShots-2-i-r-2-i{
							display: flex;
							align-items: center;
							line-height: 1.4;
							position: relative;
							margin-right: 18rpx;
							padding-right: 18rpx;
							&:before{
								content: '';
								height: 18rpx;
								border-left: 1rpx solid #E6E6E6;
								position: absolute;
								right: 0;
								top: 50%;
								transform: translateY(-50%);
							}
							&:last-child{
								padding-right: 0;
								margin-right: 0;
								&:before{
									border-left: none;
								}
							}
							.bigShots-2-i-r-2-i-l{
								height: 26rpx;
								width: 26rpx;
							}
							.bigShots-2-i-r-2-i-t{
								font-size: 24rpx;
								margin-left: 8rpx;
								color: #979797;
							}
						}
					}
				}
			}
		}
	}
</style>