1 line
1.5 KiB
Plaintext
1 line
1.5 KiB
Plaintext
<scroll-view scroll-x="true" scroll-left="{{tabsScrollLeft}}" data-event-opts="{{[['scroll',[['scroll',['$event']]]]]}}" bindscroll="__e" class="data-v-2197f1dc"><view class="{{['pull-nav-btns','data-v-2197f1dc',type=='radio'?'search-btns':'']}}" style="{{'width:'+(newWidth)+';'}}" id="tab_list"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><block wx:if="{{type=='radio'}}"><view class="{{['data-v-2197f1dc',currentIndex==index?'radio-btn active':'radio-btn']}}" id="tab_item" data-event-opts="{{[['tap',[['chooseEv',[index,'$0'],[[['list','',index,'id']]]]]]]}}" bindtap="__e"><view class="radio data-v-2197f1dc"></view><text class="data-v-2197f1dc">{{item.name}}</text></view></block></block><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><block wx:if="{{type=='list'&&index<=maxNum&&maxNum<=3}}"><view class="{{['data-v-2197f1dc',currentIndex==index?'btn active':'btn']}}" style="{{'width:'+('220rpx')+';'+('margin:'+('0 25rpx')+';')}}" id="tab_item" data-event-opts="{{[['tap',[['chooseEv',[index,'$0'],[[['list','',index,'id']]]]]]]}}" bindtap="__e">{{item.name}}</view></block></block><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><block wx:if="{{type=='list'&&index<=maxNum&&maxNum>3}}"><view class="{{['data-v-2197f1dc',currentIndex==index?'btn active':'btn']}}" style="{{'width:'+('170rpx')+';'+('margin:'+('0 20rpx')+';')}}" id="tab_item" data-event-opts="{{[['tap',[['chooseEv',[index,'$0'],[[['list','',index,'id']]]]]]]}}" bindtap="__e">{{item.name}}</view></block></block></view></scroll-view> |