myworks.wxml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!-- pages/user/myworks/myworks.wxml -->
  2. <wxs src="../../commonWxs/format.wxs" module="format" />
  3. <view class='user-works'>
  4. <view class='follow-details'>
  5. <view class='follow-info'>
  6. <view class='set-msg'>
  7. <view class='avatar-bg'>
  8. <view class='avatar-box'>
  9. <image class='avatar-image' src='{{ wareCards.user.avatar }}'></image>
  10. </view>
  11. <view class='occupation-title' wx:if="{{wareCards.user.profession}}">
  12. {{ wareCards.user.profession }}
  13. </view>
  14. </view>
  15. <view class='avatar-msg'>
  16. <view class='avatar-nickname'>
  17. <text>{{ wareCards.user.wechatName }}</text>
  18. <view class='flowers-box' wx:if='{{ wareCards.user.gender === 2 }}'>
  19. <image src='../../../static/image/flowers.png'></image>
  20. </view>
  21. <view class='flowers-box' wx:elif='{{ wareCards.user.gender === 1 }}'>
  22. <image src='../../../static/image/boy.png'></image>
  23. </view>
  24. </view>
  25. <view class='avatar-birthday'>{{ wareCards.user.birthday }}</view>
  26. <view class='avatar-address'>{{ wareCards.user.schoolName }}</view>
  27. </view>
  28. </view>
  29. <view class="follow" wx:if="{{!isMyself}}" bindtap="follow">
  30. <image src="{{isFans? '../../../static/image/fully_heart.png' : '../../../static/image/empty_heart.png'}}" />
  31. <text class="followBtn" >{{isFans ? '已' : ''}}关注</text>
  32. </view>
  33. </view>
  34. <view class='mine-category'>
  35. <view class='play-count'>
  36. <view class='color' style="padding-right:38rpx;">{{ wareCards.playAmount || 0 }}</view>
  37. <view class='border-right'>
  38. <view class='play-img'>
  39. <image src='../../../static/image/play.png'></image>
  40. </view>
  41. <text>播放量</text>
  42. </view>
  43. </view>
  44. <view class='follow-count'>
  45. <view class='color' style="padding-right:48rpx;">{{ wareCards.fansAmount || 0 }}</view>
  46. <view class='border-right'>
  47. <view class='red-heart'>
  48. <image src='../../../static/image/fully_heart.png'></image>
  49. </view>
  50. <text>关注</text>
  51. </view>
  52. </view>
  53. <view class='point-count'>
  54. <view class='color' style="padding-right:60rpx;">{{ wareCards.likeAmount || 0 }}</view>
  55. <view class='border-right'>
  56. <view class='point-img'>
  57. <image src='../../../static/image/point.png'></image>
  58. </view>
  59. <text>赞</text>
  60. </view>
  61. </view>
  62. <view class='flower-count'>
  63. <view class='color'>{{ wareCards.pointAmount || 0 }}</view>
  64. <view class='border-right'>
  65. <view class='play-img'>
  66. <image src='../../../static/image/flower.png'></image>
  67. </view>
  68. <text>红花</text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class='works-article' wx:for="{{ worksList }}" wx:key="{{ index }}">
  74. <view class='user-info'>
  75. <view class='user-img'>
  76. <image src='{{ item.user.avatar }}'></image>
  77. </view>
  78. <view class='user-details'>
  79. <view class='user-name'>
  80. <view class='left-detail'>{{ item.user.wechatName }}</view>
  81. <view class='right-detail'>
  82. <text class='plays-count'>{{ item.userRead.playAmount || 0 }}</text>
  83. <view class='plays-img'>
  84. <image src='../../../static/image/hotPlays.png'></image>
  85. </view>
  86. </view>
  87. </view>
  88. <view class='user-name'>
  89. <view class='left-detail'>{{ format.formatDate(item.userRead.gmtCreated) || 0 }}</view>
  90. <view class='right-detail'>
  91. <text class='likes-count'>{{ item.userRead.likeAmount || 0 }}</text>
  92. <view class='likes-img'>
  93. <image src='../../../static/image/like.png'></image>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <view class='video-preview' bindtap='toMyWorks' data-id='{{ item.userRead.id }}' data-title='{{ item.userRead.title }}'>
  100. <image src='{{ item.userRead.iconImg }}'></image>
  101. </view>
  102. <view class='content-title'>
  103. <view>{{ item.userRead.title }}</view>
  104. <view class='content-grage'>{{ item.userRead.summary }}</view>
  105. </view>
  106. </view>
  107. </view>