index.wxml 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!-- 自定义头部 -->
  2. <My_navBar></My_navBar>
  3. <!-- 轮播图 -->
  4. <My_BannerSwiper swiperBannerList="{{swiperBannerList}}"></My_BannerSwiper>
  5. <!-- tabs切换栏 -->
  6. <view class="tabs_box">
  7. <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>
  8. <view style="height: 10rpx;"></view>
  9. <van-tab title="所有信息">
  10. <!-- 宫格 -->
  11. <view class="grid_box">
  12. <view class="grid_item" wx:key="index" wx:for="{{ftypeList}}" data-type="{{item.ftype}}" bindtap="switchScreenType">
  13. <view class="grid_item_image {{ftype==item.ftype?'grid_item_pitchOn':''}}">
  14. <!-- <image></image> -->
  15. </view>
  16. <view class="grid_item_title">{{item.ftype}}</view>
  17. </view>
  18. </view>
  19. <!-- 列表 -->
  20. <My_SupplyAndDemandItemBox data-index="{{index}}" bindtap="jumpForDetails" wx:for="{{productList}}" title="【{{item.ftitle}}】{{item.fcontent}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}" bindstopOnShow="stopOnShow">
  21. <!-- 内容信息插槽 -->
  22. <view slot="dataAndBut">
  23. <view class="dataAndBut">
  24. <view class="dataAndBut_data">
  25. 浏览次数:{{item.freadtimes}}次 意向沟通人数:{{item.fcommunicationtimes}}次
  26. </view>
  27. <view class="dataAndBut_but">
  28. <van-button wx:if="{{item.fstatus == '待对接'}}" color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut" catchtap="contact">一键联系</van-button>
  29. <van-button wx:else color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-NoSlotBut" catchtap="stop">{{item.fstatus}}</van-button>
  30. </view>
  31. </view>
  32. </view>
  33. </My_SupplyAndDemandItemBox>
  34. </van-tab>
  35. <van-tab title="正在对接">
  36. <view class="abutting-joint-box">
  37. <view class="abutting-joint-titleAndMsg">
  38. <view class="abutting-joint-title">各位老板看下有以下面料的联系我,高价收!</view>
  39. <view class="abutting-joint-msg"><text style="color: #FF0000; opacity: .5;">[23条]</text>李老板:多少钱收?多少钱收?</view>
  40. </view>
  41. <view class="abutting-joint-timeAndBut">
  42. <view class="abutting-joint-time">2021-11-10 14:23:43</view>
  43. <van-button custom-class="abutting-joint-but"><text class="abutting-joint-but-text">继续沟通</text></van-button>
  44. </view>
  45. </view>
  46. </van-tab>
  47. <van-tab title="我的需求">
  48. <!-- 搜索 -->
  49. <view class="my-need-search">
  50. <input class="my-need-search-input {{searchFocus?'my-need-search-inputfocus':''}}" confirm-type="search" placeholder="搜索关键字" type="text" bindfocus="needSearchFocus" bindblur="needSearchBlur" />
  51. <view class="my-need-search-but">
  52. <van-icon name="search" />
  53. </view>
  54. </view>
  55. <!-- 列表 -->
  56. <My_SupplyAndDemandItemBox wx:for="{{productList}}" title="【{{item.ftitle}}】{{item.fcontent}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}" data-index="{{index}}" bindtap="jumpForDetails">
  57. <!-- 下架按钮插槽 -->
  58. <view slot="soldOutBut">
  59. <van-button data-index="{{index}}" plain color="#4DC2D4" custom-class="soldOutBut" catchtap="soldOut">下架</van-button>
  60. </view>
  61. <!-- 内容信息插槽 -->
  62. <view slot="dataAndBut">
  63. <view class="dataAndBut">
  64. <view class="dataAndBut_data">
  65. 浏览次数:{{item.freadtimes}}<text catchtap="showCommunicationOfNumber">意向沟通人数</text>:{{item.fcommunicationtimes}}次
  66. </view>
  67. <view class="dataAndBut_but">
  68. <van-button color="#4DC2D4" data-index="{{index}}" style="margin-left: 16rpx;" custom-class="custom-slotBut" catchtap="productEdit">编辑</van-button>
  69. </view>
  70. </view>
  71. </view>
  72. </My_SupplyAndDemandItemBox>
  73. </van-tab>
  74. </van-tabs>
  75. </view>
  76. <!-- 我的需求弹框 -->
  77. <van-action-sheet show="{{ ifShowCommunicationOfNumber }}" bind:close="showCommunicationOfNumber">
  78. <view class="CommunicationOfNumber">
  79. <view class="CommunicationOfNumber-title">沟通列表</view>
  80. <view class="CommunicationOfNumber-list">
  81. <view wx:for="{{5}}">2021-02-13 16:34:45<text>用户:啊9999</text>发起联系,遗憾未达成合作</view>
  82. </view>
  83. </view>
  84. <view style="height: 50px;"></view>
  85. </van-action-sheet>
  86. <!-- 右侧吸附按钮 -->
  87. <My_adsorbRight></My_adsorbRight>
  88. <!-- 触底展示 -->
  89. <My_pageReachBottom dummyStatus="{{productList.length>=1}}" loadMore="{{pageTotal<pageNumber}}"></My_pageReachBottom>
  90. <!-- 安全距离 -->
  91. <view style="height: 34px;"></view>