微信小店联盟带货小程序

team.wxml 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view class="container">
  2. <!-- 团队数据总览 -->
  3. <view class="team-header">
  4. <view class="header-info">
  5. <view class="team-data">
  6. <text class="data-value">{{ totalMembers }}</text>
  7. <text class="data-label">团队总人数</text>
  8. </view>
  9. <view class="team-data">
  10. <text class="data-value">{{ directMembers }}</text>
  11. <text class="data-label">直属下级</text>
  12. </view>
  13. <view class="team-data">
  14. <text class="data-value">{{ indirectMembers }}</text>
  15. <text class="data-label">间接下级</text>
  16. </view>
  17. </view>
  18. </view>
  19. <!-- 团队成员筛选 -->
  20. <view class="team-filter">
  21. <picker
  22. mode="selector"
  23. range="{{ levelOptions }}"
  24. value="{{ currentLevelIndex }}"
  25. bindchange="onLevelChange"
  26. >
  27. <view class="picker-item">
  28. <text>{{ levelOptions[currentLevelIndex] }}</text>
  29. <text class="iconfont icon-down"></text>
  30. </view>
  31. </picker>
  32. <view class="search-box">
  33. <text class="iconfont icon-search"></text>
  34. <input
  35. type="text"
  36. placeholder="搜索团队成员"
  37. bindinput="onSearchInput"
  38. value="{{ searchKeyword }}"
  39. />
  40. </view>
  41. </view>
  42. <!-- 团队成员列表 -->
  43. <view class="team-list">
  44. <block wx:for="{{ teamMembers }}" wx:key="id">
  45. <view class="team-member">
  46. <image class="member-avatar" src="{{ item.avatar }}"></image>
  47. <view class="member-info">
  48. <view class="member-name">
  49. <text>{{ item.nickname }}</text>
  50. <text class="member-level">{{ item.level }}</text>
  51. </view>
  52. <view class="member-detail">
  53. <text>加入时间:{{ item.joinTime }}</text>
  54. <text>直属上级:{{ item.parentNickname }}</text>
  55. </view>
  56. </view>
  57. <view class="member-stats">
  58. <text class="stats-label">贡献佣金</text>
  59. <text class="stats-value">¥{{ item.commission }}</text>
  60. </view>
  61. </view>
  62. </block>
  63. </view>
  64. <!-- 加载状态 -->
  65. <view wx:if="{{ loading }}" class="loading-status">
  66. <text class="loading">加载中...</text>
  67. </view>
  68. <view wx:if="{{ noMore }}" class="loading-status">
  69. <text class="no-more">没有更多成员了</text>
  70. </view>
  71. </view>