1 line
1.5 KiB
Plaintext
1 line
1.5 KiB
Plaintext
<view class="project"><view class="project-tabs"><scroll-view class="tab-scroll" scroll-x="{{true}}" show-scrollbar="{{false}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" catchtouchmove="__e"><view class="tab-container"><view class="tab-card"><text data-event-opts="{{[['tap',[['clickTap',[1]]]]]}}" class="{{['tab-text',(activeId==1)?'active':'']}}" bindtap="__e">热销</text><block wx:if="{{activeId==1}}"><view class="tab-active-indicator"></view></block></view><view class="tab-card"><text data-event-opts="{{[['tap',[['clickTap',[2]]]]]}}" class="{{['tab-text',(activeId==2)?'active':'']}}" bindtap="__e">价格</text><image class="tab-card-price-img" src="{{priceList[priceIndex].src}}" mode="aspectFill"></image><block wx:if="{{activeId==2}}"><view class="tab-active-indicator"></view></block></view><view class="tab-card"><text data-event-opts="{{[['tap',[['clickTap',[3]]]]]}}" class="{{['tab-text',(showPopup||popId)?'active':'']}}" bindtap="__e">分类</text></view></view></scroll-view><view class="{{['time-filter-popup',(showPopup)?'show':'']}}"><view class="time-filter-popup-tabs"><block wx:for="{{tabsPopList}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['clickPopTap',['$0'],[[['tabsPopList','id',item.id]]]]]]]}}" class="{{['time-filter-popup-tab',(item.id==popId)?'active':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></view></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{[(showPopup)?'popMsk':'']}}" bindtap="__e"></view></view> |