list.wxml 2.3 KB

1
  1. <view class="data-v-35a5eb88"><navbar bind:input="__e" vue-id="7f16836c-1" title-color="#ffffff" background="#c30d24" iSimmersive="{{false}}" placeholder="{{true}}" title="商品列表" value="{{screenHeight}}" data-event-opts="{{[['^input',[['__set_model',['','screenHeight','$event',[]]]]]]}}" class="data-v-35a5eb88" bind:__l="__l"></navbar><view class="navbar data-v-35a5eb88"><view data-event-opts="{{[['tap',[['tabClick',[0]]]]]}}" class="{{['nav-item','data-v-35a5eb88',(filterIndex===0)?'current':'']}}" bindtap="__e">综合排序</view><view data-event-opts="{{[['tap',[['tabClick',[1]]]]]}}" class="{{['nav-item','data-v-35a5eb88',(filterIndex===1)?'current':'']}}" bindtap="__e">销量优先</view><view data-event-opts="{{[['tap',[['tabClick',[2]]]]]}}" class="{{['nav-item','data-v-35a5eb88',(filterIndex===2)?'current':'']}}" bindtap="__e"><view class="data-v-35a5eb88">价格</view><view class="arrow-box data-v-35a5eb88"><text class="{{['icon','iconfont','icon-arrow-up','data-v-35a5eb88',(priceOrder===1&&filterIndex===2)?'active':'',(priceOrder===1&&filterIndex===2)?'icon-arrow-up-active':'']}}"></text><text class="{{['icon','iconfont','icon-arrow-down','data-v-35a5eb88',(priceOrder===2&&filterIndex===2)?'active':'',(priceOrder===2&&filterIndex===2)?'icon-arrow-down-active':'']}}"></text></view></view></view><view style="height:100rpx;background-color:#b91922;" class="data-v-35a5eb88"></view><mescroll-body vue-id="7f16836c-2" height="{{screenHeight-50+'px'}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" class="data-v-35a5eb88 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="goods-list-box data-v-35a5eb88"><block wx:for="{{result}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['go',['$0','$1'],['keywords',[['result','',index,'id']]]]]]]}}" class="goods-list-item-box data-v-35a5eb88" bindtap="__e"><view class="goods-list-item-wrap data-v-35a5eb88"><view class="data-v-35a5eb88"><image src="{{item.photo}}" class="data-v-35a5eb88"></image></view><view class="data-v-35a5eb88">{{item.title}}</view><view class="data-v-35a5eb88">{{"¥"+item.price}}</view></view></view></block></view></mescroll-body></view>