partnerCommonRecord.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--pages/partnerCommonRecord/partnerCommonRecord.wxml 普通用户 - 邀请记录-->
  2. <scroll-view class='container'>
  3. <view class='top_tab_wrap'>
  4. <view class='top_tab_cont clearfix'>
  5. <view class='each_tab {{tabId == 0 ? "each_tab_active" : ""}}' data-id="0" bindtap='tabChange'>邀请客户</view>
  6. <view class='each_tab {{tabId == 1 ? "each_tab_active" : ""}}' data-id="1" bindtap='tabChange'>收益记录</view>
  7. </view>
  8. </view>
  9. <!-- 内容 -->
  10. <scroll-view wx:if="{{scrollTrue ? 'scroll-y' : ''}}" class="scoll-h" bindscrolltolower="searchScrollLower">
  11. <view class='tab_content'>
  12. <view class='tab_content_list'>
  13. <!-- 邀请记录 -->
  14. <block wx:if="{{tabId == 0}}">
  15. <view class='tab_title clearfix'>
  16. <view class='tab_title_time'>时间</view>
  17. <view class='tab_title_name'>用户名</view>
  18. <view class='tab_title_type'>邀请类型</view>
  19. </view>
  20. <block wx:if="{{recordList}}" wx:for="{{recordList}}" wx:key="index" wx:for-index="{{i}}">
  21. <view class='each_tab_cont clearfix'>
  22. <view class='tab_cont_time'>{{item.createTime}}</view>
  23. <view class='tab_cont_name'>{{item.distributeSellUser}}</view>
  24. <view class='tab_cont_type'>{{item.shareUser}}</view>
  25. </view>
  26. </block>
  27. </block>
  28. <!-- 收益记录 -->
  29. <block wx:else>
  30. <view class='tab_title clearfix'>
  31. <view class='tab_title_time'>时间</view>
  32. <view class='tab_title_name'>用户名</view>
  33. <view class='tab_title_type'>收益记录</view>
  34. </view>
  35. <block wx:if="{{recordList}}" wx:for="{{recordList}}" wx:key="index" wx:for-index="{{i}}">
  36. <view class='each_tab_cont clearfix'>
  37. <view class='tab_cont_time'>{{item.createTime}}</view>
  38. <view class='tab_cont_name'>{{item.consumeUserName}}</view>
  39. <view class='tab_cont_type'>{{item.earn}}</view>
  40. </view>
  41. </block>
  42. </block>
  43. </view>
  44. </view>
  45. <view class="loading" hidden="{{!searchLoading}}">加载中...</view>
  46. <view class="loading complete" hidden="{{!searchLoadingComplete}}"></view>
  47. </scroll-view>
  48. </scroll-view>