Redesign mini program navigation and add back controls
ci-cd / verify (push) Successful in 4s
ci-cd / deploy (push) Skipped

This commit is contained in:
2026-10-04 09:48:12 +08:00
parent 87dfc4f335
commit 8a3036f0db
17 changed files with 256 additions and 48 deletions
+27 -3
View File
@@ -2,11 +2,35 @@
<view
wx:for="{{tabs}}"
wx:key="path"
class="item {{current===item.path?'active':''}} {{item.label==='遛狗'?'walk':''}}"
class="item {{current===item.path?'active':''}} {{item.key==='walk'?'walk':''}}"
data-path="{{item.path}}"
bindtap="go"
aria-role="button"
aria-label="{{item.label}}"
>
<view class="icon">{{item.icon}}</view>
<text>{{item.label}}</text>
<view wx:if="{{item.key==='walk'}}" class="walk-bubble">
<view class="paw">
<view class="toe toe-one"></view>
<view class="toe toe-two"></view>
<view class="toe toe-three"></view>
<view class="toe toe-four"></view>
<view class="pad"></view>
</view>
</view>
<view wx:else class="icon-wrap">
<view wx:if="{{item.key==='home'}}" class="home-icon">
<view class="home-roof"></view>
<view class="home-body"></view>
<view class="home-door"></view>
</view>
<view wx:elif="{{item.key==='meetups'}}" class="friends-icon">
<view class="friend friend-left"></view>
<view class="friend friend-right"></view>
</view>
<view wx:elif="{{item.key==='tasks'}}" class="task-icon"><view class="task-tick"></view></view>
<image wx:else class="pet-icon" src="/assets/logo-corgi-v2.png" mode="aspectFill" />
</view>
<text class="label">{{item.label}}</text>
<view wx:if="{{current===item.path && item.key!=='walk'}}" class="active-dot"></view>
</view>
</view>