myworks.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. <image class='play-img' src='../../../static/image/play.png'></image>
  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. <image class='follow-img' src='../../../static/image/follow.png'></image>
  41. <text>关注</text>
  42. </view>
  43. </view>
  44. <view class='point-count'>
  45. <view class='color'>{{ wareCards.likeAmount || 0 }}</view>
  46. <view class='border-right'>
  47. <image class='like-img' src='../../../static/image/point.png'></image>
  48. <text>赞</text>
  49. </view>
  50. </view>
  51. <view class='flower-count'>
  52. <view class='color'>{{ wareCards.pointAmount || 0 }}</view>
  53. <view class='border-right'>
  54. <image class='flower-img' src='../../../static/image/flower.png'></image>
  55. <text>红花</text>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class='works-article' wx:for="{{ worksList }}" wx:key="{{ index }}">
  61. <view class='user-info'>
  62. <view class='user-img'>
  63. <image src='{{ item.user.avatar }}'></image>
  64. </view>
  65. <view class='user-details'>
  66. <view class='user-name'>
  67. <view class='left-detail'>{{ item.user.wechatName }}</view>
  68. <view class='right-detail'>
  69. <text class='plays-count'>{{ item.userRead.playAmount || 0 }}</text>
  70. <view class='plays-img'>
  71. <image src='../../../static/image/hotPlays.png'></image>
  72. </view>
  73. </view>
  74. </view>
  75. <view class='user-name'>
  76. <view class='left-detail'>{{ format.formatDate(item.userRead.gmtCreated) || 0 }}</view>
  77. <view class='right-detail'>
  78. <text class='likes-count'>{{ item.userRead.likeAmount || 0 }}</text>
  79. <view class='likes-img'>
  80. <image src='../../../static/image/like.png'></image>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class='video-preview' bindtap='toMyWorks' data-id='{{ item.userRead.id }}' data-title='{{ item.userRead.title }}'>
  87. <image src='{{ item.userRead.iconImg }}'></image>
  88. </view>
  89. <view class='content-title'>
  90. <view>{{ item.userRead.title }}</view>
  91. <view class='content-grage'>{{ item.userRead.summary }}</view>
  92. </view>
  93. </view>
  94. </view>