indexList.wxml 4.01 KB
<!--pages/reserve/indexList.wxml-->
<nav>周到安排</nav>
<view class="view content">
    <view class="searchAddrView searchKeyword" bindtap="gotoSearch">
        <view class="searchAddr flex-ll">
            <image class="icon" src="http://nosqn.colorcun.com/custom/lite-online/image/search26.png"></image>
            <input style="width: 100%;" placeholder="{{search_placeholder}}"
                   type="text" disabled placeholder-class="placeholder"
                   value="{{keyword}}"/>
            <view class="clean" catchtap="moveToLocation" wx:if="{{keyword && hasSuggestion}}"></view>
        </view>
    </view>
    <filter-group height="{{height}}"
                  id="filter-group"
                  bindevent="filterGroupEvent"
                  disabled="{{(sellers.length<1 && !hasFilterData) || hasLoading}}"></filter-group>
    <block wx:if="{{hasLoading}}">
        <view class="view flex flex-direction justify-center align-center" wx:if="{{hasLoading}}">
            <image class="view" src="http://nosqn.colorcun.com/2.0/timg.gif" style="width: 40rpx;height: 40rpx;margin-top: 260rpx;"></image>
            <view class="view bg-white text-sm margin-top">包间查找中,请稍后…</view>
        </view>
    </block>
    <block wx:elif="{{sellers.length<1}}">
        <view class="view flex flex-direction justify-center align-center empty-box margin-sm" wx:if="{{!hasSellers}}">
            <view class="view text-lg">该地区没有可提供服务的餐厅</view>
            <view class="view" style="margin-top: 16rpx;">您可以切换到其他城市看看</view>
            <view style="margin-top: 80rpx;"
                  bindtap="setLoacl" data-val="39.684670,118.176300"
                  class="cu-btn round view text-def text-white bg-blue-blue">去唐山市</view>
        </view>
        <view class="view flex flex-direction justify-center align-center empty-box margin-sm" wx:elif="{{hasFilterData}}">
            <view class="view text-lg">未找到符合要求的餐厅</view>
            <view class="view" style="margin-top: 16rpx;">修改或减少条件,获得更多餐厅</view>
            <chatbot>
                <view style="margin-top: 80rpx;"
                      bindtap="setLoacl" data-val="39.684670,118.176300"
                      class="cu-btn round view text-def text-white bg-blue-blue">人工抢订</view>
            </chatbot>
        </view>
        <view class="view flex flex-direction justify-center align-center empty-box empty-box-move margin-sm"
              wx:else="">
            <view class="view flex text-df tips align-center text-orange">
                <view class="view icon"></view>
                <view class="view">往任意方向拖动地图,可查找不同范围的餐厅</view>
            </view>
            <view class="view text-lg">地图显示范围无餐厅</view>
            <view style="margin-top: 80rpx;"
                  bindtap="reduceMapScale" data-val="39.684670,118.176300"
                  class="cu-btn round view text-def text-white bg-blue-blue">扩大搜索范围</view>
        </view>
    </block>
    <block wx:else="">
        <scroll-view class="view scroll-view" scroll-y="true"
                     scroll-into-view="seller-{{scrollSellerID}}"
                     scroll-with-animation
                     bindscroll="scrollEvent"
                     style="width:100%;height: calc(100vh - 150px);">
            <block wx:for="{{sellers}}" wx:key="sellers" >
                <navigator url="/pages/reserve/detail?id={{item.id}}" hover-class="navigator-hover">
                    <seller-card class="seller-card" id="seller-{{item.id}}"
                                 activeSellerID="{{activeSellerID}}"
                                 seller="{{item}}" bindevent="sellerCardEvent" ></seller-card>
                </navigator>
            </block>
            <view class="view" style="height: 50rpx;"></view>
        </scroll-view>
    </block>
</view>
<getpos bindpos="onpos" id="getpos" hasAllowLoading="{{false}}"></getpos>
<as-phone id="as"></as-phone>