index.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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" wx:if="{{ftype==item.ftype}}">
  14. <image src="{{item.attinfos[1].fobsurl}}"></image>
  15. </view>
  16. <view wx:else class="grid_item_image">
  17. <image src="{{item.attinfos[0].fobsurl}}"></image>
  18. </view>
  19. <view class="grid_item_title u-line-1">{{item.ftype}}</view>
  20. </view>
  21. </view>
  22. <!-- 列表 -->
  23. <My_SupplyAndDemandItemBox data-index="{{index}}" bindtap="jumpForDetails" wx:for="{{productList}}" title="[{{item.ftype}}]{{item.ftitle}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}" type='{{item.ftype}}' content="{{item.fcontent}}" bindstopOnShow="stopOnShow">
  24. <!-- 内容信息插槽 -->
  25. <view slot="dataAndBut">
  26. <view class="dataAndBut">
  27. <view class="dataAndBut_data">
  28. 浏览次数:{{item.freadtimes}}次 意向沟通人数:{{item.fcommunicationtimes}}次
  29. </view>
  30. <view class="dataAndBut_but">
  31. <van-button wx:if="{{item.fstatus == '待对接'}}" color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut" data-item="{{item}}" catchtap="toLinkUp">一键联系</van-button>
  32. <van-button wx:else color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-NoSlotBut" catchtap="stop">{{item.fstatus}}</van-button>
  33. </view>
  34. </view>
  35. </view>
  36. </My_SupplyAndDemandItemBox>
  37. </van-tab>
  38. <van-tab title="正在对接">
  39. <view class="abutting-joint-box">
  40. <view class="abutting-joint-titleAndMsg">
  41. <view class="abutting-joint-title">各位老板看下有以下面料的联系我,高价收!</view>
  42. <view class="abutting-joint-msg"><text style="color: #FF0000; opacity: .5;">[23条]</text>李老板:多少钱收?多少钱收?</view>
  43. </view>
  44. <view class="abutting-joint-timeAndBut">
  45. <view class="abutting-joint-time">2021-11-10 14:23:43</view>
  46. <van-button custom-class="abutting-joint-but"><text class="abutting-joint-but-text">继续沟通</text></van-button>
  47. </view>
  48. </view>
  49. </van-tab>
  50. <van-tab title="我的需求">
  51. <!-- 搜索 -->
  52. <view class="my-need-search">
  53. <input class="my-need-search-input {{searchFocus?'my-need-search-inputfocus':''}}" confirm-type="search" placeholder="搜索关键字" type="text" bindfocus="needSearchFocus" bindblur="needSearchBlur" />
  54. <view class="my-need-search-but">
  55. <van-icon name="search" />
  56. </view>
  57. </view>
  58. <!-- 列表 -->
  59. <My_SupplyAndDemandItemBox wx:for="{{productList}}" title="【{{item.ftype}}】{{item.ftitle}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}" data-index="{{index}}" bindtap="jumpForDetails" type='{{item.ftype}}' content="{{item.fcontent}}" bindstopOnShow="stopOnShow">
  60. <!-- 我的需求左上状态插槽 -->
  61. <view slot="myState" class="myState">
  62. <view class="myShowState {{item.fstatus=='正在对接'?'myNoSoldOut':''}} {{item.fstatus=='待对接'?'myNoSoldOut':''}}">
  63. <view wx:if="{{item.fstatus=='已解决'}}">已下架</view>
  64. <view wx:elif="{{item.fstatus=='新建'}}">未上架</view>
  65. <view wx:elif="{{item.fstatus=='待对接'}}">上架中</view>
  66. <view wx:elif="{{item.fstatus=='正在对接'}}">对接中</view>
  67. <view wx:else>已下架</view>
  68. </view>
  69. </view>
  70. <!-- 下架按钮插槽 -->
  71. <view slot="soldOutBut">
  72. <van-button data-index="{{index}}" plain color="#4DC2D4" custom-class="soldOutBut" catchtap="soldOut">下架</van-button>
  73. </view>
  74. <!-- 内容信息插槽 -->
  75. <view slot="dataAndBut">
  76. <view class="dataAndBut">
  77. <view class="dataAndBut_data">
  78. 浏览次数:{{item.freadtimes}}<text data-item="{{item}}" catchtap="showCommunicationOfNumber">意向沟通人数</text>:{{item.fcommunicationtimes}}次
  79. </view>
  80. <view class="dataAndBut_but">
  81. <van-button color="#4DC2D4" data-index="{{index}}" style="margin-left: 16rpx;" custom-class="custom-slotBut" catchtap="productEdit">编辑</van-button>
  82. </view>
  83. </view>
  84. </view>
  85. </My_SupplyAndDemandItemBox>
  86. </van-tab>
  87. </van-tabs>
  88. </view>
  89. <!-- 我的需求弹框 -->
  90. <van-action-sheet show="{{ ifShowCommunicationOfNumber }}" bind:close="endShowCommunicationOfNumber">
  91. <view class="CommunicationOfNumber">
  92. <view class="CommunicationOfNumber-title">沟通列表</view>
  93. <view class="CommunicationOfNumber-list">
  94. <view wx:for="{{imdialogs}}">{{item.createdate}}<text data-item="{{item}}" catchtap="toLinkUpPage" class="text">用户:{{item.fname}}</text><text wx:if="{{item.fdatastatus==0}}">发起联系,遗憾未达成合作</text><text wx:elif='{{item.fdatastatus==2}}'>发起联系,正在对接中</text><text wx:elif='{{item.fdatastatus==1}}'>发起联系,恭喜达成合作</text></view>
  95. </view>
  96. </view>
  97. <view style="height: 50px;"></view>
  98. </van-action-sheet>
  99. <!-- 触底展示 -->
  100. <My_pageReachBottom dummyStatus="{{productList.length>=1}}" loadMore="{{pageNumber>=pageTotal}}"></My_pageReachBottom>
  101. <!-- 安全距离 -->
  102. <view style="height: 34px;"></view>
  103. <!-- 右侧吸附固定按钮 -->
  104. <My_fixedButton bindclick='postDemand' />