personHome.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!--pages/personHome/personHome.wxml-->
  2. <view class="bg">
  3. <image src="{{info.bg}}" alt=""/>
  4. <image src="/static/img/back2.png" bindtap="back"></image>
  5. </view>
  6. <view class="per-box">
  7. <image src="{{info.headImg}}" mode=""/>
  8. <view hidden="{{info.focus}}" class="per-attent" bindtap="focusFun">关注</view>
  9. <view hidden="{{!info.focus}}" class="per-attentend" bindtap="unfocusFun">已关注</view>
  10. <view wx:if="{{userId==beVisitedUserId}}" class="per-push">发布动态</view>
  11. <view class="per-name">{{info.nickName}}</view>
  12. <view class="data-box">
  13. <view class="per-data">
  14. <text>{{info.fansNum}}</text>
  15. <text>粉丝</text>
  16. </view>
  17. <text class="data-line"></text>
  18. <view class="per-data">
  19. <text>{{info.focusNum}}</text>
  20. <text>关注</text>
  21. </view>
  22. <text class="data-line"></text>
  23. <view class="per-data">
  24. <text>{{info.commAndLike}}</text>
  25. <text>转评赞</text>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="con-head">
  30. <view class="con-item">
  31. <text>动态</text>
  32. <text></text>
  33. </view>
  34. </view>
  35. <import src="../template/template.wxml"/>
  36. <block wx:if="{{contentList.length!=0}}">
  37. <template is="contentList" data="{{contentList}}"/>
  38. </block>
  39. <block wx:if="{{contentList.length==0 && userId!=beVisitedUserId}}">
  40. <view class="nonedata-style">
  41. <image src="/static/img/hemaNo.png"></image>
  42. <text>TA选择了躺平,还未发布任何动态</text>
  43. </view>
  44. </block>
  45. <block wx:if="{{contentList.length==0 && userId==beVisitedUserId}}">
  46. <view class="nonedata-style">
  47. <image src="/static/img/hemaNo.png"></image>
  48. <text>躺平虽香, 但分享能找到同频的好友哦</text>
  49. <view class="push-btn">去发布动态</view>
  50. </view>
  51. </block>
  52. <view hidden="{{handleStatus}}" class="handle-box">
  53. <view catchtap="handleShow" class="handle-bg"></view>
  54. <view class="hadle-view">
  55. <image catchtap="handleShow" src="/static/img/close2.png"></image>
  56. <!-- <view class="handle-item">
  57. <image src="/static/img/nolike.png"></image>
  58. <text>不感兴趣</text>
  59. </view> -->
  60. <view class="handle-item" catchtap="toReport">
  61. <image src="/static/img/jubao.png"></image>
  62. <text>举报</text>
  63. </view>
  64. </view>
  65. </view>