index.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
  2. <view class='headImg'>
  3. <button wx:if="{{!userInfo.token}}" type="primary" bindtap="wxLogin" class="tc">
  4. 快捷登入
  5. </button>
  6. <view class="headImg-avatar" wx:else>
  7. <image src="{{userInfo.headImg}}" mode="aspectFill"></image>
  8. </view>
  9. </view>
  10. <view>
  11. <i-cell-group i-class="my-group-margin">
  12. <i-cell is-link>
  13. <i-icon type="mobilephone_fill" slot="icon" size="20" />
  14. <button class="plain tl">
  15. {{filter.phoneFormat(userInfo.phone)||"---"}}
  16. </button>
  17. </i-cell>
  18. <i-cell is-link>
  19. <i-icon type="editor" slot="icon" size="20" />
  20. <button class="plain tl">
  21. {{userInfo.nickname ||"---"}}
  22. </button>
  23. </i-cell>
  24. <i-cell is-link>
  25. <i-icon type="editor" slot="icon" size="20" />
  26. <button class="plain tl">
  27. {{filter.cardIdFormat(userInfo.cardId)||"---"}}
  28. </button>
  29. </i-cell>
  30. </i-cell-group>
  31. </view>
  32. <view>
  33. <i-cell-group i-class="my-group-margin">
  34. <i-cell title="设置" >
  35. <i-icon type="setup_fill" slot="icon" size="20" />
  36. </i-cell>
  37. <i-cell title="反馈" >
  38. <i-icon type="praise_fill" slot="icon" size="20" />
  39. </i-cell>
  40. <i-cell title="关于" is-link url="/pages/dashboard/index">
  41. <i-icon type="prompt_fill" slot="icon" size="20" />
  42. </i-cell>
  43. </i-cell-group>
  44. </view>
  45. <view>
  46. <i-cell-group i-class="my-group-margin">
  47. <i-cell title="退出登入" bind:click="logOut">
  48. <i-icon type="flashlight_fill" slot="icon" size="20" />
  49. </i-cell>
  50. </i-cell-group>
  51. </view>
  52. <view class="copyright">宁德市建筑工程技术服务行业协会</view>
  53. <i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
  54. <i-message id="message" />