index.wxml 2.56 KB
<!--cookbook/index.wxml-->
<nav>提前点菜</nav>
<loading wx:if="{{isloading}}">数据加载中</loading>
<view class="{{hasListModel?'page-list flex-ll-top':'page'}}" wx:if="{{!isloading}}">
    <!--第四部分  原始菜无图或有图展示-->
    <scroll-view
            scroll-y class = "partfour list-model"
            style = "height:{{totalHeight}}px;width:100%;z-index:{{scrollZindex}}; position: fixed;"
            scroll-into-view = "{{toView}}"
            scroll-with-animation
    >
        <view style = "padding-left:180rpx;">
            <view class="section" wx:for="{{cookbooklist}}" wx:key="cookbooklist-key">
                <view id="{{'inToView'+item.id}}"></view>
                <view class="list-model-masonry" >
                    <view class="list-model-column">
                        <block wx:for="{{item.cookbooklist[0]}}" wx:key="{{item.id}}" wx:for-index="itemIndex" >
                            <view class="item">
                                <foodCard item="{{item}}"
                                          sellerid="{{sellerid}}" orderid="{{orderid}}"
                                          fromSoucre="{{fromSoucre}}" request_uri="{{request_uri}}"
                                          bindfoodCardCallback="foodCardCallback"
                                          hasListModel="{{hasListModel}}"
                                ></foodCard>
                            </view>
                        </block>
                    </view>
                </view>
            </view>
            <view style="height: 80px;width: 100%;"></view>
        </view>
    </scroll-view>
    <view class="white flex-lr" style="position:fixed;bottom:0px;width:100%;padding:5px 0;z-index:2000;height:58px;">

        <view class="body-view">

        </view>
        <view class="shopping-total flex-vc list-layout-buttom-opt">

            <image src="http://qn.colorcun.com/custom/lite/image/cook-list-gwc.png" class="icon" />
            <view style="color:#fff;font-size:24rpx;margin-top:-2px;text-align:center;" class="smooth">下单</view>
            <block wx:if="{{countTotal>0}}">
                <view class="show-num fwhite flex-cc smooth">{{countTotal}}</view>
            </block>
            <button bindgetuserinfo="bindChooseOk" open-type="getUserInfo" class="shop-button"></button>
            <bubble id="bubble"></bubble>
        </view>

        <!--只有点菜后才显示点好了按钮-->
    </view>
</view>

<cookClass id="menu" bind:changeList="changeList"
           cooklist="{{cookbooklist}}" hasListModel="{{hasListModel}}">
</cookClass>