1 |
- <view><scroll-view class="floor-list" style="height:100vh;" scroll-top="{{scrollTop}}" scroll-y="true" refresher-enabled="true" data-event-opts="{{[['scroll',[['scroll',['$event']]]],['scrolltoupper',[['upper',['$event']]]],['scrolltolower',[['lower',['$event']]]]]}}" bindscroll="__e" bindscrolltoupper="__e" bindscrolltolower="__e"><view style="padding:40rpx 18rpx;"><view style="width:95%;margin:0 auto;"><view data-event-opts="{{[['tap',[['choseType',[1]]]]]}}" class="{{['typeItem',tabIndex==1?'active':'']}}" bindtap="__e">全部</view><view data-event-opts="{{[['tap',[['choseType',[2]]]]]}}" class="typeItem" bindtap="__e"><view class="iconClass"><view class="{{[tabIndex==2?'active':'']}}">上新</view><view style="display:flex;flex-direction:column;"><view data-event-opts="{{[['tap',[['changeisclick',[1]]]]]}}" catchtap="__e"><van-icon class="{{[istopclick==1?'active':'']}}" vue-id="3e2fe6c7-1" size="8px" name="arrow-up" data-com-type="wx" bind:__l="__l"></van-icon></view><view data-event-opts="{{[['tap',[['changeisclick',[2]]]]]}}" catchtap="__e"><van-icon class="{{[istopclick==2?'active':'']}}" vue-id="3e2fe6c7-2" size="8px" name="arrow-down" data-com-type="wx" bind:__l="__l"></van-icon></view></view></view></view><view data-event-opts="{{[['tap',[['choseType',[3]]]]]}}" class="typeItem" bindtap="__e"><view class="iconClass"><view class="{{[tabIndex==3?'active':'']}}">价格</view><view style="display:flex;flex-direction:column;"><view data-event-opts="{{[['tap',[['changeisclick',[3]]]]]}}" catchtap="__e"><van-icon class="{{[istopclick==3?'active':'']}}" vue-id="3e2fe6c7-3" size="8px" name="arrow-up" data-com-type="wx" bind:__l="__l"></van-icon></view><view data-event-opts="{{[['tap',[['changeisclick',[4]]]]]}}" catchtap="__e"><van-icon class="{{[istopclick==4?'active':'']}}" vue-id="3e2fe6c7-4" size="8px" name="arrow-down" data-com-type="wx" bind:__l="__l"></van-icon></view></view></view></view><view data-event-opts="{{[['tap',[['choseType',[4]]]]]}}" class="typeItem" bindtap="__e"><view class="{{[tabIndex==4?'active':'']}}">分类</view></view></view></view><block wx:if="{{tabIndex==4}}"><view style="padding:10rpx 12rpx;display:flex;flex-wrap:wrap;"><block wx:for="{{category_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['confirm',['$0'],[[['category_list','',index]]]]]]]}}" style="flex:1;width:20%;min-width:20%;max-width:20%;margin:24rpx 0 25rpx 4%;" catchtap="__e">{{''+item.gc_name+''}}</view></block></view></block><shop-list vue-id="3e2fe6c7-5" productList="{{goods_list}}" bind:__l="__l"></shop-list></scroll-view></view>
|