user.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!--为使用者-我的页面-->
  2. <view class="card">
  3. <cover-image class="avatar" src="{{hasUserInfo ? userInfo.avatar : '/images/user/user.png'}}" bindtap="previewAvatar">
  4. </cover-image>
  5. <view wx:if="{{hasUserInfo}}" class="nickname primary-text">{{userInfo.name}}</view>
  6. <view wx:else class="nickname"><button class="block-background-color" size="mini"
  7. bindtap="getUserProfile">微信登录</button></view>
  8. <view class="location secondary-text">{{publisherId.length == 0 ? '尚未加入任何社团组织' : publisherName}}</view>
  9. </view>
  10. <view class="mid" wx:if="{{hasUserInfo}}">
  11. <view class="btn" hover-class="btn-hover" bindtap="myFavor">
  12. <image class="btn-icon" mode="aspectFit" src="/images/user/like.png"></image>
  13. <view class="btn-text primary-text">我的收藏</view>
  14. </view>
  15. <view class="btn" hover-class="btn-hover" bindtap="myFollow">
  16. <image class="btn-icon" mode="aspectFit" src="/images/user/follow.png"></image>
  17. <view class="btn-text primary-text">我的关注</view>
  18. </view>
  19. <view class="btn" hover-class="btn-hover" bindtap="myQuestion">
  20. <image class="btn-icon" mode="aspectFit" src="/images/user/question.png"></image>
  21. <view class="btn-text primary-text">我的提问</view>
  22. </view>
  23. <view class="bottom">
  24. <view class="btn" bindtap="setting">
  25. <image class="btn-icon" mode="aspectFit" src="/images/user/setting.png"></image>
  26. <view>设置</view>
  27. </view>
  28. <view class="btn" bindtap="aboutUs">
  29. <image class="btn-icon" mode="aspectFit" src="/images/user/about.png"></image>
  30. <view>关于我们</view>
  31. </view>
  32. <view class="btn" bindtap="opinion">
  33. <image class="btn-icon" mode="aspectFit" src="/images/user/feedback.png"></image>
  34. <view>意见反馈</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view wx:if="{{hasUserInfo}}">
  39. <view wx:if="{{publisherId.length == 0}}" class="publisher primary-background-color" hover-class="btn-hover"
  40. bindtap="publisherLogin">
  41. <text class="white-text-color">社团\n组织\n入驻</text>
  42. </view>
  43. <view wx:else class="publisher primary-background-color" hover-class="btn-hover" bindtap="publisherPage">
  44. <text class="white-text-color">社团\n组织\n管理</text>
  45. </view>
  46. </view>