<view class="page">
  <view class="page__bd">
    <view class="weui-cells weui-cells_after-title" style="margin-top:0px">
      <view class="weui-panel__bd">
        <view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active" bindtap="register">
          <view class="weui-media-box__hd weui-media-box__hd_in-appmsg" style="border-radius:6px;overflow:hidden">
            <open-data type="userAvatarUrl"></open-data>
          </view>
          <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
            <view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">
              <span>{{userinfo.role_name}}:</span>
              <span style="font-weight:bold;">{{userinfo.username}}</span>
            </view>
            <view class="weui-media-box__title" wx:else>账号:
              <span style="color:red">未登陆</span>
            </view>
            <view class="weui-media-box__desc">昵称:
              <open-data type="userNickName"></open-data>
            </view>
            <view class="weui-media-box__desc">单位:
              <span wx:if="{{userinfo && userinfo.company_name}}">{{ userinfo.company_name }}</span>
            </view>
            <view class="weui-media-box__desc">如需解绑账号请联系课程顾问
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="weui-cells__title">统计分析</view>
    <view class="weui-cells weui-cells_after-title">
      <navigator url="/pages/workscope/index" class="weui-cell weui-cell_access">
        <view class="weui-cell__hd">
          <image src="/images/class.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;">
          </image>
        </view>
        <view class="weui-cell__bd">工作类别</view>
        <view class="weui-cell__ft" style="font-weight:bold;color:darkblue" wx:if="{{userinfo.workscope_name}}">
          {{userinfo.workscope_name}}</view>
        <view class="weui-cell__ft" style="font-weight:bold;color:darkblue" wx:else>无</view>
      </navigator>
      <!-- <l-list title="模考次数" tag-content="{{total}}" tag-position="right"/> -->
      <view class="weui-cell">
        <view class="weui-cell__hd">
          <image src="/images/count.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;">
          </image>
        </view>
        <view class="weui-cell__bd">考试次数</view>
        <view class="weui-cell__ft" style="font-weight:bold;color:darkblue">{{total}}</view>
      </view>
      <view class="weui-cell">
        <view class="weui-cell__hd">
          <image src="/images/rate.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;">
          </image>
        </view>
        <view class="weui-cell__bd">通过率</view>
        <view class="weui-cell__ft" style="font-weight:bold;color:darkblue">{{pass_rate}}%</view>
      </view>
      <view class="weui-cell">
        <view class="weui-cell__hd">
          <image src="/images/avg.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;">
          </image>
        </view>
        <view class="weui-cell__bd">平均分</view>
        <view class="weui-cell__ft" style="font-weight:bold;color:darkblue" wx:if="{{avg_score}}">{{avg_score}}</view>
      </view>
      
      <navigator url="/pages/qtest/form" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
			<view class="weui-cell__hd">
				<image src="/images/qtest.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
			</view>
			<view class="weui-cell__bd">个人防护用品检测(铅当量)</view>
      <view class="weui-cell__ft weui-cell__ft_in-access" style="color:red"></view>
		</navigator>
    <navigator url="/pages/quota/quota" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
			<view class="weui-cell__hd">
				<image src="/images/quota.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
			</view>
			<view class="weui-cell__bd">考核名额监控</view>
			<view class="weui-cell__ft weui-cell__ft_in-access" style="color:red">
				<!-- <span wx:if="{{to_read}}">{{to_read}}条未读</span> -->
			</view>
		</navigator>
    </view>
    <view class="weui-cells__title">管理员操作台</view>
    <view class="weui-cells weui-cells_after-title">
      <navigator url="/pages/admin/login" class="weui-cell weui-cell_access">
        <view class="weui-cell__bd">管理员入口</view>
          <view class="weui-cell__ft weui-cell__ft_in-access" style="color:red"></view>
      </navigator>
    </view>
    <!-- <view class="weui-footer weui-footer_fixed-bottom">
      
      <view class="weui-footer__text">更多服务请联系课程顾问</view>
    </view> -->


  </view>
</view>