<view>
  <view class="headerBox" style="position: relative;">
    <view class="flex-box ts flex-center-center" a:if="{{isSubject}}">
      <image mode="scaleToFill" src="../../../image/tz.png"></image>
      <view class="flex-1">你正在使用个人体验版，如需正式使用，请联系管理员</view>
      <button type="primary" onTap="openGly">联系管理员</button>
    </view>
    <view class="top">
      <image class="top-img" mode="widthFix" src="../../../image/xcxbj.png" /></view>
    <view style="height: 0.8rem;background: #fff;"></view>
    <view class="header flex-box-ce" style="top:{{isSubject? '180rpx':'50rpx'}}">
      <view style="width:0.9rem;height:0.9rem;margin-right:20rpx;border-radius:100%">
        <!--<open-data
          openType="userName"
          openId="{{userInfo.user_id}}"
          defaultText="默认文本"
          onError="openDataError"
          class="open-data-test"
       /> -->
        <img-box name="{{userInfo.name}}" imgUrl="{{userInfo.img_url}}" height="90rpx" width="90rpx" fSize="28rpx"></img-box>
      </view>
      <view class="flex-1">
        <view style="font-size:0.3rem">{{userInfo.name}}</view>
        <view class="flex-box-ce fontColorX font-flex-word" style="margin-top:10rpx">
          <text a:for="{{userInfo.dept_list}}" a:for-item="e">{{e.name}}
            <text a:if="{{userInfo.dept_list.length - index > 1}}">,</text></text>
        </view>
      </view>
      <view class="sf">{{str}}</view>
    </view>
  </view>
  <view class="main">
    <view style="font-size:0.3rem;padding: 0.24rem 0.32rem;">绩效管理</view>
    <view class="menuList flex-box flex-d-wrap">
      <view a:for="{{menuList}}" class="menu-item flex-box-v" data-url="{{item.url}}" onTap="openUrl">
        <text class="iconfont {{item.icon}} {{item.color}}"></text>
        <view>{{item.name}}</view>
      </view>
    </view>
    <!--<view class="flex_one" catchTap="openWebView" a:if="{{isClose}}" >两分钟了解功道云绩效<text class="iconfont icon-dianji" style="padding-left:10rpx;font-size:28rpx"></text><text class="closes" catchTap="closes">×</text></view> -->
  </view>
  <view class="flex-box-ce que margin-bottom" style="font-size: 0.28rem;">
    <view class="{{tabIndex==1? 'tabs':''}} flex-1" onTap="tabAction" data-index="1">待办事项
      <text class="red" style="padding-left:10rpx">({{dbTolal}})</text></view>
    <view class="{{tabIndex==2? 'tabs':''}} flex-1" onTap="tabAction" data-index="2">未读消息
      <text class="red" style="padding-left:10rpx">({{xxTolal}})</text></view>
    <view class="flex-1"></view>
  </view>
  <view class="list" a:if="{{tabIndex==1}}">
    <view class="item flex-box-ce" a:for="{{dbList}}" a:if="{{dbList.length>0}}" onTap="openDetail" data-item="{{item}}">
      <view class="font-flex-word flex-1">{{item.userInfo.name}}的{{item.remark.package_name}}</view>
      <text class="orange">
        <text a:if="{{item.node_type==9}}">待审批</text>
        <text a:if="{{item.node_type==1}}">目标待制定</text>
        <text a:if="{{item.node_type==2}}">目标待确认</text>
        <text a:if="{{item.node_type==4}}">结果值待录入</text>
        <text a:if="{{item.node_type==5}}">待评分</text>
        <text class="iconfont icon-jiantouyou" style="font-size:20rpx;margin-left:6rpx;position: relative;top:-3rpx"></text>
      </text>
    </view>
    <no-data a:if="{{dbList.length==0}}"></no-data>
    <view class="rankingLists" a:if="{{dbTolal>1}}" onTap="openAll" data-index="1">查看全部待办
      <text class="iconfont icon-jiantouyou" style="font-size:20rpx;margin-left:6rpx;position: relative;top:-3rpx"></text></view>
  </view>
  <view class="list" a:else>
    <view class="item flex-box-ce" a:for="{{xxList}}" onTap="openDetail" data-item="{{item}}">
      <view class="font-flex-word flex-1">{{item.content}}</view>
    </view>
    <view class="rankingLists" onTap="openAll" data-index="2">查看全部消息
      <text class="iconfont icon-jiantouyou" style="font-size:20rpx;margin-left:6rpx;position: relative;top:-3rpx"></text></view>
  </view>
  <!-- 权限勾选 -->
  <view class="windows" a:if="{{isPoint}}">
    <view class="windows-box">
      <view class="windows-title">个人信息权限申请</view>
      <view class="windows-content">
        <view class="logo">
          <image class="top-img" mode="widthFix" src="../../../image/logo.png" /></view>
        <view style="padding:0 28rpx;">功道云绩效申请获取以下权限：</view>
        <view class="fontColorX qxText">获取你的公开信息（呢称，头像等）</view>
      </view>
      <view class="windows-btn flex-box flex-v-ce">
        <view class="flex-1" catchTap="closes2">拒绝</view>
        <button type="default" class="flex-1" catchTap="closes2">允许</button>
      </view>
    </view>
  </view>
  <view class="windows" a:if="{{isshowTc}}" >
    <view class="windows-box" style="position: relative;margin: 0 0.9rem;margin-top: 35%;">
      <view class="kfImg" catchTap="closes3">
        <!-- <icon type="clear"/> -->
        <image mode="widthFix" src="../../../image/close2.png" />
      </view>
      <image class="kfBj"  mode="widthFix" src="../../../image/tc.png" />
      <view class="textNr">
        <view style="color:#fff;padding:0 0.5rem;line-height:50rpx;margin-bottom:3.26rem"> 为了更好地体验软件，请联系客服顾问获取产品相关资料，一对一系统演示和讲解</view>
        <view class="btnBox"><button type="primary" catchTap="openKf">联系客服</button></view>
        <view class="flex-box-ce flex-center-center  ah">
            <label>
              <checkbox onChange="ruleActiveAll" checked="{{isChecked}}" />
              <text style="padding-left:10rpx">不再弹出</text>
            </label>
          </view>
      </view>

    </view>
  </view>
  <view class="windows" a:if="{{isshowTc2}}">
    <view class="windows-box" style="position: relative;margin: 0 0.62rem;margin-top: 35%;">
      <view class="contentBox flex-box flex-center-center" style=" height: 300rpx;">
        <view>请先前往【钉钉电脑端】创建考核表并发起考核</view>
      </view>
      <view class="windows-btn flex-box flex-v-ce">
        <view class="flex-1" catchTap="openDn" style="color: #26A2FF;">前往电脑端设置</view>
        <button type="primary" class="flex-1" catchTap="openKf" style="background-color: #089fff;color: #fff;">联系客服协助</button>
      </view>
    </view>
  </view>
  
</view>