<template>
	<view class="mine">
		<view class="mine-bg"></view>
		<!--  用户信息   -->
		<u-card class="mine-card-1" :show-head="false">
			<view slot="body" class="mine-card-1-content">
				<view class="user-info">
					<view class="user-info-left">
						<view class="user-info-left-avatar" @click="jumpPage('/pages/personalModify/personalModify')">
							<u-avatar :src="userInfo.avatar" mode="square" size="111"></u-avatar>
							<view class="name">{{ userInfo.nickName }}</view>
						</view>
						<view class="user-info-left-attribute">
							<view class="veterans">
								<view>退役军人</view>
								<view class="link">未认证 ></view>
							</view>
							<view class="train">
								<view>适应性培训</view>
								<view class="link">未完成 ></view>
							</view>
						</view>
					</view>
					<view class="user-info-right">
						<view class="integral">
							<view>{{ userInfo.integral }}</view>
							<view>进步积分</view>
							<view>查看详情</view>
						</view>
					</view>
				</view>
				<u-divider :half-width="300" :height="50" :use-slot="false"></u-divider>
				<view class="user-integral">
					<view class="user-integral-item">
						<view>
							<text>8 </text>个
						</view>
						<view>技能培训</view>
					</view>
					<view class="user-integral-item">
						<view>
							<text>68.5 </text>小时
						</view>
						<view>学习时长</view>
					</view>
					<view class="user-integral-item">
						<view>
							<text>10 </text>次
						</view>
						<view>获得面试</view>
					</view>
				</view>
			</view>
		</u-card>

		<!-- 宫格 -->
		<u-card :show-head="false" class="grid-menu">
			<view slot="body">
				<u-grid :col="3" :border="false">
					<u-grid-item @click="jumpPage('/pages/myResume/myResume')">
						<view class="grid-menu-icon icon-resume-icon"></view>
						<view class="grid-text">我的简历</view>
					</u-grid-item>
					<u-grid-item @click="jumpPage('/pages/myDelivery/myDelivery')">
						<view class="grid-menu-icon icon-delivery-icon"></view>
						<view class="grid-text">我的投递</view>
					</u-grid-item>
					<u-grid-item>
						<view class="grid-menu-icon icon-interview-icon"></view>
						<view class="grid-text">我的面试</view>
					</u-grid-item>
				</u-grid>
				<u-divider :half-width="300" :height="50" :use-slot="false"></u-divider>
				<u-grid :col="3" :border="false">
					<u-grid-item>
						<view class="grid-menu-icon icon-train-icon"></view>
						<view class="grid-text">我的技能培训</view>
					</u-grid-item>
					<u-grid-item>
						<view class="grid-menu-icon icon-evaluate-icon"></view>
						<view class="grid-text">我的评价</view>
					</u-grid-item>
					<u-grid-item>
						<view class="grid-menu-icon icon-setting-icon"></view>
						<view class="grid-text">设置</view>
					</u-grid-item>
				</u-grid>
			</view>
		</u-card>
	</view>
</template>

<script>
	export default {
		name: 'Mine',
		data() {
			return {
				userInfo: {
					avatar: require('@/static/img/avatar.jpg'),
					nickName: '李明',
					integral: '688'
				}
			}
		},
		methods: {
			/**
			 * 跳转到指定页面
			 */
			jumpPage(url) {
				this.$u.route(url)
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import './mine.scss';
</style>
