myworks.wxml 3.9 KB

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