feat: 电子药箱小程序 - 4Tab药品管理
- 电子药箱: 药品库存管理 + 手动录入 + 今日用药打卡 - 药品百科: 搜索 + 分类筛选 + 20种药品静态数据 - 惠教中心: 4条药品使用指南课程 - 我的: 家庭成员信息管理 - 自定义TabBar + navigation-bar组件 - SVG药品分类插图
This commit is contained in:
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
type PageItem = {
|
||||
name: string;
|
||||
props?: Record<string, any>;
|
||||
styles?: Record<string, any>;
|
||||
};
|
||||
|
||||
type PageType = {
|
||||
[pageName: string]: PageItem[];
|
||||
};
|
||||
|
||||
type TemplateType = {
|
||||
pages: PageType;
|
||||
items: string[];
|
||||
};
|
||||
|
||||
type TabbarMapType = {
|
||||
[pageName: string]: {
|
||||
pagePath: string,
|
||||
text: string,
|
||||
title?: string,
|
||||
iconPath: string,
|
||||
selectedIconPath: string
|
||||
}
|
||||
}
|
||||
|
||||
interface IAppOption {
|
||||
globalData: {
|
||||
userInfo?: WechatMiniprogram.UserInfo,
|
||||
isLogin?: boolean,
|
||||
wasLogin?: boolean,
|
||||
template: TemplateType | null,
|
||||
showStock: boolean,
|
||||
store?: any,
|
||||
joinedArray: string[],
|
||||
safeBottom: number,
|
||||
safeTop: number,
|
||||
tabbarMap: TabbarMapType,
|
||||
tabbarItems: any[],
|
||||
sseStore: any,
|
||||
isModalShowing: Boolean
|
||||
},
|
||||
getPageParams: (id: number) => any,
|
||||
checkLoginState: () => boolean,
|
||||
redirectLogin: () => any,
|
||||
login: (value: string) => boolean,
|
||||
getTemplate: () => Promise<any>,
|
||||
// serverSentEvents: () => void,
|
||||
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
|
||||
}
|
||||
Reference in New Issue
Block a user