feat: rebuild pet app and backend around core care flows

This commit is contained in:
2026-10-01 13:11:30 +08:00
parent 51ead8f411
commit bfcf8788a4
321 changed files with 4918 additions and 25199 deletions
+17
View File
@@ -0,0 +1,17 @@
const tabs = [
{ path: "/pages/home/home", label: "首页", icon: "⌂" },
{ path: "/pages/meetups/meetups", label: "约遛", icon: "♡" },
{ path: "/pages/walk/walk", label: "遛狗", icon: "🐾" },
{ path: "/pages/tasks/tasks", label: "任务", icon: "☑" },
{ path: "/pages/pets/pets", label: "宠物", icon: "♙" },
];
Component({
properties: { current: String },
data: { tabs },
methods: {
go(e) {
const path = e.currentTarget.dataset.path;
if (path !== this.data.current) wx.redirectTo({ url: path });
},
},
});
+1
View File
@@ -0,0 +1 @@
{ "component": true }
+12
View File
@@ -0,0 +1,12 @@
<view class="bar">
<view
wx:for="{{tabs}}"
wx:key="path"
class="item {{current===item.path?'active':''}} {{item.label==='遛狗'?'walk':''}}"
data-path="{{item.path}}"
bindtap="go"
>
<view class="icon">{{item.icon}}</view>
<text>{{item.label}}</text>
</view>
</view>
+47
View File
@@ -0,0 +1,47 @@
.bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: calc(124rpx + env(safe-area-inset-bottom));
padding-bottom: env(safe-area-inset-bottom);
background: #fff;
display: flex;
justify-content: space-around;
align-items: center;
box-shadow: 0 -8rpx 35rpx rgba(32, 68, 50, 0.06);
z-index: 20;
}
.item {
width: 20%;
display: flex;
flex-direction: column;
align-items: center;
gap: 4rpx;
color: #9eafa4;
font-size: 21rpx;
font-weight: 600;
}
.item.active {
color: #174d40;
}
.icon {
font-size: 46rpx;
height: 52rpx;
line-height: 52rpx;
}
.walk .icon {
width: 82rpx;
height: 82rpx;
line-height: 82rpx;
text-align: center;
background: #174d40;
color: #fff;
border-radius: 27rpx;
box-shadow: 0 10rpx 23rpx rgba(24, 74, 59, 0.23);
margin-top: -30rpx;
font-size: 39rpx;
}
.walk.active .icon {
background: #eaaa69;
}