index.wxml 3.29 KB
<!--pages/reservr/index.wxml-->
<view class="pages">
    <view class="flex-vc map">
        <map id="map" scale="{{map.scale}}"
             longitude="{{map.longitude}}" latitude="{{map.latitude}}"
             markers="{{markers}}" polygons="{{polygons}}"
             bindmarkertap="markertap"
             bindregionchange="regionchange"
             bindupdated="mapUpdated"
             show-location
             enable-3D="{{false}}"
             enable-zoom
             enable-scroll
             enable-rotate
             show-compass
             subkey="SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ"
             style="width: 100%; height: {{map.height}}px;"></map>
        <formids url="/pages/reserve/search" style="position: fixed;">
            <cover-view
                    class="flex-vc"
                    style="position:fixed;top:{{statusBarHeight}}px;left:0;height: {{titleBarHeight}}px; line-height: {{titleBarHeight}}px;">
                <cover-view class="searchAddr flex-ll">
                    <cover-image class="icon" src="http://qn.colorcun.com/custom/lite-online/image/search26.png"></cover-image>
                    <cover-view class="title">{{hasSuggestion?suggestion.title:'输入地点、餐厅、商圈'}}</cover-view>
                </cover-view>
            </cover-view>
        </formids>
    </view>
    <view class="transverse-view">
        <view class="transverse-search">
            <picker
                    mode="multiSelector"
                    bindchange="bindMultiPickerChange"
                    bindcolumnchange="bindMultiPickerColumnChange"
                    value="{{multiIndex}}"
                    range="{{multiArray}}"
            >
                <view class="picker flex-lr" style="width: 100%">
                    <view class="input">
                        <block wx:if="{{multiIndex[0]==0 && multiIndex[1]==0}}">贵宾几位,吃点什么?</block>
                        <block wx:else="">{{multiArray[0][multiIndex[0]]}},{{multiArray[1][multiIndex[1]]}}</block>
                    </view>
                    <view class="more"></view>
                </view>
            </picker>
        </view>
        <view class="transverse-list">
            <swiper
                    indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"
                    interval="2000" duration="500"
                    previous-margin="{{20}}px" next-margin="{{20}}px"
                    current="{{current}}" bindchange="bindtransition">
                <block wx:for="{{sellers}}" wx:key="sellers.key">
                    <swiper-item bindtap="gotoDetail" data-sid="{{item.id}}">
                        <view class="seller" id="seller-{{item.id}}">
                            <sb-tr seller="{{item}}" hasActivity="{{true}}"></sb-tr>
                        </view>
                    </swiper-item>
                </block>
            </swiper>
        </view>
    </view>
</view>
<cover-view bindtap="moveToLocation" class="moveToLocation">
    <cover-image src="http://qn.colorcun.com/custom/lite-yd/image/location.png"></cover-image>
</cover-view>
<getpos bindpos="onpos" id="getpos"></getpos>
<seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box>
<cover-view class="tab-patch"></cover-view>
<a2l bindshow="a2lshow" bindhide="a2lhide"></a2l>