myworks.wxml 3.9 KB

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