feat: 电子药箱小程序 - 4Tab药品管理

- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡
- 药品百科: 搜索 + 分类筛选 + 20种药品静态数据
- 惠教中心: 4条药品使用指南课程
- 我的: 家庭成员信息管理
- 自定义TabBar + navigation-bar组件
- SVG药品分类插图
This commit is contained in:
陈誉午
2026-07-29 11:20:52 +08:00
commit 994b267f5c
683 changed files with 43849 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"backgroundColor": "#081120",
"disableScroll": true,
"usingComponents": {}
}
+42
View File
@@ -0,0 +1,42 @@
page {
height: 100%;
background: #081120;
}
.wxroom-redirect {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 28rpx;
color: #f4f8ff;
background:
radial-gradient(circle at 18% 12%, rgba(83, 214, 255, 0.14), transparent 28%),
linear-gradient(180deg, #0d1b31 0%, #09121f 52%, #050b15 100%);
}
.wxroom-redirect__spinner {
width: 72rpx;
height: 72rpx;
border-radius: 50%;
border: 6rpx solid rgba(255, 255, 255, 0.1);
border-top-color: #71c1ff;
animation: wxroom-redirect-spin 0.9s linear infinite;
}
.wxroom-redirect__text {
font-size: 30rpx;
line-height: 1.4;
}
@keyframes wxroom-redirect-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
+26
View File
@@ -0,0 +1,26 @@
// pages/live/wxroom/index.ts
Page({
onLoad(options: Record<string, string | undefined>) {
const query = Object.entries(options || {})
.filter(([, value]) => value !== undefined && value !== "")
.map(
([key, value]) =>
`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`,
)
.join("&");
const target = query
? `/package-live/wxroom/index?${query}`
: "/package-live/wxroom/index";
wx.redirectTo({
url: target,
fail: () => {
wx.showToast({
title: "进入直播间失败",
icon: "none",
});
},
});
},
});
+4
View File
@@ -0,0 +1,4 @@
<view class="wxroom-redirect">
<view class="wxroom-redirect__spinner"></view>
<text class="wxroom-redirect__text">正在进入直播间...</text>
</view>