feat: 添加组件配置文件并优化页面结构

- 新增 components.d.json 文件,包含所有组件的属性配置
- 添加 card-item-plugin 组件及其相关文件(json、ts、wxml、wxss)
- 在 app.json 中添加新的生产流程管理页面路径
- 添加多个SVG图标文件用于菜单项
- 重构 popup-plugin 组件样式和关闭逻辑
- 更新 tab-bar-plugin 的激活状态逻辑
- 优化 search-popup 使用全局样式类
- 在首页添加菜单配置和页面跳转功能
- 调整组件样式细节和间距
This commit is contained in:
zhengw
2026-01-14 16:54:47 +08:00
parent 0d58fc80f4
commit b1ecd88641
58 changed files with 971 additions and 386 deletions

View File

@@ -6,7 +6,7 @@ Component({
properties: {
active: {
type: String,
value: "home",
value: "",
},
},
@@ -15,7 +15,7 @@ Component({
*/
data: {
list: [
{ value: "home", label: "首页", icon: "home" },
{ value: "index", label: "首页", icon: "home" },
{ value: "scan", label: "扫码", icon: "scan" },
{ value: "my", label: "我的", icon: "user" },
],
@@ -31,12 +31,9 @@ Component({
*/
methods: {
onChange(e: any) {
if (e.detail.value == this.data.active) {
return;
if (e.detail.value != this.data.active) {
wx.reLaunch({ url: this.data.pages[e.detail.value] });
}
wx.reLaunch({
url: this.data.pages[e.detail.value],
});
},
},
});

View File

@@ -1,13 +1,5 @@
<t-tab-bar
t-class="t-tab-bar"
value="{{active}}"
bindchange="onChange"
theme="normal"
fixed="{{true}}"
split="{{false}}"
>
<t-tab-bar t-class="t-tab-bar" value="{{active}}" bindchange="onChange" theme="normal" fixed="{{true}}" split="{{false}}">
<t-tab-bar-item wx:for="{{list}}" wx:key="value" value="{{item.value}}" icon="{{item.icon}}">
{{item.label}}
</t-tab-bar-item>
</t-tab-bar>