- 新增 components.d.json 文件,包含所有组件的属性配置 - 添加 card-item-plugin 组件及其相关文件(json、ts、wxml、wxss) - 在 app.json 中添加新的生产流程管理页面路径 - 添加多个SVG图标文件用于菜单项 - 重构 popup-plugin 组件样式和关闭逻辑 - 更新 tab-bar-plugin 的激活状态逻辑 - 优化 search-popup 使用全局样式类 - 在首页添加菜单配置和页面跳转功能 - 调整组件样式细节和间距
41 lines
774 B
TypeScript
41 lines
774 B
TypeScript
Component({
|
|
options: { multipleSlots: true },
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
active: {
|
|
type: String,
|
|
value: "",
|
|
},
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {
|
|
list: [
|
|
{ value: "index", label: "首页", icon: "home" },
|
|
{ value: "scan", label: "扫码", icon: "scan" },
|
|
{ value: "my", label: "我的", icon: "user" },
|
|
],
|
|
pages: {
|
|
index: "/pages/index/index",
|
|
scan: "/pages/processEntry/processEntry",
|
|
my: "/pages/my/my",
|
|
} as Record<string, string>,
|
|
},
|
|
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
methods: {
|
|
onChange(e: any) {
|
|
if (e.detail.value != this.data.active) {
|
|
wx.reLaunch({ url: this.data.pages[e.detail.value] });
|
|
}
|
|
},
|
|
},
|
|
});
|
|
|