index.axml 862 B

1234567891011121314151617181920212223242526272829
  1. <view class="mine">
  2. <view class="mine-top">
  3. <view class="top-area"></view>
  4. </view>
  5. <view class="mine-user">
  6. <view class="mine-user-msg">
  7. <view>
  8. <view a:if="{{ !userInfo}}">
  9. <image class="mine-head" mode="scaleToFill" src="../../static/mine/avatar.png" />
  10. </view>
  11. <image
  12. a:if="{{userInfo}}"
  13. class="mine-head"
  14. src="../../static/mine/avatar_cur.png"
  15. mode="aspectFill"
  16. onTap="preview"
  17. data-src="{{userInfo.avatar}}"
  18. />
  19. <text class="mine-name">
  20. {{userInfo?userInfo.username:'请先登录'}}
  21. </text>
  22. </view>
  23. </view>
  24. <view class="mine-btn {{userInfo?'mine-bgc':''}}">
  25. <button onTap="{{userInfo?'loginOut':'goLogin'}}">
  26. {{userInfo?'退出登录':'登录'}}
  27. </button>
  28. </view>
  29. </view>