

<wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>

<view class='userinfo' wx:if="{{userInfo.userId}}">
  <view class='userinfo-avatar'>
    <image src="{{userInfo.headerImg}}" mode="widthFix" style="width:100%"></image>
  </view>
  <view class='userinfo-name'>
    <view> {{userInfo.nickname}}</view>
  </view>
</view>

<view class='userinfo ' wx:else>
  <view class='userinfo-avatar'>
    <image src="/assets/icon/1.jpg" mode="widthFix" style="width:100%"></image>
  </view>
  <view class='userinfo-name'>
    <i-button inline="true"  size="small" type="success" shape="square" bindtap="goLogin" >
      微信登录
    </i-button>
  </view>
</view>

<view>
  <i-cell-group i-class="my-group-margin">

    <i-cell title="历史记录" is-link bindtap="gotoFileList" data-api="getViewArticalList">
      <i-icon type="mine_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="下载记录" is-link bindtap="gotoFileList" data-api="getDownloadArticalList">
      <i-icon type="businesscard_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="收藏记录" is-link bindtap="gotoFileList" data-api="getLikeArticalList">
      <i-icon type="like_fill" slot="icon" size="20" />
    </i-cell>

    
    <i-cell title="下载审批" >
      <i-icon type="task_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="审核审批" is-link bindtap="gotoFileList" data-api="waitConfirmArticalList">
      <i-icon type="barrage_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="发布审批" is-link bindtap="gotoFileList" data-api="waitPublishArticalList">
      <i-icon type="success_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="退出登入" bind:click="logOut">
      <i-icon type="flashlight_fill" slot="icon" size="20" />
    </i-cell>
  </i-cell-group>
</view>

<view class="copyright">三明住建局内业管理系统</view>

<i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
<i-message id="message" />