index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <import src="./public/public.wxml"/>
  2. <!-- 提示收藏小程序组件 animation="{{animationData}}"-->
  3. <view class='collectedTips' animation="{{animationData}}" wx:if="{{showShopPopup}}">
  4. {{collegeTips}}
  5. </view>
  6. <scroll-view class="bg-scroll-view" scroll-y>
  7. <view class="header-search">
  8. <view bindtap="positioning">
  9. <text>{{city}}</text>
  10. <image src="/icon/search/jiantou.png"></image>
  11. </view>
  12. <template is="search-view" data="{{...search}}"/>
  13. </view>
  14. <!-- 轮播图 -->
  15. <view class="banner">
  16. <swiper autoplay="true" circular="true" current="{{currentSwiper}}" bindchange="swiperChange">
  17. <block wx:for="{{banner}}" wx:key="index">
  18. <swiper-item>
  19. <image src="{{host+item.img}}" class="slide-image" data-link="{{item.link}}" bindtap="toWeb"/>
  20. </swiper-item>
  21. </block>
  22. <block wx:if="{{banner.length == 0}}">
  23. <swiper-item>
  24. <image src="/icon/ad/banner1.png" class="slide-image"/>
  25. </swiper-item>
  26. </block>
  27. </swiper>
  28. <view class="dots" wx:if="{{banner.length>1?true:false}}">
  29. <block wx:for="{{banner}}" wx:key="{{index}}">
  30. <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
  31. </block>
  32. </view>
  33. </view>
  34. <!-- 常用菜单 -->
  35. <view class="menu" style="{{menu.length>5?'':'justify-content:space-around;'}}">
  36. <block wx:for="{{menu}}" wx:key="index">
  37. <view class="menu-one" data-ids="{{item.id}}" data-title="{{item.typeName}}" bindtap="menusearch">
  38. <image src="{{host+item.imgPath}}"></image>
  39. <text>{{item.typeName}}</text>
  40. </view>
  41. </block>
  42. </view>
  43. <!-- 便民查询 -->
  44. <view class="region-title">{{region[0]}}</view>
  45. <view class="convenient">
  46. <block wx:for="{{convenience}}" wx:key="index">
  47. <view class="convenience" bindtap="towxchat" data-id="{{item.id}}">
  48. <image src="{{item.img}}"></image>
  49. <text>{{item.name}}</text>
  50. </view>
  51. </block>
  52. </view>
  53. <!-- 新鲜服务 -->
  54. <view class="region-title">{{region[1]}}</view>
  55. <view class="service">
  56. <block wx:for="{{service}}" wx:key="index">
  57. <view class="service-one" bindtap="goAdWx" data-id="{{item.id}}">
  58. <image src="{{item.img}}"></image>
  59. <view>
  60. <text>{{item.title}}</text>
  61. <text>{{item.msg}}</text>
  62. </view>
  63. </view>
  64. </block>
  65. </view>
  66. <!-- 常见问题 -->
  67. <block wx:if="{{question.range.length > 0}}">
  68. <view class="region-title" style="margin: 40rpx 30rpx 10rpx;">{{region[2]}}</view>
  69. <template is="question" data="{{...question}}"/>
  70. </block>
  71. <view style="width:100%;height:200rpx;"></view>
  72. </scroll-view>