index.wxml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!-- 自定义头部 -->
  2. <My_navBar></My_navBar>
  3. <!-- 轮播图 -->
  4. <My_BannerSwiper swiperBannerList="{{swiperBannerList}}"></My_BannerSwiper>
  5. <!-- tabs切换栏 -->
  6. <view style="min-height: 70vh;">
  7. <view class="tabs_box">
  8. <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>
  9. <view style="height: 10rpx;"></view>
  10. <van-tab title="所有信息">
  11. <!-- 搜索 -->
  12. <view class="my-need-search">
  13. <input class="my-need-search-input {{searchFocus?'my-need-search-inputfocus':''}}" confirm-type="search" placeholder="搜索关键字" type="text" bindfocus="needSearchFocus" bindblur="needSearchBlur" bindconfirm='needSearchBlur' />
  14. <view class="my-need-search-but">
  15. <van-icon name="search" />
  16. </view>
  17. </view>
  18. <!-- 宫格 -->
  19. <view class="grid_box">
  20. <view class="grid_item" wx:for="{{ftypeList}}" wx:key="index" data-type="{{item.ftype}}" bindtap="switchScreenType">
  21. <view class="grid_item_image" wx:if="{{ftype==item.ftype}}">
  22. <image src="{{item.attinfos[1].fobsurl}}"></image>
  23. </view>
  24. <view wx:else class="grid_item_image">
  25. <image src="{{item.attinfos[0].fobsurl}}"></image>
  26. </view>
  27. <view class="grid_item_title u-line-1">{{item.ftype}}</view>
  28. </view>
  29. </view>
  30. <!-- 列表 -->
  31. <My_SupplyAndDemandItemBox data-index="{{index}}" bindtap="jumpForDetails" wx:for="{{productList}}" wx:key="index" title="[{{item.ftype}}]{{item.ftitle}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}" type='{{item.ftype}}' content="{{item.fcontent}}" bindstopOnShow="stopOnShow">
  32. <!-- 内容信息插槽 -->
  33. <view slot="dataAndBut">
  34. <view class="dataAndBut">
  35. <view class="dataAndBut_data">
  36. 浏览次数:{{item.freadtimes}}次 沟通人数:{{item.fcommunicationtimes}}次
  37. </view>
  38. <!-- <view class="dataAndBut_but">
  39. <van-button wx:if="{{item.fstatus == '待对接'}}" color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-slotBut" data-item="{{item}}" catchtap="toLinkUp">一键联系</van-button>
  40. <van-button wx:else color="#4DC2D4" style="margin-left: 16rpx;" custom-class="custom-NoSlotBut" catchtap="stop">{{item.fstatus}}</van-button>
  41. </view> -->
  42. </view>
  43. </view>
  44. </My_SupplyAndDemandItemBox>
  45. </van-tab>
  46. <van-tab title="正在对接">
  47. <view class="abutting-joint-box" wx:for="{{productList}}" wx:key="index">
  48. <view class="abutting-joint-titleAndMsg">
  49. <view class="abutting-joint-title u-line-1">[{{item.ftype}}]{{item.ftitle}}</view>
  50. <view class="abutting-joint-msg u-line-1"><text wx:if="{{item.imdialogs[0].funreadmsgcount!=0}}" style="color: #FF0000; opacity: .5;">[{{item.imdialogs[0].funreadmsgcount}}条]</text>
  51. <view style="display: inline-block;" wx:if="{{item.imdialogs[0].latestnews.length!=0}}">{{item.imdialogs[0].latestnews[0].fname}}:<text wx:if="{{item.imdialogs[0].latestnews[0].fmessagetype=='text'}}">{{item.imdialogs[0].latestnews[0].message.data.fcontent}}</text>
  52. <text wx:else>[图片]</text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="abutting-joint-timeAndBut">
  57. <view class="abutting-joint-time">{{item.checkdate}}</view>
  58. <van-button custom-class="abutting-joint-but" data-fdatastatus="2" data-timdialogid="{{item.imdialogs[0].timdialogid}}" catchtap="toLinkUpPage"><text class="abutting-joint-but-text">继续沟通</text></van-button>
  59. </view>
  60. </view>
  61. <view style="width: 100vw; height: 30rpx;"></view>
  62. </van-tab>
  63. <van-tab title="我的需求">
  64. <!-- 搜索 -->
  65. <view class="my-need-search">
  66. <input class="my-need-search-input {{searchFocus?'my-need-search-inputfocus':''}}" confirm-type="search" placeholder="搜索关键字" type="text" bindfocus="needSearchFocus" bindblur="needSearchBlur" bindconfirm='needSearchBlur' />
  67. <view class="my-need-search-but">
  68. <van-icon name="search" />
  69. </view>
  70. </view>
  71. <!-- 列表 -->
  72. <My_SupplyAndDemandItemBox wx:for="{{productList}}" wx:key="index" title="【{{item.ftype}}】{{item.ftitle}}" time="{{item.checkdate}}" imageList="{{item.attinfos}}" data-index="{{index}}" bindtap="jumpForDetails" type='{{item.ftype}}' content="{{item.fcontent}}" bindstopOnShow="stopOnShow">
  73. <!-- 我的需求左上状态插槽 -->
  74. <view slot="myState" class="myState">
  75. <view class="myShowState {{item.fstatus=='正在对接'?'myNoSoldOut':''}}{{item.fstatus=='对接中'?'myNoSoldOut':''}} {{item.fstatus=='待对接'?'myNoSoldOut':''}}">
  76. <view wx:if="{{item.fstatus=='已解决'}}">已下架</view>
  77. <view wx:elif="{{item.fstatus=='新建'}}">未上架</view>
  78. <view wx:elif="{{item.fstatus=='待对接'}}">上架中</view>
  79. <view wx:elif="{{item.fstatus=='对接中'}}">对接中</view>
  80. <view wx:elif="{{item.fstatus=='正在对接'}}">对接中</view>
  81. <view wx:else>已下架</view>
  82. </view>
  83. </view>
  84. <!-- 下架按钮插槽 -->
  85. <view slot="soldOutBut">
  86. <van-button data-index="{{index}}" plain color="#4DC2D4" custom-class="soldOutBut" catchtap="soldOut">下架</van-button>
  87. </view>
  88. <!-- 内容信息插槽 -->
  89. <view slot="dataAndBut">
  90. <view class="dataAndBut">
  91. <view class="dataAndBut_data">
  92. 浏览次数:{{item.freadtimes}} 沟通人数:{{item.fcommunicationtimes}}次
  93. </view>
  94. <view class="dataAndBut_but">
  95. <van-button color="#4DC2D4" data-item="{{item}}" style="margin-left: 16rpx;" custom-class="custom-slotBut" catchtap="showCommunicationOfNumber">沟通详情</van-button>
  96. <van-button color="#4DC2D4" data-index="{{index}}" style="margin-left: 16rpx;" custom-class="custom-slotBut" catchtap="productEdit">编辑</van-button>
  97. </view>
  98. </view>
  99. </view>
  100. </My_SupplyAndDemandItemBox>
  101. </van-tab>
  102. </van-tabs>
  103. </view>
  104. <!-- 触底展示 -->
  105. <My_pageReachBottom dummyStatus="{{productList.length>=1}}" loadMore="{{pageNumber>=pageTotal}}"></My_pageReachBottom>
  106. </view>
  107. <!-- 我的需求弹框 -->
  108. <van-action-sheet show="{{ ifShowCommunicationOfNumber }}" bind:close="endShowCommunicationOfNumber">
  109. <view class="CommunicationOfNumber">
  110. <view class="CommunicationOfNumber-title">沟通列表</view>
  111. <view class="CommunicationOfNumber-list">
  112. <view wx:for="{{imdialogs}}" wx:key="index">{{item.createdate}}<text data-timdialogid="{{item.timdialogid}}" data-fdatastatus="{{item.fdatastatus}}" catchtap="toLinkUpPage" class="text">用户:{{item.fname}}</text><text wx:if="{{item.fdatastatus==0}}">发起联系,遗憾未达成合作</text><text wx:elif='{{item.fdatastatus==1}}'>发起联系,恭喜达成合作</text><text wx:else>发起联系,正在对接中</text></view>
  113. </view>
  114. </view>
  115. <view style="height: 50px;"></view>
  116. </van-action-sheet>
  117. <!-- 安全距离 -->
  118. <view style="height: 34px;"></view>
  119. <!-- 右侧吸附固定按钮 -->
  120. <My_fixedButton bindclick='postDemand' />