<template>
	<view style="padding: 30rpx;" >
		<view style="padding: 0 50rpx;">
			<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button" activeColor="#2F4379"></uni-segmented-control>       
		</view>
		<view >
		    <view v-show="current === 0">
		        <view class="content" v-for="(item,index) in list" :key="index">
					<view class="c_t1">
						2021年5月1日
					</view>
					<view>
						<u-row >
							<u-col span="5" >
								<view style="padding: 5rpx;">
									<image src="/static/banner.png" class="c_img"></image>
								</view>
							</u-col>
							<u-col span="7" >
								<view style="position: relative;height: 134rpx;padding-left: 10rpx;">
									<view class="c_title">
										二级建造师市政公用工程
									</view>
									<view class="c_log">
										上次看到 2.1 二级建造师章节标题
									</view>
								</view>
							</u-col>
						</u-row>
					</view>
					
				</view>
		    </view>
		    <view v-show="current === 1">
		        选项卡2的内容
		    </view>
		    <view v-show="current === 2">
		        选项卡3的内容
		    </view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				current:0,
				items: [
					'课程', 
					'刷题', 
					'重点考点'
				],
				list:[1,1,1,1,1,1,1,1,1,1,1],
			}
		},
		onLoad(option) {
			
		},
		onShow(){
		},
		methods: {
			onClickItem(e){
				this.current = e.currentIndex
			}
		
		},
		
	}
</script>

<style scope>
	.c_log{
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #2F4379;
		position: absolute;
		bottom: 10rpx;
	}
	.c_title{
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #2F4379;
		padding-top: 10rpx;
	}
	.c_img{
		width: 278rpx;
		height: 134rpx;
	}
	.c_t1{
		font-size: 20rpx;
		color: #2F4379;
		padding: 15rpx;
	}
	.content{
		margin-top: 20rpx;
		width: 100%;
		height: 225rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
		border-radius: 32rpx;
	}
	.segmented-control__text{
		font-size: 24rpx !important;
	}
	.segmented-control{
		height: 56rpx !important;
		background-color: #F8F9FF;
	}
	
page {
		background: #FFFFFF;
	}
</style>
