<template>
<view >
		<view class="head">
			<u-row >
				<u-col span="3" offset="1">
					<navigator url="/pages2/wd/avatar" hover-class="none">
						<image src="/static/avatar.png" class="avatar"></image>
					</navigator>
				</u-col>
				<u-col span="6">
					<view style="display: flex;">
						<navigator class="name" url="/pages2/wd/avatar" hover-class="none">
							李宏杰
						</navigator>
						<navigator class="tag" url="/pages2/wd/level" hover-class="none">
							天资过人
						</navigator>
					</view>
					<navigator url="/pages2/wd/level" hover-class="none" style="position: relative;margin-top: 20rpx;">
						<view class="progress_text">0/1000</view>
						<u-line-progress height="8" active-color="#2F4379" :percent="70" :show-percent="false"></u-line-progress>
					</navigator>
				</u-col>
				<view class="qiandao">
					签到
				</view>
			</u-row>
			<view style="margin-top: 20rpx;">
				<u-row >
					<u-col span="4"  text-align="center">
						<navigator url="/pages2/wd/collect" hover-class="none">
							<view class="head_t1">
								收藏
							</view>
							<view class="head_t2">
								100
							</view>
						</navigator>
					</u-col>
					<u-col span="4" offset="4" text-align="center">
						<navigator url="/pages2/wd/ranking" hover-class="none">
						<view class="head_t1">
							学习排名
						</view>
						<view  class="head_t2">
							NO.3
						</view>
						</navigator>
					</u-col>
				</u-row>
			</view>
		</view>
		<view style="padding: 30rpx;">
			<!-- 学习记录-->
			<view class="record">
				<view class="r_t1">
					最近学习记录
					<u-icon name="arrow-right"  size="28"></u-icon>
				</view>
				<scroll-view class="r_sliper" scroll-x="true" >
					<view v-for="(item,index) in list" :key="index" style="margin-right: 20rpx;display:inline-block">
						<image src="/static/banner.png" class="r_image"></image>
						<view class="r_t2">
							二级建造师市政公用工程
						</view>
					</view>
				</scroll-view>
			</view>
			<!-- 模块-->
			<view class="module">
				<u-row >
					<u-col span="3" text-align="center">
						<navigator url="/pages2/study/index" hover-class="none">
							<image src="/static/tool_1.png" class="tool_img"></image><view class="tool_t">我的学习</view>
						</navigator>
					</u-col>
					<u-col span="3" text-align="center">
						<navigator url="/pages2/wd/menu" hover-class="none">
							<image src="/static/tool_2.png" class="tool_img"></image><view class="tool_t">基本资料</view>
						</navigator>
					</u-col>
					<u-col span="3" text-align="center">
						<navigator url="/pages2/wd/help" hover-class="none">
							<image src="/static/tool_3.png" class="tool_img"></image><view class="tool_t">助学活动</view>
						</navigator>
					</u-col>
					<u-col span="3" text-align="center">
						<navigator url="/pages2/wd/coupon" hover-class="none">
							<image src="/static/tool_7.png" class="tool_img"></image><view class="tool_t">优惠券</view>
						</navigator>
					</u-col>
				</u-row>
				<view style="margin-top: 30rpx;">
					<u-row >
						<u-col span="3" text-align="center">
							<navigator url="/pages2/wd/enroll" hover-class="none">
								<image src="/static/tool_5.png" class="tool_img"></image><view class="tool_t">考试报名</view>
							</navigator>
						</u-col>
						<u-col span="3" text-align="center">
							<view @click="jumpPopup">
								<image src="/static/tool_4.png" class="tool_img"></image><view class="tool_t">成长地图</view>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
			<view class="module2">
				<u-row >
					<u-col span="3" text-align="center">
						<view @click="jumpPopup">
							<image src="/static/tool_6.png" class="tool_img"></image><view class="tool_t">异常反馈</view>
						</view>
					</u-col>
				</u-row>
			</view>
		</view>
		<u-modal v-model="show" :content="content"></u-modal>
	</view>
</template>

<script>
	import zzxTabs from "@/components/zzx-tabs/zzx-tabs.vue"
	import {mapState,mapMutations} from 'vuex';
	export default {
		components: {
			zzxTabs
		},
		data() {
			return {
				list:[23,24,25,26,27,28,29],
				content:'此功能暂未开放',
				show:false
			}
		},
		onLoad() {

		},
		methods: {
			jumpPopup(){
				this.show = true
			},
			
		},
		computed: {...mapState(['avatarUrl', 'login', 'userName'])}
	}
</script>
<style>
	::-webkit-scrollbar{
		width: 0;
		height: 0;
		color: transparent;
	}
</style>
<style scoped>
	.module2{
		width: 100%;
		height: 130rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
		border-radius: 32rpx;
		margin-top: 30rpx;
		padding: 30rpx 0;
	}
	.tool_t{
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #2F4379;
	}
	.tool_img{
		width: 42rpx;
		height: 42rpx;
	}
	.module{
		width: 100%;
		height: 260rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
		border-radius: 32rpx;
		margin-top: 30rpx;
		padding: 30rpx 0;
	}
	
	.r_sliper{
		padding: 0 20rpx;
	}
	.r_t2{
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #2F4379;
	}
	.r_image{
		width: 278rpx;
		height: 134rpx;
	}
	.r_t1{
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #2F4379;
		padding: 20rpx;
	}
	.record{
		width: 100%;
		height: 260rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
		border-radius: 32rpx;
		white-space:nowrap;
		overflow: hidden;
	}
	page {
		background: #FDFDFD;
	}
	.head_t2{
		font-size: 32rpx;
		font-family: MF YiHei (Noncommercial);
		font-weight: bold;
		color: #2F4379;
	}
	.head_t1{
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #2F4379;
		opacity: 0.6;
	}
	.qiandao{
		float: right;
		width: 100rpx;
		height: 40rpx;
		background: #2F4379;
		border-radius: 20rpx 0rpx 0rpx 20rpx;
		color: #FFFFFF;
		text-align: center;
	}
	.progress_text{
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 800;
		color: #2F4379;
		position: relative;
		top: 15rpx;
	}
	.tag{
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #2F4379;
		margin-left: 30rpx;
		border: 1px solid #2F4379;
		border-radius: 20px;
		padding: 6rpx;
	}
	.name{
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 800;
		color: #2F4379;
	}
	.wrap {
		padding: 24rpx;
	}
	.head{
		padding-top: 30rpx;
		background-color: #FFFFFF;
		padding-bottom: 20rpx;
	}
	.avatar{
		width: 140rpx;
		height: 140rpx;
	}
	
	
</style>
