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
@@ -0,0 +1 @@
"use strict";var _peopleCount=require("../../utils/people-count"),_utils=require("../../utils/utils");Component({properties:{sdkInstance:{type:Object,value:null,observer:"initSDK"},mode:{type:String,value:"portrait"}},data:{visible:!1,text:""},lifetimes:{attached:function(){this.initSDK(this.properties.sdkInstance)},detached:function(){"function"==typeof this._unsub&&this._unsub(),this._unsub=null,this._initializedSdk=null}},methods:{initSDK:function(t){var i,e,n=this;t&&this._initializedSdk!==t&&("function"==typeof this._unsub&&this._unsub(),this._initializedSdk=t,this._unsub=null===(i=t.store)||void 0===i||null===(e=i.get)||void 0===e?void 0:e.call(i,{liveInfo:function(t){n.syncView(t)}}))},syncView:function(t){var i=(0,_peopleCount.formatPeopleCount)(null==t?void 0:t.VirtualPeopleCount);(0,_utils.setDataIfChanged)(this,{visible:(0,_peopleCount.shouldShowPeopleCount)(t),text:i?"".concat(i,"人气"):""})}}});
@@ -0,0 +1 @@
{"component":true}
@@ -0,0 +1,4 @@
<view wx:if="{{visible}}" class="people-counter {{mode === 'landscape' ? 'people-counter-landscape' : 'people-counter-portrait'}}">
<image class="people-counter-icon" src="../../assets/fire_icon.svg" mode="aspectFit" />
<view class="people-counter-text">{{text}}</view>
</view>
@@ -0,0 +1 @@
.people-counter{display:inline-flex;align-items:center;box-sizing:border-box;max-width:320rpx;min-height:calc(36rpx + .5 * (1rem - 16px));padding:0 16rpx;border-radius:999rpx;background-color:rgba(0,0,0,.2);color:#fff;pointer-events:none}.people-counter-icon{flex-shrink:0;width:24rpx;height:24rpx;margin-right:6rpx}.people-counter-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:calc(20rpx + .5 * (1rem - 16px));line-height:calc(36rpx + .5 * (1rem - 16px))}.people-counter-portrait{min-height:calc(44rpx + .5 * (1rem - 16px))}.people-counter-portrait .people-counter-text{font-size:calc(22rpx + .5 * (1rem - 16px));line-height:calc(44rpx + .5 * (1rem - 16px))}