|
|
<!--page/subPackage/pages/zeroSell/components/tabs.wxml-->
|
|
|
<form bindsubmit='submitFormId' report-submit='true'>
|
|
|
<view class="tabs tabs-class">
|
|
|
<block wx:for="{{tabs}}" wx:key="{{index}}">
|
|
|
<block wx:if="{{item.active}}">
|
|
|
<button form-type="submit" class="tab active" data-index="{{index}}" bindtap="_onTap">{{item.name}}</button>
|
|
|
</block>
|
|
|
|
|
|
<view class="tabs tabs-class">
|
|
|
<block wx:for="{{tabs}}" wx:key="{{index}}">
|
|
|
<block wx:if="{{item.active}}">
|
|
|
<view class="tab active" data-index="{{index}}" bindtap="_onTap">{{item.name}}</view>
|
|
|
<block wx:else>
|
|
|
<button form-type="submit" class="tab" data-index="{{index}}" bindtap="_onTap">{{item.name}}</button>
|
|
|
</block>
|
|
|
</block>
|
|
|
|
|
|
<block wx:else>
|
|
|
<view class="tab" data-index="{{index}}" bindtap="_onTap">{{item.name}}</view>
|
|
|
</block>
|
|
|
</block>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</form>
|
|
|
<slot></slot> |
|
|
\ No newline at end of file |
...
|
...
|
|