myworks.wxml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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/purple_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.integralAmount || 0 }}</view>
  64. <view class='border-right'>
  65. <view class='point-img'>
  66. <image src='../../../static/image/flower_small_pink.png'></image>
  67. </view>
  68. <text>红花</text>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="hotWares">
  74. <view wx:for="{{worksList}}" wx:key="{{index}}" class="worksCard" bindtap="toMyWorks" data-readId="{{ item.userRead.id }}" data-title="{{ item.userRead.title }}">
  75. <view class="topData">
  76. <view class="worksLeft">
  77. <image class="authorAvatar" lazy-load="true" src="{{ item.user.avatar }}" />
  78. <view class="worksInfo">
  79. <view class="authorName">{{ item.user.wechatName }}</view>
  80. <view class="time">{{ format.formatDate(item.userRead.gmtCreated) || 0 }}</view>
  81. </view>
  82. </view>
  83. <view class="numberInfo">
  84. <view class="wareCardPlays">
  85. <image class="wareCardPlaysImg" lazy-load="true" src="../../../static/image/hotPlays.png" />
  86. <text>{{ item.userRead.playAmount || 0 }}</text>
  87. </view>
  88. <view class="wareCardLikes">
  89. <image class="wareCardLikesImg" lazy-load="true" src="../../../static/image/flower_small_pink.png" />
  90. <text>{{ item.userRead.likeAmount || 0 }}</text>
  91. </view>
  92. </view>
  93. </view>
  94. <image class="wareCardImg" src="{{ item.userRead.iconImg }}" />
  95. <view class="titleSummary">
  96. <text class="wareCardTitle">{{ item.userRead.title }}</text>
  97. <text class="wareCardTip">{{ item.userRead.summary }}</text>
  98. </view>
  99. </view>
  100. </view>
  101. </view>