templates.wxml
1.1 KB
<template name="tabBar">
<view class='tabbar_box'>
<view class='tabbar_item' data-tindex='0' bindtap='service'>
<view class="iconfont icon-zonghe {{tabcurrent==0?'tab_active':''}}"></view>
<view class="tabbar_title {{tabcurrent==0?'tab_active':''}}">服务</view>
</view>
<view class='tabbar_item' data-tindex='1' bindtap='consult'>
<view class="iconfont icon-pinglun {{tabcurrent==1?'tab_active':''}}"></view>
<view class="tabbar_title {{tabcurrent==1?'tab_active':''}}">资讯</view>
</view>
<view class='release_box' data-tindex='2' bindtap='release'>
<view class='iconfont icon-xiangji'></view>
</view>
<view class='tabbar_item' data-tindex='3' bindtap='wish'>
<view class="iconfont icon-xiangqu {{tabcurrent==3?'tab_active':''}}"></view>
<view class="tabbar_title {{tabcurrent==3?'tab_active':''}}">心愿</view>
</view>
<view class='tabbar_item' data-tindex='4' bindtap='my'>
<view class="iconfont icon-ren {{tabcurrent==4?'tab_active':''}}"></view>
<view class="tabbar_title {{tabcurrent==4?'tab_active':''}}">我的</view>
</view>
</view>
</template>