WechatOwnerService/pages/index/index.wxml
2019-11-17 10:26:53 +08:00

86 lines
2.6 KiB
Plaintext

<import src = "../common/sort_list.wxml"/>
<scroll-view bindscrolltolower="lower"
class="scroll-restaurants-list"
scroll-y="true"
style="height:100%">
<view class="heard">
<navigator url="/pages/location/location">
<view class="heard-location">
<image src="/images/location.png"
class="heard-location-icon"/>
<text class="heard-location-text">{{location}}</text>
</view>
</navigator>
<view class="heard-search">
<image src="/images/search.png" class="heard-search-icon"/>
搜索小区
</view>
</view>
<swiper class="categoryList" indicator-dots="true"
indicator-color="rgba(228,228,228,1)"
indicator-active-color="#FECA49">
<block wx:for="{{categoryList}}" wx:key="">
<swiper-item>
<block wx:for="{{item}}" wx:key="">
<view class="category-info">
<image src="{{item.src}}"
class="category-image"></image>
<view class="category-text">{{item.name}}</view>
</view>
</block>
</swiper-item>
</block>
</swiper>
<swiper class="ad-swiper" indicator-dots="true"
indicator-color="rgba(228,228,228,1)"
indicator-active-color="#FECA49"
autoplay='true'
interval='5000'
duration='1000'
circular='true'
>
<block wx:for="{{ad}}" wx:for-index="index">
<swiper-item>
<image src="{{item.imageUrl}}"></image>
</swiper-item>
</block>
</swiper>
<view class="header-title">最新动态</view>
<view class="restaurantsList">
<block wx:for="{{restaurant}}" wx:key="">
<navigator url="/pages/menu/menu">
<view class="restaurants-list">
<view class="restaurants-info-image">
<image src="{{item.src}}" class="restaurants-image"/>
</view>
<view class="restaurants-info">
<view class="restaurants-info-name">{{item.name}}</view>
<view class="restaurants-info-rating">
<view
class="restaurants-info-rating-stars">★ ★ ★ ★</view>
<view
class="restaurants-info-rating-sales">月售 {{item.sales}}单</view>
</view>
<view class="restaurants-info-price">
起送 {{item.initial_price}}¥ | 配送 {{item.distribution_price}}¥
</view>
</view>
<view class="restaurants-distribution">
<view
class="restaurants-distribution-distance">
{{item.distance}}
</view>
<view
class="restaurants-distribution-time">
{{item.time}} 分钟
</view>
</view>
</view>
</navigator>
</block>
</view>
</scroll-view>