index.wxml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!-- 自定义头部 -->
  2. <My_navBar></My_navBar>
  3. <!-- banner -->
  4. <view class="supplyAndDemandBanner">
  5. <swiper class="swiperBanner" autoplay indicator-dots circular="true" indicator-active-color="#fff">
  6. <swiper-item wx:for="{{swiperBannerList}}" wx:key="index">
  7. <image src="{{item.url}}" mode="aspectFill"></image>
  8. </swiper-item>
  9. </swiper>
  10. </view>
  11. <!-- tabs切换栏 -->
  12. <view class="tabs_box">
  13. <van-tabs active="{{ active }}" bind:change="tabsChange" custom-class="tabs-custom-class" tab-active-class="tabs-active-class" ellipsis="{{false}}" line-width="30px" color="#4DC2D4" title-active-color="#4DC2D4" swipeable>
  14. <view style="height: 10rpx;"></view>
  15. <van-tab title="所有信息">
  16. <!-- 宫格 -->
  17. <view class="grid_box">
  18. <van-grid border="{{false}}" bindtap="gridJumpPage">
  19. <van-grid-item wx:for="{{gridList}}" data-name="{{item.text}}" icon="{{item.icon}}" text="{{item.text}}" text-class="grid_text-class" />
  20. </van-grid>
  21. </view>
  22. <!-- 列表 -->
  23. <My_SupplyAndDemandItemBox wx:for="{{productList}}" title="【{{item.ftitle}}】{{item.fcontent}}" time="{{item.checkdate}}">
  24. <!-- 内容信息插槽 -->
  25. <view slot="dataAndBut">
  26. <view class="dataAndBut">
  27. <view class="dataAndBut_data">
  28. 浏览次数:245次 意向沟通人数:134次
  29. </view>
  30. <view class="dataAndBut_but">
  31. <van-button color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut">一键联系</van-button>
  32. </view>
  33. </view>
  34. </view>
  35. </My_SupplyAndDemandItemBox>
  36. </van-tab>
  37. <van-tab title="正在对接">
  38. <view class="abutting-joint-box">
  39. <view class="abutting-joint-titleAndMsg">
  40. <view class="abutting-joint-title">各位老板看下有以下面料的联系我,高价收!</view>
  41. <view class="abutting-joint-msg"><text style="color: #FF0000; opacity: .5;">[23条]</text>李老板:多少钱收?多少钱收?</view>
  42. </view>
  43. <view class="abutting-joint-timeAndBut">
  44. <view class="abutting-joint-time">2021-11-10 14:23:43</view>
  45. <van-button custom-class="abutting-joint-but"><text class="abutting-joint-but-text">继续沟通</text></van-button>
  46. </view>
  47. </view>
  48. </van-tab>
  49. <van-tab title="我的需求">
  50. <!-- 搜索 -->
  51. <view class="my-need-search">
  52. <input class="my-need-search-input {{searchFocus?'my-need-search-inputfocus':''}}" confirm-type="search" placeholder="搜索关键字" type="text" bindfocus="needSearchFocus" bindblur="needSearchBlur" />
  53. <view class="my-need-search-but">
  54. <van-icon name="search" />
  55. </view>
  56. </view>
  57. <!-- 列表 -->
  58. <My_SupplyAndDemandItemBox wx:for="{{productList}}" title="【{{item.ftitle}}】{{item.fcontent}}" time="{{item.checkdate}}">
  59. <!-- 下架按钮插槽 -->
  60. <view slot="soldOutBut">
  61. <van-button data-index="{{index}}" plain color="#4DC2D4" custom-class="soldOutBut" bindtap="soldOut">下架</van-button>
  62. </view>
  63. <!-- 内容信息插槽 -->
  64. <view slot="dataAndBut">
  65. <view class="dataAndBut">
  66. <view class="dataAndBut_data">
  67. 浏览次数:245次<text>意向沟通人数</text>:134次
  68. </view>
  69. <view class="dataAndBut_but">
  70. <van-button color="#4DC2D4" data-index="{{index}}" custom-class="custom-slotBut" bindtap="productEdit">编辑</van-button>
  71. <van-button color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut">{{item.fstatus}}</van-button>
  72. </view>
  73. </view>
  74. </view>
  75. </My_SupplyAndDemandItemBox>
  76. </van-tab>
  77. </van-tabs>
  78. </view>
  79. <!-- 右侧吸附按钮 -->
  80. <My_adsorbRight></My_adsorbRight>
  81. <!-- 触底展示 -->
  82. <My_pageReachBottom loadMore="{{pageTotal<pageNumber}}"></My_pageReachBottom>
  83. <!-- 安全距离 -->
  84. <view style="height: 34px;"></view>