user.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 wx:if="{{hasUserInfo}}">
  9. <view wx:if="{{pubInfo.length === 0}}" class="pub-name secondary-text">尚未加入任何社团组织</view>
  10. <view wx:else class="pub-name secondary-text">
  11. <view wx:for="{{pubInfo}}" wx:for-item="item" wx:key="pub_id">{{item.publisher.name}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="mid" wx:if="{{hasUserInfo}}">
  16. <view class="btn" hover-class="btn-hover" bindtap="myFavor">
  17. <image class="btn-icon" mode="aspectFit" src="/images/user/like.png"></image>
  18. <view class="btn-text primary-text">我的收藏</view>
  19. </view>
  20. <view class="btn" hover-class="btn-hover" bindtap="myFollow">
  21. <image class="btn-icon" mode="aspectFit" src="/images/user/follow.png"></image>
  22. <view class="btn-text primary-text">我的关注</view>
  23. </view>
  24. <view class="btn" hover-class="btn-hover" bindtap="myQuestion">
  25. <image class="btn-icon" mode="aspectFit" src="/images/user/question.png"></image>
  26. <view class="btn-text primary-text">我的提问</view>
  27. </view>
  28. <view class="bottom">
  29. <view class="btn" bindtap="setting">
  30. <image class="btn-icon" mode="aspectFit" src="/images/user/setting.png"></image>
  31. <view>设置</view>
  32. </view>
  33. <view class="btn" bindtap="aboutUs">
  34. <image class="btn-icon" mode="aspectFit" src="/images/user/about.png"></image>
  35. <view>关于我们</view>
  36. </view>
  37. <view class="btn" bindtap="opinion">
  38. <image class="btn-icon" mode="aspectFit" src="/images/user/feedback.png"></image>
  39. <view>意见反馈</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view wx:if="{{hasUserInfo}}">
  44. <view wx:if="{{pubInfo.length === 0}}" class="publisher primary-background-color" hover-class="btn-hover"
  45. bindtap="publisherLogin">
  46. <text class="white-text-color">社团\n组织\n入驻</text>
  47. </view>
  48. <view wx:else class="publisher primary-background-color" hover-class="btn-hover" bindtap="publisherPage">
  49. <text class="white-text-color">社团\n组织\n管理</text>
  50. </view>
  51. </view>