index.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="uRtop">
  10. <view class="uRtopleft">
  11. <view class="nickName textOver">{{userInfo.user.nickName||'请输入昵称' }}</view>
  12. <view class="gradeText textOver">学号:{{userInfo.user.eid}}</view>
  13. </view>
  14. <view class="follow {{userInfo.like?'isFans':''}}" bindtap="setFans">
  15. <image src="{{userInfo.like?'/static/follow_2.png':'/static/follow_1.png'}}" class="character" mode="" />
  16. <text>{{userInfo.like?'已关注':'关注'}}</text>
  17. </view>
  18. </view>
  19. <!-- <view class="uRBtm">
  20. <view class="count countFirst">
  21. 总场<text class="countNum textOver">{{filters.numFilter(userInfo.readAmount)|| 0}}</text>
  22. </view>
  23. <view class="count countFirst">
  24. 胜<text class="countNum textOver">{{filters.numFilter(userInfo.readAmount)|| 0}}</text>
  25. </view>
  26. <view class="count">
  27. 平<text class="countNum textOver">{{filters.numFilter(userInfo.fansAmount)|| '0'}}</text>
  28. </view>
  29. <view class="count countEnd">
  30. 负<text class="countNum textOver">{{filters.numFilter(userInfo.playAmount) || 0}}</text>
  31. </view>
  32. </view> -->
  33. <view class="uRBtm">
  34. <view class="count countFirst">
  35. 作品<text class="countNum textOver">{{filters.numFilter(userInfo.readAmount)|| 0}}</text>
  36. </view>
  37. <view class="count">
  38. 粉丝<text class="countNum textOver">{{filters.numFilter(userInfo.fansAmount)|| '0'}}</text>
  39. </view>
  40. <view class="count countEnd">
  41. 播放<text class="countNum textOver">{{filters.numFilter(userInfo.playAmount) || 0}}</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="divider">
  47. <view class="title">ta的作品</view>
  48. </view>
  49. <view style="flex: 1;overflow: hidden;">
  50. <scroll-view class="worksList" scroll-y="true" enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
  51. bindscrolltolower='bindscrolltolower'>
  52. <view class="worksBox" wx:for="{{16}}" wx:key="index">
  53. <view class="left">
  54. <image src="https://yfklxt-image.ai160.com/reader/20211012/1634004843742426.jpg" class="cover" />
  55. <view class="work">
  56. <view class="title">狼来了</view>
  57. <view class="statistics">
  58. <view class="statistic">
  59. <image src="/static/play.png" class="playImg" mode="" />
  60. <view class="num">1234</view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="goRead" data-id="103126010" bindtap="toPkPage">挑战PK</view>
  66. </view>
  67. </scroll-view>
  68. </view>
  69. </view>