You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.0 KiB

5 months ago
<view><scroll-view class="tab-list" style="{{'background:'+(bgColor)+';'+('font-size:'+(fontSize)+';')}}" scroll-x="{{true}}" scroll-into-view="{{'tab'+(activeIndex-1)}}" scroll-with-animation="{{true}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="tab-item rel" style="{{'width:'+(width)+';'+('height:'+(height)+';')+('line-height:'+(height)+';')+('color:'+(index==activeIndex?activeColor:color)+';')}}" data-index="index" id="{{'tab'+index}}" data-event-opts="{{[['tap',[['handerTabChange',[index]]]]]}}" bindtap="__e"><view class="flex-y-baseline flex-x-center rel"><block wx:if="{{item.$orig.number}}"><view class="rel">{{''+(item.$orig.title||item.$orig)+''}}<block wx:if="{{numberType==1}}"><view class="item-msg c-base abs" style="{{'width:'+(item.$orig.number<10?'30rpx':item.$orig.number<100?'40rpx':'50rpx')+';'+('right:'+(item.$orig.number<10?'-34rpx':item.$orig.number<100?'-44rpx':'-54rpx')+';')}}">{{''+(item.$orig.number<100?item.$orig.number:'99+')+''}}</view></block><block wx:if="{{numberType==2}}"><view class="tab-label c-base abs" style="{{'width:'+(item.$orig.number<10?'24rpx':item.$orig.number<100?'36rpx':'48rpx')+';'+('right:'+(item.$orig.number<10?'-14rpx':item.$orig.number<100?'-26rpx':'-38rpx')+';')}}">{{''+(item.$orig.number<100?item.$orig.number:'99+')+''}}</view></block></view></block><block wx:else><block>{{item.$orig.title||item.$orig}}</block></block><block wx:if="{{item.$orig.is_sign==1}}"><block><view class="tab-item-sanjao abs" style="{{'right:'+(item.g0==3?'-20rpx':'')+';'}}"><view class="up iconfont icon-up-fill rel" style="{{'color:'+(index==activeIndex&&item.$orig.sign==1?activeColor:'#ccc')+';'}}"></view><view class="down iconfont icon-down-fill rel" style="{{'color:'+(index==activeIndex&&item.$orig.sign==0?activeColor:'#ccc')+';'}}"></view></view></block></block></view><block wx:if="{{isLine&&index==activeIndex&&!item.$orig.is_sign}}"><view class="{{['abs','line',lineClass]}}" style="{{'background:'+(activeColor)+';'}}"></view></block></view></block></scroll-view></view>