index.wxml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="personalBox">
  3. <view class="userBox">
  4. <view class="identity">
  5. <image class='avatar' src='{{ userInfo.user.avatar}}'></image>
  6. <view class="identityText">{{userInfo.user.profession}}</view>
  7. </view>
  8. <view class="userRight">
  9. <view class="topBox">
  10. <view class="row">
  11. <view class="nickName textOver">{{userInfo.user.nickName||userInfo.user.eid }}</view>
  12. <view class="gradeText textOver" catchtap="clipboar">学号:{{userInfo.user.eid}}
  13. <image src="/static/copy.png" class="copy" />
  14. </view>
  15. </view>
  16. <view class="row" wx:if="{{type=='user'}}">
  17. <view class="count">
  18. 粉丝<text class="countNum textOver">{{filters.numFilter(userInfo.fansAmount)|| '0'}}</text>
  19. </view>
  20. <view class="count">
  21. 作品<text class="countNum textOver">{{filters.numFilter(userInfo.readAmount)|| 0}}</text>
  22. </view>
  23. <view class="count countEnd">
  24. 播放<text class="countNum textOver">{{filters.numFilter(userInfo.playAmount) || 0}}</text>
  25. </view>
  26. </view>
  27. <view class="row" wx:if="{{type=='pk'}}">
  28. <view class="count">
  29. 总场<text class="countNum textOver">{{filters.numFilter(userInfo.totalCount)|| 0}}</text>
  30. </view>
  31. <view class="count">
  32. 胜<text class="countNum textOver">{{filters.numFilter(userInfo.winCount)|| 0}}</text>
  33. </view>
  34. <view class="count">
  35. 平<text class="countNum textOver">{{filters.numFilter(userInfo.flatCount)|| '0'}}</text>
  36. </view>
  37. <view class="count">
  38. 负<text class="countNum textOver">{{filters.numFilter(userInfo.failCount) || 0}}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="btmBox">
  43. <view class="follow {{userInfo.like?'isFans':''}}" bindtap="setFans">
  44. <image src="/static/follow_2.png" wx:if="{{userInfo.like}}" class="character" />
  45. <text>{{userInfo.like?'已关注':'关注'}}</text>
  46. </view>
  47. <view class="follow isFans" catchtap="sendMsg">
  48. <image src="/static/sx.png" class="character" />
  49. <text>发私信</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="divider">
  55. <view class="title">ta的作品</view>
  56. </view>
  57. <view style="flex: 1;overflow: hidden;">
  58. <scroll-view class="worksList" scroll-y="true" enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
  59. bindscrolltolower='loadMore'>
  60. <view class="worksBox" wx:for="{{list}}" wx:key="index" bindtap="toPkPage" data-id="{{item.userRead.id}}">
  61. <view class="left">
  62. <image src="{{item.userRead.coverImg}}" class="cover"
  63. wx:if="{{!item.userReadExtend||item.userReadExtend.resourcesType==0}}" />
  64. <view class="audioCover" style="background-image: url({{item.userReadExtend.backgroundVirtualImg}});" wx:else>
  65. <image src="/static/audioBg.png" class="audioPlayBg" />
  66. <image src="/static/zhen.png" class="audioPlayZhen" />
  67. <image src="{{item.userRead.coverImg}}" class="cover" />
  68. </view>
  69. <view class="work">
  70. <view class="title textOver">{{item.userRead.title}}</view>
  71. <view class="statistics">
  72. <view class="statistic">
  73. <image src="/static/play2.png" class="playImg" />
  74. <view class="num">{{filters.numFilter(item.userRead.playAmount||0)}}</view>
  75. </view>
  76. <view class="statistic">
  77. <image src="/static/p.png" class="playImg" />
  78. <view class="num">{{filters.numFilter(item.userRead.commentAmount||0)}}</view>
  79. </view>
  80. <view class="statistic">
  81. <image src="/static/d.png" class="playImg" />
  82. <view class="num">{{filters.numFilter(item.userRead.likeAmount||0)}}</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="goRead">
  88. {{userInfo.user.profession=='官方'||userInfo.user.uid==localUid?'去朗读':'挑战PK'}}
  89. </view>
  90. </view>
  91. </scroll-view>
  92. </view>
  93. </view>
  94. <canvas id='share' type="2d"> </canvas>