list.wxml 2.5 KB
<view><u-sticky vue-id="8e0fffdc-1" bgColor="#fff" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('8e0fffdc-2')+','+('8e0fffdc-1')}}" placeholder="{{true}}" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search bind:input="__e" vue-id="{{('8e0fffdc-3')+','+('8e0fffdc-2')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:__l="__l"></u-search></view></u-navbar><u-tabs vue-id="{{('8e0fffdc-4')+','+('8e0fffdc-1')}}" list="{{list1}}" keyName="type_name" lineWidth="{{40}}" lineColor="#6E16FF" inactiveStyle="{{inactiveStyle}}" activeStyle="{{activeStyle}}" data-event-opts="{{[['^click',[['toggleTabsHandler']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['right']}}"><view style="padding-left:4px;" slot="right" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view class="rightBox"><image style="width:32rpx;height:32rpx;margin-right:18rpx;" src="/static/toggle.png" mode="scaleToFill"></image></view></view></u-tabs></u-sticky><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block><block wx:if="{{list2.length}}"><view class="mainBox"><custom-waterfalls-flow vue-id="8e0fffdc-5" value="{{list2}}" seat="{{2}}" data-event-opts="{{[['^imageClick',[['toDetailHandler']]]]}}" bind:imageClick="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list2}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="item" slot="slot{{index}}"><view class="title flexC">{{item.title}}</view><view class="flexJ"><view class="flexA headerBox"><image src="{{item.user.avatar}}" mode="scaleToFill"></image><view>{{item.user.user_name}}</view></view><view class="flexA"><u-icon vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" name="heart" bind:__l="__l"></u-icon><view class="numText">{{item.id}}</view></view></view></view></block></custom-waterfalls-flow></view></block><block wx:if="{{searchState==0}}"><view style="margin-top:300rpx;"><u-empty vue-id="8e0fffdc-7" bind:__l="__l"></u-empty></view></block><view data-event-opts="{{[['tap',[['toIncrItemHandler',['$event']]]]]}}" class="incrBox flexC" bindtap="__e"><image src="/static/add.png" mode="scaleToFill"></image></view></view>