indexList.wxml 4.18 KB
<!--pages/reserve/indexList.wxml-->
<nav>周到安排</nav>
<view class="header">
    <!--
    <view class="searchAddrView" bindtap="dispalySearchHow">
        <view class="searchAddr flex-ll">
            <image class="icon" src="http://nosqn.colorcun.com/reserve/images/find-black.png"></image>
            <input style="width: 100%;" placeholder="{{placeholder}}"
                   type="text" disabled
                   value="{{keyword}}"/>
        </view>
    </view>
    -->
    <view class="transverse-search flex-ll {{hasDisabled?'disabled':''}}">
        <view
                bindtap="caixiShow"
                class="tags {{multiIndex[0]>0?'active':''}}"
        >
            <view class="picker flex-lr">
                <view class="input">
                    <block wx:if="{{multiIndex[0]==0}}">菜系</block>
                    <block wx:else="">{{multiArray[0][multiIndex[0]]}}</block>
                </view>
                <view class="more"></view>
            </view>
        </view>
        <block wx:for="{{tags}}" wx:key="tags.key">
            <view class="tags {{item.active?'active':''}}"
                  bindtap="tagsChange"
                  data-id="{{item.id}}">{{item.name}}</view>
        </block>
    </view>
</view>
<view class="pages">
    <view class="flex-vc empty" wx:if="{{markers.length<1}}">
        <block wx:if="{{!hasFirstShow}}">
            <image src="http://nosqn.colorcun.com/custom/lite-online/image/follow-empty.png"></image>
            <block wx:if="{{hasDisabled}}">
                <view>该地区没有可供预订的餐厅,努力开通中</view>
            </block>
            <block wx:else="">
                <view class="empry-info1">未找到符合要求的餐厅</view>
                <view class="empry-info2">修改或减少条件,获取更多餐厅</view>
            </block>
            <button class="button-none info-button"
                    open-type="contact">
                人工帮订
            </button>
        </block>
    </view>
    <block wx:else="">
        <view class="follow" >
            <view class="seller" wx:for="{{markers}}" wx:key="sellers.key"
                  bindtap="gotoDetail" data-sid="{{item.id}}">
                <sb-tr seller="{{item}}"
                       hasActivityTags="{{false}}"
                       hasActivityShort="{{true}}"
                       hasBrand="true" hasActivityTese="true"
                       hasSlogan="{{false}}"
                       hasSuggestion="{{hasSuggestion}}"
                       sellerStyle="noborder noshadow noradius"></sb-tr>
            </view>
        </view>
        <hr class="flex-vc nomore" wx:if="{{!hasMore}}" bgColor="#ffffff">我是有底线的</hr>
    </block>
</view>
<caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}"
       bindactive="caixiActive" id="caixi"
></caixi>
<search-how id="search-how" findSellerData="{{findSellerData}}" bindevent="howEvent"></search-how>
<block wx:if="{{rsl.length>0}}">
    <view class="transverse-flxed">
        <view class="line-push">为你推荐</view>
        <view class="transverse-list">
            <swiper
                    indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"
                    interval="2000" duration="500"
                    previous-margin="{{10}}px" next-margin="{{10}}px" style="height: 330rpx;"
                    current="{{current}}" bindchange="bindtransition" bindanimationfinish="bindtransition">
                <block wx:for="{{rsl}}" wx:key="rsl.key">
                    <swiper-item bindtap="gotoSellerDetail" id="{{item.id}}">
                        <view class="seller" id="seller-{{item.id}}">
                            <sb-tr seller="{{item}}"
                                   hasActivityTags="{{false}}"
                                   hasActivityShort="{{true}}"
                                   hasBrand="true" hasActivityTese="true"
                                   hasSlogan="{{false}}"></sb-tr>
                        </view>
                    </swiper-item>
                </block>
            </swiper>
        </view>
    </view>
</block>
<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>