index.wxml 3 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="searchAddr flex-ll" style="top: {{searchAddrTop}}rpx;">
                <cover-image class="icon" src="http://qn.colorcun.com/custom/lite-online/image/search.png"></cover-image>
                <cover-view class="title">{{hasSuggestion?suggestion.title:'请输入位置'}}</cover-view>
            </cover-view>
        </formids>
    </view>
    <view class="transverse-view">
        <cover-view class="transverse-view-top"></cover-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">
            <scroll-view
                    scroll-x
                    class="scroll-view_H"
                    scroll-into-view="{{scrollIntoView}}"
                    bindscroll="bindscroll"
            >
                <view class="flex-ll">
                    <view class="seller" wx:for="{{sellers}}" wx:key="{{sellers.key}}" id="seller-{{item.id}}">
                        <sb-tr seller="{{item}}"></sb-tr>
                    </view>
                    <view wx:if="{{sellers.length>1}}" style="min-width: 2rpx;min-height: 40rpx;"> </view>
                </view>

            </scroll-view>
        </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>
<showModal id="showModal" confirmText="去授权" bindshowModal="showModal"></showModal>
<seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box>
<cover-view class="tab-patch"></cover-view>