12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <import src="./public/public.wxml"/>
- <!-- 提示收藏小程序组件 animation="{{animationData}}"-->
- <view class='collectedTips' animation="{{animationData}}" wx:if="{{showShopPopup}}">
- {{collegeTips}}
- </view>
- <scroll-view class="bg-scroll-view" scroll-y>
- <view class="header-search">
- <view bindtap="positioning">
- <text>{{city}}</text>
- <image src="/icon/search/jiantou.png"></image>
- </view>
- <template is="search-view" data="{{...search}}"/>
- </view>
- <!-- 轮播图 -->
- <view class="banner">
- <swiper autoplay="true" circular="true" current="{{currentSwiper}}" bindchange="swiperChange">
- <block wx:for="{{banner}}" wx:key="index">
- <swiper-item>
- <image src="{{host+item.img}}" class="slide-image" data-link="{{item.link}}" bindtap="toWeb"/>
- </swiper-item>
- </block>
- <block wx:if="{{banner.length == 0}}">
- <swiper-item>
- <image src="/icon/ad/banner1.png" class="slide-image"/>
- </swiper-item>
- </block>
- </swiper>
- <view class="dots" wx:if="{{banner.length>1?true:false}}">
- <block wx:for="{{banner}}" wx:key="{{index}}">
- <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
- </block>
- </view>
- </view>
- <!-- 常用菜单 -->
- <view class="menu" style="{{menu.length>5?'':'justify-content:space-around;'}}">
- <block wx:for="{{menu}}" wx:key="index">
- <view class="menu-one" data-ids="{{item.id}}" data-title="{{item.typeName}}" bindtap="menusearch">
- <image src="{{host+item.imgPath}}"></image>
- <text>{{item.typeName}}</text>
- </view>
- </block>
- </view>
- <!-- 便民查询 -->
- <view class="region-title">{{region[0]}}</view>
- <view class="convenient">
- <block wx:for="{{convenience}}" wx:key="index">
- <view class="convenience" bindtap="towxchat" data-id="{{item.id}}">
- <image src="{{item.img}}"></image>
- <text>{{item.name}}</text>
- </view>
- </block>
- </view>
- <!-- 新鲜服务 -->
- <view class="region-title">{{region[1]}}</view>
- <view class="service">
- <block wx:for="{{service}}" wx:key="index">
- <view class="service-one" bindtap="goAdWx" data-id="{{item.id}}">
- <image src="{{item.img}}"></image>
- <view>
- <text>{{item.title}}</text>
- <text>{{item.msg}}</text>
- </view>
- </view>
- </block>
- </view>
- <!-- 常见问题 -->
- <block wx:if="{{question.range.length > 0}}">
- <view class="region-title" style="margin: 40rpx 30rpx 10rpx;">{{region[2]}}</view>
- <template is="question" data="{{...question}}"/>
- </block>
- <view style="width:100%;height:200rpx;"></view>
- </scroll-view>
|