index.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
  2. <view class='userinfo'>
  3. <view class='userinfo-avatar'>
  4. <open-data type="userAvatarUrl"></open-data>
  5. </view>
  6. </view>
  7. <view>
  8. <i-cell-group i-class="my-group-margin">
  9. <i-cell is-link>
  10. <i-icon type="mobilephone_fill" slot="icon" size="20" />
  11. <button wx:if="{{userInfo.phone}}" class="plain tl">
  12. {{filter.phoneFormat(userInfo.phone)}}
  13. </button>
  14. <button wx:else open-type="getPhoneNumber" class="plain tl" bindgetphonenumber="getPhoneNumber">
  15. 绑定手机
  16. </button>
  17. </i-cell>
  18. <i-cell is-link>
  19. <i-icon type="editor" slot="icon" size="20" />
  20. <button wx:if="{{userInfo.displayName && userInfo.displayName!='微信用户'}}" class="plain tl">
  21. {{userInfo.displayName}}
  22. </button>
  23. <button wx:else open-type="getUserInfo" class="plain tl" bindgetuserinfo="userInfoHandler">
  24. 保存头像
  25. </button>
  26. </i-cell>
  27. </i-cell-group>
  28. </view>
  29. <view>
  30. <i-cell-group i-class="my-group-margin">
  31. <i-cell title="设置" is-link url="/pages/dashboard/index">
  32. <i-icon type="setup_fill" slot="icon" size="20" />
  33. </i-cell>
  34. <i-cell title="反馈" is-link url="/pages/dashboard/index">
  35. <i-icon type="praise_fill" slot="icon" size="20" />
  36. </i-cell>
  37. <i-cell title="关于" is-link url="/pages/dashboard/index">
  38. <i-icon type="prompt_fill" slot="icon" size="20" />
  39. </i-cell>
  40. </i-cell-group>
  41. </view>
  42. <view>
  43. <i-cell-group i-class="my-group-margin">
  44. <i-cell title="清理缓存" bind:click="logOut">
  45. <i-icon type="flashlight_fill" slot="icon" size="20" />
  46. </i-cell>
  47. </i-cell-group>
  48. </view>
  49. <view class="copyright">宁德市建筑工程技术服务行业协会 提供技术支持</view>
  50. <i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
  51. <i-message id="message" />