index.wxml 2.38 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="{{order.sellerid}}" orderid="{{order.id}}"
                                          bindfoodCardCallback="foodCardCallback"
                                ></foodCard>
                            </view>
                        </block>
                    </view>
                </view>
            </view>
            <view style="height: 110px;width: 100%;"></view>
        </view>
    </scroll-view>
    <view class="white flex-lr bottom-view">
        <view class="share flex-vc">
            <view class="icon">
                <image src="http://qn.colorcun.com/custom/lite-yd-cook/image/share.png"></image>
            </view>
            <view class="text">一起点</view>
        </view>
        <view class="cart flex-ll"  bindtap="dispalyCart">
            <view class="icon">
                <image src="http://qn.colorcun.com/custom/lite-yd-cook/image/cart.png"/>
                <view class="dot" wx:if="{{order.cookbooklist.length>0}}">{{order.cookbooklist.length}}</view>
            </view>
            <view class="text Semibold">¥{{order.price}}</view>
        </view>
        <view class="place flex-vc">选好了</view>
    </view>
</view>

<cookClass id="menu" bind:changeList="changeList"
           cooklist="{{cookbooklist}}" hasListModel="{{hasListModel}}">
</cookClass>
<cart rid="{{options.rid}}" id="cart" order="{{order}}"></cart>