index.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. <view class="grid_item" wx:key="index" wx:for="{{ftypeList}}" data-type="{{item.ftype}}" bindtap="switchScreenType">
  19. <view class="grid_item_image {{ftype==item.ftype?'grid_item_pitchOn':''}}">
  20. <!-- <image></image> -->
  21. </view>
  22. <view class="grid_item_title">{{item.ftype}}</view>
  23. </view>
  24. </view>
  25. <!-- 列表 -->
  26. <My_SupplyAndDemandItemBox wx:for="{{productList}}" title="【{{item.ftitle}}】{{item.fcontent}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}">
  27. <!-- 内容信息插槽 -->
  28. <view slot="dataAndBut">
  29. <view class="dataAndBut">
  30. <view class="dataAndBut_data">
  31. 浏览次数:245次 意向沟通人数:134次
  32. </view>
  33. <view class="dataAndBut_but">
  34. <van-button color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut">一键联系</van-button>
  35. </view>
  36. </view>
  37. </view>
  38. </My_SupplyAndDemandItemBox>
  39. </van-tab>
  40. <van-tab title="正在对接">
  41. <view class="abutting-joint-box">
  42. <view class="abutting-joint-titleAndMsg">
  43. <view class="abutting-joint-title">各位老板看下有以下面料的联系我,高价收!</view>
  44. <view class="abutting-joint-msg"><text style="color: #FF0000; opacity: .5;">[23条]</text>李老板:多少钱收?多少钱收?</view>
  45. </view>
  46. <view class="abutting-joint-timeAndBut">
  47. <view class="abutting-joint-time">2021-11-10 14:23:43</view>
  48. <van-button custom-class="abutting-joint-but"><text class="abutting-joint-but-text">继续沟通</text></van-button>
  49. </view>
  50. </view>
  51. </van-tab>
  52. <van-tab title="我的需求">
  53. <!-- 搜索 -->
  54. <view class="my-need-search">
  55. <input class="my-need-search-input {{searchFocus?'my-need-search-inputfocus':''}}" confirm-type="search" placeholder="搜索关键字" type="text" bindfocus="needSearchFocus" bindblur="needSearchBlur" />
  56. <view class="my-need-search-but">
  57. <van-icon name="search" />
  58. </view>
  59. </view>
  60. <!-- 列表 -->
  61. <My_SupplyAndDemandItemBox wx:for="{{productList}}" title="【{{item.ftitle}}】{{item.fcontent}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}">
  62. <!-- 下架按钮插槽 -->
  63. <view slot="soldOutBut">
  64. <van-button data-index="{{index}}" plain color="#4DC2D4" custom-class="soldOutBut" bindtap="soldOut">下架</van-button>
  65. </view>
  66. <!-- 内容信息插槽 -->
  67. <view slot="dataAndBut">
  68. <view class="dataAndBut">
  69. <view class="dataAndBut_data">
  70. 浏览次数:245次<text>意向沟通人数</text>:134次
  71. </view>
  72. <view class="dataAndBut_but">
  73. <van-button color="#4DC2D4" data-index="{{index}}" custom-class="custom-slotBut" bindtap="productEdit">编辑</van-button>
  74. <van-button color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut">{{item.fstatus}}</van-button>
  75. </view>
  76. </view>
  77. </view>
  78. </My_SupplyAndDemandItemBox>
  79. </van-tab>
  80. </van-tabs>
  81. </view>
  82. <!-- 右侧吸附按钮 -->
  83. <My_adsorbRight></My_adsorbRight>
  84. <!-- 触底展示 -->
  85. <My_pageReachBottom dummyStatus="{{productList.length>=1}}" loadMore="{{pageTotal<pageNumber}}"></My_pageReachBottom>
  86. <!-- 安全距离 -->
  87. <view style="height: 34px;"></view>