index.wxml 3.03 KB
<!--cookbook/index.wxml-->
<nav>{{options.seeAll||order.seller.sellername||'提前点菜'}}</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:{{kindHeight-(options.seeAll?0:55)}}px;width:100%;z-index:{{scrollZindex}}; position: fixed;"
            scroll-into-view = "{{toView}}"
            scroll-with-animation
            bindscroll="bindscroll"
    >
        <view style = "padding-left:180rpx;">
            <view class="section" wx:for="{{cookbooklist}}" wx:key="cookbooklist-key">
                <view id="{{'inToView'+item.id}}" class="class_name {{activeId==item.id?'class_name-active11':''}}">
                    <view class="text">{{item.class_name}}</view>
                </view>
                <view class="list-model-masonry" id="{{item.id}}" data-name="{{item.class_name}}">
                    <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}}" seeAll="{{options.seeAll}}"
                                          sellerid="{{order.sellerid}}" orderid="{{order.id}}"
                                          identity="{{options.identity}}"
                                          bindfoodCardCallback="foodCardCallback"
                                ></foodCard>
                            </view>
                        </block>
                    </view>
                </view>
            </view>
            <view style="height: 110rpx;width: 100%;"></view>
        </view>
    </scroll-view>
    <view class="white flex-lr bottom-view" wx:if="{{!options.seeAll}}">
        <button class="share flex-vc button-none" open-type="share">
            <view class="flex-vc">
                <view class="icon">
                    <image src="http://nosqn.colorcun.com/custom/lite-yd-cook/image/share.png"></image>
                </view>
                <view class="text">一起点</view>
            </view>
        </button>
        <view class="cart flex-ll"  bindtap="dispalyCart">
            <view class="icon">
                <image src="http://nosqn.colorcun.com/custom/lite-yd-cook/image/cart-black.png"/>
                <view class="dot" wx:if="{{orderItemCount>0}}">{{orderItemCount}}</view>
            </view>
            <view class="text Semibold">¥{{order.price}}</view>
        </view>
        <userinfo class="place flex-vc" binduserinfo="gotoCart">选好了</userinfo>
    </view>
</view>

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