index.wxml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!-- 轮播图 -->
  2. <My_BannerSwiper swiperBannerList="{{swiperBannerList}}"></My_BannerSwiper>
  3. <!-- 最新通告 -->
  4. <view class="annunciate">
  5. <!-- 标题 -->
  6. <view class="annunciate_title">
  7. <view class="annunciate_decorate"></view>
  8. <view class="annunciate_text">最新通告</view>
  9. </view>
  10. <!-- 内容 -->
  11. <view class="annunciate_content">
  12. <swiper class="annunciate_content_swiper" autoplay circular indicator-dots indicator-color='rgba(216,216,216,.58)' indicator-active-color='#57C7D3'>
  13. <swiper-item wx:key="index" wx:for="{{annunciateList}}">
  14. <image src="{{item.attinfos[0].fobsurl}}"></image>
  15. </swiper-item>
  16. </swiper>
  17. <view class="annunciate_show">
  18. <view class="annunciate_item" wx:key="index" wx:for="{{annunciateList}}" data-index="{{index}}" bindtap="toAnnunciateDetails">
  19. <view class="annunciate_item_title u-line-1">{{item.ftitle}}</view>
  20. <view class="annunciate_item_count">
  21. <image src="/static/icon-14.png"></image>
  22. 浏览 {{item.freadcount}}
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <!-- 广告位1 -->
  29. <My_BannerSwiper type="advertising" marTop='40' swiperBannerList="{{portal_middle_1}}" />
  30. <!-- 品牌关注榜 -->
  31. <view class="concerns-box">
  32. <view class="concerns-con">
  33. <view class="concerns-title">品牌关注榜</view>
  34. <!-- 分类 -->
  35. <view class="option-box" bindtap="selectOption">
  36. <view class="brand-type type-top {{brandSelect=='0'?'typeavtion':''}}">沙发布</view>
  37. <view class="brand-type type-bot {{brandSelect=='1'?'typeavtion':''}}">窗帘布</view>
  38. <view class="option op-top {{brandSelect=='0'?'opavtion':''}}" data-index="0"></view>
  39. <view class="option op-bot {{brandSelect=='1'?'opavtion':''}}" data-index="1"></view>
  40. </view>
  41. <!-- 轮播图 -->
  42. <swiper class="option-swiper" current='{{brandSelect}}' circular vertical bindchange='selectOption'>
  43. <swiper-item>
  44. <view class="brand-item u-line-1" wx:key="index" wx:for="{{brandList0}}">
  45. <text>{{item.queryrow<10?'0'+item.queryrow:item.queryrow}} </text>{{item.fname}}
  46. </view>
  47. </swiper-item>
  48. <swiper-item>
  49. <view class="brand-item u-line-1" wx:key="index" wx:for="{{brandList1}}">
  50. <text>{{item.queryrow<10?'0'+item.queryrow:item.queryrow}} </text>{{item.fname}}
  51. </view>
  52. </swiper-item>
  53. </swiper>
  54. </view>
  55. <image class="concerns-bg" src="/static/portal/bg.png"></image>
  56. </view>
  57. <!-- 新品推荐 -->
  58. <view class="new-product">
  59. <view>
  60. <view class="new-product-title">
  61. <view></view> 窗帘布新品 <view></view>
  62. </view>
  63. <swiper class="new-product-swiper" autoplay circular current='{{newProductIndex1}}' indicator-dots indicator-color='rgba(216,216,216,.58)' indicator-active-color='#57C7D3' bindchange='newProduct1'>
  64. <swiper-item wx:key="index" wx:for="{{newProduct1}}">
  65. <image src="{{item.attinfos[0].fobsurl}}" mode="aspectFill"></image>
  66. </swiper-item>
  67. </swiper>
  68. <view class="new-product-name u-line-1">{{newProduct1[newProductIndex1].fname}}[{{newProduct1[newProductIndex1].ftype}}]</view>
  69. </view>
  70. <view>
  71. <view class="new-product-title">
  72. <view></view> 沙发布新品 <view></view>
  73. </view>
  74. <swiper class="new-product-swiper" autoplay circular current='{{newProductIndex2}}' indicator-dots indicator-color='rgba(216,216,216,.58)' indicator-active-color='#57C7D3' bindchange='newProduct2'>
  75. <swiper-item wx:key="index" wx:for="{{newProduct2}}">
  76. <image src="{{item.attinfos[0].fobsurl}}" mode="aspectFill"></image>
  77. </swiper-item>
  78. </swiper>
  79. <view class="new-product-name u-line-1">{{newProduct2[newProductIndex2].fname}}[{{newProduct2[newProductIndex2].ftype}}]</view>
  80. </view>
  81. </view>
  82. <!-- 广告位1 -->
  83. <My_BannerSwiper type="advertising" marTop='40' swiperBannerList="{{portal_middle_2}}" />
  84. <!-- 供需 -->
  85. <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">
  86. <van-tab title="全部供需" />
  87. <van-tab wx:key="index" wx:for="{{sadClassify}}" title="{{item.ftype}}" />
  88. </van-tabs>
  89. <!-- 列表展示区 -->
  90. <view class="ann-box" style="margin-left: 44rpx;" wx:key="index" wx:for="{{sadList}}" data-index="{{index}}" catchtap="toDetails">
  91. <view class="ann-img" wx:if="{{item.attinfos[0].fobsurl}}">
  92. <image src="{{item.attinfos[0].fobsurl}}" mode="aspectFill"></image>
  93. </view>
  94. <view class="ann-img" wx:else>
  95. <image wx:if="{{item.ftype=='摄影摄像'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-01.png" mode="aspectFit"></image>
  96. <image wx:elif="{{item.ftype=='产品策划'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-02.png" mode="aspectFit"></image>
  97. <image wx:elif="{{item.ftype=='平面设计'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-03.png" mode="aspectFit"></image>
  98. <image wx:elif="{{item.ftype=='寻找面料'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-04.png" mode="aspectFit"></image>
  99. <image wx:elif="{{item.ftype=='商业培训'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-05.png" mode="aspectFit"></image>
  100. <image wx:elif="{{item.ftype=='寻找主播'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-06.png" mode="aspectFit"></image>
  101. <image wx:elif="{{item.ftype=='面料设计'}}" src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/supplyAndDemand/icon-07.png" mode="aspectFit"></image>
  102. <image wx:else src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/tacitly-approve/MRproduct.png" mode="aspectFit"></image>
  103. </view>
  104. <view class="ann-text">
  105. <view class="ann-text-title u-line-1">[{{item.ftype}}]{{item.ftitle}}</view>
  106. <view class="ann-text-center u-line-2">{{item.fcontent}}</view>
  107. <view class="ann-text-bottom u-line-1" style="margin-top: 22rpx;">
  108. <view class="userMsg">
  109. <view class="img">
  110. <image wx:if="{{item.headportraiturl}}" src="{{item.headportraiturl}}"></image>
  111. <image wx:else src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/userCenter/userImg.png"></image>
  112. </view>
  113. <view class="u-line-1" style="max-width: 160rpx; padding-top: 3rpx;">{{item.createby}}</view>
  114. </view>
  115. <view>{{item.checkdate}}</view>
  116. </view>
  117. </view>
  118. </view>
  119. <van-empty wx:if="{{1>sadList.length}}" description="暂无数据" />
  120. <!-- 展厅照片 -->
  121. <view class="exhibition-hall">
  122. <image src="{{portal_middle_3[0].attinfos[0].fobsurl}}" mode="aspectFill"></image>
  123. </view>
  124. <!-- 招商表单 -->
  125. <view class="annunciate" style="margin-top: 20rpx;">
  126. <!-- 标题 -->
  127. <view class="annunciate_title">
  128. <view class="annunciate_decorate"></view>
  129. <view class="annunciate_text">招商入口</view>
  130. </view>
  131. <!-- 招商表单 -->
  132. <view class="recruit-box">
  133. <!-- 姓名,手机 -->
  134. <view class="recruit-row">
  135. <label for="name" class="recruit-row-title">
  136. 您的姓名
  137. </label>
  138. <view class="recruit-row-input">
  139. <input id='name' placeholder="请输入姓名" value="{{recruitName}}" data-name="recruitName" bindinput="recruitInput" placeholder-class="placeholder-class" type="text" />
  140. </view>
  141. <label for="phone" class="recruit-row-title" style="margin-left: 22rpx;">
  142. 您的手机
  143. </label>
  144. <view class="recruit-row-input">
  145. <input id='phone' placeholder="请输入手机号" value="{{recruitPhone}}" bindblur="phoneNumber" placeholder-class="placeholder-class" type="number" />
  146. </view>
  147. </view>
  148. <!-- 选择地区 -->
  149. <view class="recruit-row" style="margin-top: 20rpx;">
  150. <view class="recruit-row-title">
  151. 您的地址
  152. </view>
  153. <picker mode="region" bindchange="bindRegionChange" value="{{region}}">
  154. <view class="recruit-row-picker">
  155. <block wx:if="{{region.length>1}}">
  156. <text wx:key="index" wx:for="{{region}}" style="margin-right: 8rpx;">{{item}}</text>
  157. </block>
  158. <block wx:else>省、市、区</block>
  159. <van-icon name="arrow-down" />
  160. </view>
  161. </picker>
  162. </view>
  163. <!-- 备注 -->
  164. <view class="recruit-row" style="margin-top: 20rpx;">
  165. <view class="recruit-row-title">
  166. 备注
  167. </view>
  168. <view class="textarea">
  169. <textarea maxlength='-1' value="{{recruitExplain}}" data-name="recruitExplain" bindinput="recruitInput" placeholder-style="color: rgba(0, 0, 0, 0.25);" placeholder='请输入备注'></textarea>
  170. </view>
  171. </view>
  172. <!-- 提交 -->
  173. <view class="recruit-row" style="margin-top: 110rpx;">
  174. <view class="recruit-row-title"></view>
  175. <van-button custom-class='submit-custom-class' bindtap="submitForm">马上提交</van-button>
  176. </view>
  177. </view>
  178. </view>
  179. <!-- 招商图片 -->
  180. <view class="attract-investment">
  181. <image src="{{portal_middle_4[0].attinfos[0].fobsurl}}" mode="aspectFill"></image>
  182. </view>
  183. <view style="height: 50px;"></view>
  184. <!-- 吸底 -->
  185. <view class="footer">
  186. <van-button custom-class='footer-button' bindtap="toLogin">欢迎登录布万家</van-button>
  187. </view>