index.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!-- 搜索 -->
  2. <My_SearchInputBox bind:searchQuery="searchQuery" route="product" fisadministrator="{{fisadministrator}}"></My_SearchInputBox>
  3. <!-- 列表 -->
  4. <My_GeneralTemplate padBot="20rpx">
  5. <view class="product_list">
  6. <!-- tabs -->
  7. <van-tabs swipeable active="{{ active }}" bind:change="tabsChange" color="#4BBECF" title-active-color='#4BBECF'>
  8. <van-tab title="全部">
  9. <!-- 占位 -->
  10. <view style="height: 30rpx;"></view>
  11. <!-- 滚动区域 -->
  12. <scroll-view scroll-y="true" style="max-height: 60vh;" lower-threshold="500px" scroll-top="0px" bindscrolltolower="scrolltolower">
  13. <!-- 产品列表 -->
  14. <My_MembersAndProducts wx:for="{{productList}}" wx:key="{{item.tagents_productid}}" bind:changeMessage="changeProductMessage" data-index="{{index}}" attinfos="{{item.attinfos[0]}}" imgSize="120rpx" radius="8rpx" title="{{item.fprodname}}" twoRow="{{item.fintroduction}}" threeRow="{{item.ftag}}" fisadministrator="{{fisadministrator}}"></My_MembersAndProducts>
  15. <!-- 上拉到底,加载中样式 -->
  16. <van-loading wx:if="{{pageTotal>pageNumber}}" style="width: 100%;display: flex; justify-content: center;" size="24px" color="#4BBECF">加载中...</van-loading>
  17. <!-- 全部加载完成 -->
  18. <van-divider wx:else contentPosition="center">我也是有底线的</van-divider>
  19. </scroll-view>
  20. </van-tab>
  21. <van-tab title="上架中">
  22. <!-- 占位 -->
  23. <view style="height: 30rpx;"></view>
  24. <!-- 滚动区域 -->
  25. <scroll-view scroll-y="true" style="max-height: 60vh;" bindscrolltolower="scrolltolower">
  26. <!-- 产品列表 -->
  27. <My_MembersAndProducts wx:for="{{productList}}" wx:key="{{item.tagents_productid}}" bind:changeMessage="changeProductMessage" data-index="{{index}}" attinfos="{{item.attinfos[0]}}" imgSize="120rpx" radius="8rpx" title="{{item.fprodname}}" twoRow="{{item.fintroduction}}" threeRow="{{item.ftag}}" fisadministrator="{{fisadministrator}}"></My_MembersAndProducts>
  28. <!-- 上拉到底,加载中样式 -->
  29. <van-loading wx:if="{{pageTotal>pageNumber}}" style="width: 100%;display: flex; justify-content: center;" size="24px" color="#4BBECF">加载中...</van-loading>
  30. <!-- 全部加载完成 -->
  31. <van-divider wx:else contentPosition="center">我也是有底线的</van-divider>
  32. </scroll-view>
  33. </van-tab>
  34. <van-tab title="已下架">
  35. <!-- 占位 -->
  36. <view style="height: 30rpx;"></view>
  37. <!-- 滚动区域 -->
  38. <scroll-view scroll-y="true" style="max-height: 60vh;" bindscrolltolower="scrolltolower">
  39. <!-- 产品列表 -->
  40. <My_MembersAndProducts wx:for="{{productList}}" wx:key="{{item.tagents_productid}}" bind:changeMessage="changeProductMessage" data-index="{{index}}" attinfos="{{item.attinfos[0]}}" imgSize="120rpx" radius="8rpx" title="{{item.fprodname}}" twoRow="{{item.fintroduction}}" threeRow="{{item.ftag}}" fisadministrator="{{fisadministrator}}"></My_MembersAndProducts>
  41. <!-- 上拉到底,加载中样式 -->
  42. <van-loading wx:if="{{pageTotal>pageNumber}}" style="width: 100%;display: flex; justify-content: center;" size="24px" color="#4BBECF">加载中...</van-loading>
  43. <!-- 全部加载完成 -->
  44. <van-divider wx:else contentPosition="center">我也是有底线的</van-divider>
  45. </scroll-view>
  46. </van-tab>
  47. </van-tabs>
  48. </view>
  49. </My_GeneralTemplate>