<template>
	<view>
		<!-- 头部 -->
		<view class="cu-card flex bg-white">
			<view class="flex flex-sub align-center padding-xl">
				<view class="round xl cu-avatar portrait">
					<image class="xl cu-avatar" :src="userInfo.avatarUrl"></image>
				</view>
				<view class="flex-sub padding-left">
					<view class="text-xl">{{ userInfo.nickName }}</view>
					<view class="text-df padding-top-xs">{{ userInfo.classes }}</view>
				</view>
				<view :style="{'color':userInfo.healthyCodeColor}" class="iconfont icon-qrcode healthy-coad"></view>
			</view>
		</view>
		<!-- 列表 -->
		<view class="bg-white margin-top">
			<view class="cu-list menu margin-lr">
			  <view class="cu-item" hover-class="cc-active" @tap="openPage('/pages/basic-info/basic-info')">
				<text class="text-xl">个人信息</text>
				<view class="iconfont icon-right more"></view>
			  </view>
			  <view class="cu-item" hover-class="cc-active">
				<text class="text-xl">我的健康打卡</text>
				<view class="iconfont icon-right more"></view>
			  </view>
			  <view class="cu-item" hover-class="cc-active">
				<text class="text-xl">我的行程</text>
				<view class="iconfont icon-right more"></view>
			  </view>
			  <view class="cu-item" hover-class="cc-active" @tap="openPage('/pages/my-signs/my-signs')">
				<text class="text-xl">我的校园打卡</text>
				<view class="iconfont icon-right more"></view>
			  </view>
			</view>
		</view>
	</view>

</template>

<script>
export default {
  name: 'Mine',
  data() {
    return {
      userInfo: {
        avatarUrl: '../../../static/head-portrait.jpg',
        nickName: '丁菲菲',
        classes: '计算机19级软工二班',
        healthyCodeColor: '#11A20D',
      },
    };
  },
};
</script>

<style lang="scss" scoped>
.portrait {
  overflow: hidden;
}
.healthy-coad {
  font-size: 40px;
}
.more {
  font-size: 18px;
  color: $grey;
}
</style>
