

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


<view class='headImg'>
  <button  wx:if="{{!userInfo.token}}"  type="primary"  bindtap="wxLogin" class="tc">
    快捷登入
  </button>

  <view class="headImg-avatar" wx:else>
    <image src="{{userInfo.headImg}}" mode="aspectFill"></image>
  </view>
</view>


<view>
  <i-cell-group i-class="my-group-margin">
    <i-cell title="{{filter.phoneFormat(userInfo.phone)||'---'}}" is-link>
      <i-icon type="mobilephone_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="{{userInfo.nickname ||'---'}}" is-link>
      <i-icon type="mine_fill" slot="icon" size="20" />
    </i-cell>

    <i-cell title="{{filter.cardIdFormat(userInfo.cardId) ||'---'}}" is-link>
      <i-icon type="businesscard_fill" slot="icon" size="20" />
    </i-cell>
  </i-cell-group>
</view>

<view>
  <i-cell-group i-class="my-group-margin">
    <i-cell title="设置" >
      <i-icon type="setup_fill" slot="icon" size="20" />
    </i-cell>
    <i-cell title="反馈" >
      <i-icon type="praise_fill" slot="icon" size="20" />
    </i-cell>
    <i-cell title="关于" is-link url="/pages/dashboard/index">
      <i-icon type="prompt_fill" slot="icon" size="20" />
    </i-cell>
  </i-cell-group>
</view>

<view>
  <i-cell-group i-class="my-group-margin">
    <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" />