index.wxml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!-- 搜索 -->
  2. <view class="search" bindtap="toSearch">
  3. <image src="/static/icon-09.png" />搜索关键字
  4. </view>
  5. <!-- 轮播图 -->
  6. <My_BannerSwiper swiperBannerList="{{swiperBannerList}}"></My_BannerSwiper>
  7. <!-- 最新通告 -->
  8. <view class="annunciate" wx:if="{{annunciateList.length!=0}}">
  9. <!-- 标题 -->
  10. <view class="annunciate_title">
  11. <view class="annunciate_decorate"></view>
  12. <view class="annunciate_text">最新通告</view>
  13. </view>
  14. <!-- 内容 -->
  15. <view class="annunciate_content">
  16. <swiper class="annunciate_content_swiper" autoplay circular indicator-dots indicator-color='rgba(216,216,216,.58)' indicator-active-color='#57C7D3'>
  17. <swiper-item wx:key="index" wx:for="{{annunciateList}}">
  18. <image wx:if="{{item.attinfos[0]}}" src="{{item.attinfos[0].fobsurl}}"></image>
  19. <image src="/static/annunciate/cover.png"></image>
  20. </swiper-item>
  21. </swiper>
  22. <view class="annunciate_show">
  23. <view class="annunciate_item" wx:key="index" wx:for="{{annunciateList}}" data-index="{{index}}" bindtap="toAnnunciateDetails">
  24. <view class="annunciate_item_title u-line-1">{{item.ftitle}}</view>
  25. <view class="annunciate_item_count">
  26. <image src="/static/icon-14.png"></image>
  27. 浏览 {{item.freadcount}}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <view wx:if="{{portal_middle_1!=''}}" style="margin:20px auto 0; height: 90px; width: 351px; overflow: hidden; border-radius: 10rpx; box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.05);">
  34. <image src="{{portal_middle_1[0].attinfos[0].fobsurl}}" bindtap="toApply" mode="aspectFill" style="height: 100%; width: 100%;"></image>
  35. </view>
  36. <!-- 广告位1 -->
  37. <!-- <My_BannerSwiper type="advertising" marTop='40' swiperBannerList="{{portal_middle_1}}" /> -->
  38. <!-- 品牌关注榜 -->
  39. <view class="annunciate" style="padding-top: 40rpx;">
  40. <!-- 标题 -->
  41. <view class="annunciate_title">
  42. <view class="annunciate_decorate"></view>
  43. <view class="annunciate_text">品牌关注榜</view>
  44. </view>
  45. <view class="concerns-box">
  46. <view class="concerns-head" bindtap="concernsChange">
  47. <view class="label {{brandSelect==0?'active':''}}" data-index="0">窗帘布</view>
  48. <view class="label {{brandSelect==1?'active':''}}" data-index="1">沙发布</view>
  49. </view>
  50. <view class="concerns-content" hidden="{{brandSelect!=0}}">
  51. <view class="concerns-content-item u-line-1" wx:for="{{brandList0}}" wx:if="{{index<10}}">
  52. <view class="img">
  53. <image src="/static/portal/icon-{{index}}.png" mode="heightFix"></image>
  54. </view>{{item.fname}}
  55. </view>
  56. </view>
  57. <view class="concerns-content" hidden="{{brandSelect!=1}}">
  58. <view class="concerns-content-item u-line-1" wx:for="{{brandList1}}" wx:if="{{index<10}}">
  59. <view class="img">
  60. <image src="/static/portal/icon-{{index}}.png" mode="heightFix"></image>
  61. </view>{{item.fname}}
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 直播列表 -->
  67. <view class="annunciate" style="padding-top: 40rpx;">
  68. <!-- 标题 -->
  69. <view class="annunciate_title">
  70. <view class="annunciate_decorate"></view>
  71. <view class="annunciate_text">正在直播</view>
  72. </view>
  73. <portalLice list='{{tiveList}}' />
  74. <van-empty wx:if="{{tiveList.length==0}}" description="暂无直播" />
  75. </view>
  76. <!-- 广告位1 -->
  77. <!-- <My_BannerSwiper type="advertising" marTop='40' swiperBannerList="{{portal_middle_2}}" /> -->
  78. <!-- 供需 -->
  79. <van-tabs active="{{ tabsActive }}" color='#00C1D2' line-width='15' line-height='3' custom-class='tabs-custom-class' tab-class='tabs-tab-class' tab-active-class='tabs-tab-active-class' bind:change="tabsOnChange">
  80. <van-tab wx:key="index" wx:for="{{sadClassify}}" title="{{item.ftype}}" />
  81. </van-tabs>
  82. <!-- 列表展示区 -->
  83. <block>
  84. <supplyanddemandList list='{{sadList}}'></supplyanddemandList>
  85. <van-empty wx:if="{{1>sadList.length}}" description="暂无数据" />
  86. </block>
  87. <!-- 展厅照片 -->
  88. <!-- <view class="exhibition-hall">
  89. <image src="{{portal_middle_3[0].attinfos[0].fobsurl}}" mode="aspectFill"></image>
  90. </view> -->
  91. <!-- 招商表单 -->
  92. <view class="annunciate" style="margin-top: 20rpx;">
  93. <!-- 标题 -->
  94. <view class="annunciate_title">
  95. <view class="annunciate_decorate"></view>
  96. <view class="annunciate_text">我要咨询</view>
  97. </view>
  98. <!-- 招商表单 -->
  99. <view class="recruit-box">
  100. <!-- 姓名,手机 -->
  101. <view class="recruit-row">
  102. <label for="name" class="recruit-row-title">
  103. 您的姓名
  104. </label>
  105. <view class="recruit-row-input">
  106. <input id='name' placeholder="请输入姓名" value="{{recruitName}}" data-name="recruitName" bindinput="recruitInput" placeholder-class="placeholder-class" type="text" />
  107. </view>
  108. <label for="phone" class="recruit-row-title" style="margin-left: 22rpx;">
  109. 您的手机
  110. </label>
  111. <view class="recruit-row-input">
  112. <input id='phone' placeholder="请输入手机号" value="{{recruitPhone}}" bindblur="phoneNumber" placeholder-class="placeholder-class" type="number" />
  113. </view>
  114. </view>
  115. <!-- 选择地区 -->
  116. <view class="recruit-row" style="margin-top: 20rpx;">
  117. <view class="recruit-row-title">
  118. 您的地址
  119. </view>
  120. <picker mode="region" bindchange="bindRegionChange" value="{{region}}">
  121. <view class="recruit-row-picker">
  122. <block wx:if="{{region.length>1}}">
  123. <text wx:key="index" wx:for="{{region}}" style="margin-right: 8rpx;">{{item}}</text>
  124. </block>
  125. <block wx:else>省、市、区</block>
  126. <van-icon name="arrow-down" />
  127. </view>
  128. </picker>
  129. </view>
  130. <!-- 备注 -->
  131. <view class="recruit-row" style="margin-top: 20rpx;">
  132. <view class="recruit-row-title">
  133. 备注
  134. </view>
  135. <view class="textarea">
  136. <textarea maxlength='-1' value="{{recruitExplain}}" data-name="recruitExplain" bindinput="recruitInput" placeholder-style="color: rgba(0, 0, 0, 0.25);" placeholder='请输入备注'></textarea>
  137. </view>
  138. </view>
  139. <!-- 提交 -->
  140. <view class="recruit-row" style="margin-top: 110rpx;">
  141. <view class="recruit-row-title"></view>
  142. <van-button custom-class='submit-custom-class' bindtap="submitForm">马上提交</van-button>
  143. </view>
  144. </view>
  145. </view>
  146. <!-- 新品推荐 -->
  147. <view class="new-product">
  148. <view>
  149. <view class="new-product-title">
  150. <view></view> 窗帘布新品 <view></view>
  151. </view>
  152. <swiper class="new-product-swiper" circular current='{{newProductIndex1}}' indicator-dots indicator-color='rgba(216,216,216,.58)' indicator-active-color='#57C7D3' bindchange='newProduct1'>
  153. <swiper-item wx:key="index" wx:for="{{newProduct1}}">
  154. <image wx:if="{{item.attinfos[0]}}" src="{{item.attinfos[0].fobsurl}}" mode="aspectFill"></image>
  155. <image wx:else src="/static/annunciate/cover.png" mode="aspectFill"></image>
  156. </swiper-item>
  157. </swiper>
  158. <view class="new-product-name u-line-1"><text wx:if="{{newProduct1[newProductIndex1].fprodname}}">{{newProduct1[newProductIndex1].fprodname}}</text><text wx:if="{{newProduct1[newProductIndex1].fbrand}}">[{{newProduct1[newProductIndex1].fbrand}}]</text></view>
  159. </view>
  160. <view>
  161. <view class="new-product-title">
  162. <view></view> 沙发布新品 <view></view>
  163. </view>
  164. <swiper class="new-product-swiper" circular current='{{newProductIndex2}}' indicator-dots indicator-color='rgba(216,216,216,.58)' indicator-active-color='#57C7D3' bindchange='newProduct2'>
  165. <swiper-item wx:key="index" wx:for="{{newProduct2}}">
  166. <image wx:if="{{item.attinfos[0]}}" src="{{item.attinfos[0].fobsurl}}" mode="aspectFill"></image>
  167. <image wx:else src="/static/annunciate/cover.png" mode="aspectFill"></image>
  168. </swiper-item>
  169. </swiper>
  170. <view class="new-product-name u-line-1"><text wx:if="{{newProduct2[newProductIndex2].fprodname!=null}}">{{newProduct2[newProductIndex2].fprodname}}</text><text wx:if="{{newProduct2[newProductIndex2].fbrand!=null}}">[{{newProduct2[newProductIndex2].fbrand}}]</text></view>
  171. </view>
  172. </view>
  173. <!-- 招商图片 -->
  174. <!-- <view class="attract-investment">
  175. <image src="{{portal_middle_4[0].attinfos[0].fobsurl}}" mode="aspectFill"></image>
  176. </view> -->
  177. <view style="height: 50px;"></view>
  178. <!-- 吸底 -->
  179. <view class="footer">
  180. <van-button custom-class='footer-button' bindtap="toLogin">欢迎登录布万家</van-button>
  181. </view>