<template name="components">
	<view>
		<scroll-view scroll-y class="page">
		  <view class="UCenter-bg">
		    <image src="/static/headPhoto.jpg" class="png1" mode="widthFix"></image>
		    <view class="text-xl">张家辉
		    </view>
		    <view class="margin-top-sm">
		      <text>科室主任</text>
		    </view>
		    <image src="https://raw.githubusercontent.com/weilanwl/ColorUI/master/demo/images/wave.gif" mode="scaleToFill" class="gif-wave"></image>
		  </view>
		  <view class="padding flex text-center text-grey bg-white shadow-warp">
		    <view class="flex flex-sub flex-direction solid-right">
		      <view class="text-xxl text-orange">{{visitTotal}}</view>
		      <view class="margin-top-sm">今日重量</view>
		    </view>
		    <view class="flex flex-sub flex-direction solid-right">
		      <view class="text-xxl text-blue">{{starCount}}</view>
		      <view class="margin-top-sm">今日数量</view>
		    </view>
		    <view class="flex flex-sub flex-direction">
		      <view class="text-xxl text-green">{{forksCount}}</view>
		      <view class="margin-top-sm">今日异常</view>
		    </view>
		  </view>
		  <view class="cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius">
		    <view class="cu-item arrow">
		      <navigator class="content" url="/pages/main/personalInformation" hover-class="none">
		        <text class="cuIcon-github text-grey"></text>
		        <text class="text-grey">个人信息维护</text>
		      </navigator>
		    </view>
		    <view class="cu-item arrow">
		      <navigator class="content" url="/pages/main/handCard" hover-class="none">
		        <text class="cuIcon-formfill text-green"></text>
		        <text class="text-grey">交接卡绑定</text>
		      </navigator>
		    </view>
		    <view class="cu-item arrow">
		      <navigator class="content" url="/pages/main/handList" hover-class="none">
		        <text class="cuIcon-appreciatefill text-red"></text>
		        <text class="text-grey">交接列表</text>
		      </navigator>
		    </view>
		    <view class="cu-item arrow">
		      <navigator class="content" url="/pages/main/about" hover-class="none">
		        <text class="cuIcon-writefill text-cyan"></text>
		        <text class="text-grey">关于我们</text>
		      </navigator>
		    </view>
		  </view>
		  <view class="box">
		  	<view class="box">
		  		<view class="cu-bar tabbar bg-white">
		  			<view class="action">
		  				<view class="cuIcon-cu-image">
		  					<image src="/static/tabbar/basics_cur.png"></image>
		  				</view>
		  				<view class="text-green">概览</view>
		  			</view>
		  			<view class="action">
		  				<view class="cuIcon-cu-image">
		  					<image src="/static/tabbar/component.png"></image>
		  				</view>
		  				<view class="text-gray">追溯</view>
		  			</view>
		  			<view class="action">
		  				<view class="cuIcon-cu-image">
		  					<image src="/static/main/about.png"></image>
		  					<view class="cu-tag badge"></view>
		  				</view>
		  				<view class="text-gray">我的</view>
		  			</view>
		  		</view>
		  	</view>
		  </view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				starCount: 0,
				forksCount: 0,
				visitTotal: 0
			}
		}
	}
</script>

<style>
	.UCenter-bg {
	  background-image: url(https://image.weilanwl.com/color2.0/index.jpg);
	  background-size: cover;
	  height: 550rpx;
	  display: flex;
	  justify-content: center;
	  padding-top: 40rpx;
	  overflow: hidden;
	  position: relative;
	  flex-direction: column;
	  align-items: center;
	  color: #fff;
	  font-weight: 300;
	  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
	}
	
	.UCenter-bg text {
	  opacity: 0.8;
	}
	
	.UCenter-bg image {
	  width: 200rpx;
	  height: 200rpx;
	}
	
	.UCenter-bg .gif-wave{
	  position: absolute;
	  width: 100%;
	  bottom: 0;
	  left: 0;
	  z-index: 99;
	  mix-blend-mode: screen;  
	  height: 100rpx;   
	}
	
	map,.mapBox{
	  left: 0;
	  z-index: 99;
	  mix-blend-mode: screen;  
	  height: 100rpx;   
	}
	
	map,.mapBox{
	  width: 750rpx;
	  height: 300rpx;
	}
	
	.png1 {
		border-radius: 50%;
	}
	
	.box {
		margin: 20upx 0;
	}
</style>
