Initial commit
This commit is contained in:
56
miniprogram/custom-tab-bar/index.wxml
Normal file
56
miniprogram/custom-tab-bar/index.wxml
Normal file
@@ -0,0 +1,56 @@
|
||||
<view class="tab-bar">
|
||||
|
||||
<!-- 广场 -->
|
||||
<view class="tab-item {{selected === 0 ? 'active' : ''}}" bindtap="onTab" data-index="0" data-path="/pages/feed/feed">
|
||||
<view class="icon-wrap">
|
||||
<view class="icon-grid">
|
||||
<view class="sq"></view><view class="sq"></view>
|
||||
<view class="sq"></view><view class="sq"></view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="tab-label">广场</text>
|
||||
</view>
|
||||
|
||||
<!-- 附近 -->
|
||||
<view class="tab-item {{selected === 1 ? 'active' : ''}}" bindtap="onTab" data-index="1" data-path="/pages/nearby/nearby">
|
||||
<view class="icon-wrap">
|
||||
<view class="icon-pin">
|
||||
<view class="pin-head"></view>
|
||||
<view class="pin-tail"></view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="tab-label">附近</text>
|
||||
</view>
|
||||
|
||||
<!-- 发布 FAB -->
|
||||
<view class="tab-fab-wrap">
|
||||
<view class="tab-fab" bindtap="onPost">
|
||||
<text class="fab-plus">+</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 汪友 -->
|
||||
<view class="tab-item {{selected === 2 ? 'active' : ''}}" bindtap="onTab" data-index="2" data-path="/pages/friends/friends">
|
||||
<view class="icon-wrap" style="position:relative">
|
||||
<view class="icon-ppl">
|
||||
<view class="ppl-head ppl-head-l"></view>
|
||||
<view class="ppl-head ppl-head-r"></view>
|
||||
<view class="ppl-body"></view>
|
||||
</view>
|
||||
<view wx:if="{{unreadCount > 0}}" class="badge">{{unreadCount > 99 ? '99+' : unreadCount}}</view>
|
||||
</view>
|
||||
<text class="tab-label">汪友</text>
|
||||
</view>
|
||||
|
||||
<!-- 我的 -->
|
||||
<view class="tab-item {{selected === 3 ? 'active' : ''}}" bindtap="onTab" data-index="3" data-path="/pages/profile/profile">
|
||||
<view class="icon-wrap">
|
||||
<view class="icon-user">
|
||||
<view class="user-head"></view>
|
||||
<view class="user-body"></view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="tab-label">我的</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
Reference in New Issue
Block a user