index.wxml 8.0 KB

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