0.0.0
This commit is contained in:
21
miniprogram/custom-tab-bar/index.wxml
Normal file
21
miniprogram/custom-tab-bar/index.wxml
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- 自定义 tabBar:左[记录] 中[遛狗FAB] 右[我的] -->
|
||||
<view class="tabbar">
|
||||
<view class="tab {{selected===0?'active':''}}" data-index="0" data-path="/pages/records/records" bindtap="switchTab">
|
||||
<view class="tab-ico">▤</view>
|
||||
<text class="tab-txt">记录</text>
|
||||
</view>
|
||||
|
||||
<view class="tab-center">
|
||||
<view class="fab fab-{{walkState}}" bindtap="onCenterTap">
|
||||
<text class="fab-ico">{{walkState==='paused' ? '❚❚' : '🐾'}}</text>
|
||||
</view>
|
||||
<text class="tab-txt center-txt-{{walkState}}">
|
||||
{{walkState==='walking' ? '遛狗中' : walkState==='paused' ? '已暂停' : '遛狗'}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="tab {{selected===1?'active':''}}" data-index="1" data-path="/pages/home/home" bindtap="switchTab">
|
||||
<view class="tab-ico">◉</view>
|
||||
<text class="tab-txt">我的</text>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user