index.wxml 1.9 KB

1
  1. <view class="data-v-2f754cba"><nav-bar vue-id="819668e8-1" title="分类" back="{{false}}" color="white" background="green" class="data-v-2f754cba" bind:__l="__l"></nav-bar><u-sticky vue-id="819668e8-2" bgColor="#fff" class="data-v-2f754cba" bind:__l="__l" vue-slots="{{['default']}}"><u-tabs vue-id="{{('819668e8-3')+','+('819668e8-2')}}" list="{{list1}}" scrollable="{{false}}" class="data-v-2f754cba" bind:__l="__l"></u-tabs></u-sticky><view class="page-body data-v-2f754cba" style="{{('height:'+height+'px')}}"><scroll-view class="nav-left data-v-2f754cba" style="{{('height:'+height+'px')}}" scroll-y="{{true}}" scroll-top="{{scrollLeftTop}}" scroll-with-animation="{{true}}"><block wx:for="{{classifyData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['categoryClickMain',[index]]]]]}}" class="{{['nav-left-item','data-v-2f754cba',index==categoryActive?'active':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></scroll-view><scroll-view class="nav-right data-v-2f754cba" style="{{('height:'+height+'px')}}" scroll-y="{{true}}" scroll-top="{{scrollTop}}" scroll-with-animation="{{true}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e"><block wx:for="{{classifyData}}" wx:for-item="foods" wx:for-index="index" wx:key="index"><view class="box data-v-2f754cba"><view style="margin-bottom:10rpx;font-weight:600;" class="data-v-2f754cba">{{foods.name}}</view><block wx:for="{{foods.foods}}" wx:for-item="item" wx:for-index="i" wx:key="i"><view class="nav-right-item data-v-2f754cba" id="{{i==0?'first':''}}" data-event-opts="{{[['tap',[['cart',['$0'],[[['classifyData','',index],['foods','',i,'name']]]]]]]}}" bindtap="__e"><image src="https://img.tnblog.net/bigclassimg/1net.png" class="data-v-2f754cba"></image><view class="right_item_name data-v-2f754cba">{{item.name}}</view></view></block></view></block></scroll-view></view></view>