index.wxml 3.45 KB
<!--pages/reserveNew/index.wxml-->
<nav backgroundColor="#fff" place="{{false}}" class="navhome">
    <view class="seachBox">
        <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
            <view class="picker">
                <view class="area font28r">{{region[2]}}
                    <image src="https://qn.colorcun.com/editIcon.png" mode="" />
                </view>
            </view>
        </picker>
        <view class="seachSeller font24r">
            <image src="https://qn.colorcun.com/seachIcon.png" mode="" /> 输入商户名、地点、菜系
        </view>
    </view>
</nav>
<view class="mian" style="padding-top:{{barHeight}}px;">
    <view class="tabBox" style="top:{{barHeight}}px;">
        <view bindtap="checkTabFun" data-id="{{item.id}}" class="tabItems font28r tabItems{{item.id}} {{activeId == item.id ? 'activeTab':''}}" wx:for="{{tabList}}">
            {{item.title}}
        </view>
    </view>
    <view class="sellerBox">
        <view class="sellerItems" wx:for="{{sellerInfo}}" wx:key="{{item.id}}">
            <view class="sellerImg">
                <image class="sellerimage" src="{{item.seller_image}}" mode="scaleToFill" />
                <image class="collectImg" src="https://qn.colorcun.com/{{item.shoucang == '1'?'selectCollectSellerIcon' : 'collectSellerIcon'}}.png" mode="" />
            </view>
            <view class="info">
                <view class="news">
                    <view class="aboutInfo">
                        <text wx:if="{{item.is_parking == '1'}}" class="park font20r">可停车</text>
                        <text class="info_name font28r">{{item.sellername}}</text>
                    </view>
                    <view class="texts font24r">{{item.juli}}</view>
                </view>
                <view class="texts book font24r">订过 去过 好友订过 我有券</view>
                <view class="news">
                    <view>
                        <text wx:if="{{item.cate}}" class="texts cateText font24r">{{item.cate}}</text>
                        <text class="texts font24r" wx:if="{{item.average && item.average>0}}">¥{{item.average}}</text>
                    </view>
                    <view class="getCoupons font24r">领券</view>
                </view>
            </view>
        </view>
    </view>
</view>
<my-modal id="seachModal" fadeStyle="slideDown" height="68%" modalTop="{{barHeight+41}}px">
    <view slot="modalName" class="titleModal">
        <view class="seachInfo" bindtap="checkSeachFun" data-type="{{item.id}}" wx:for="{{seachList}}" wx:key="{{item.id}}">
            <text class="{{item.id == checkType ? 'checkTitle':''}}">{{item.title}}</text>
            <image src="https://qn.colorcun.com/{{item.id == checkType?'arrowTop':'arrowBottom'}}.png" mode="" />
        </view>
    </view>
    <view slot="modalContent">
        <viw class="title font28r">{{checkType == '1'?'菜系(可多选)':'包间类型(可多选)'}}</viw>
        <view class="dishBox">
            <view class="dish font24r {{item.check?'dishCheck':''}}" bindtap="checkDish" data-id="{{item.id}}" data-check="{{item.check}}" wx:for="{{checkList}}" wx:key="{{item.id}}">
                {{item.name}}
            </view>
        </view>
        <view class="btns">
            <button class="font28r btn reset" bindtap="resetFun">重置</button>
            <button class="font28r btn sure" bindtap="submitFun">确定</button>
        </view>
    </view>
</my-modal>