From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期日, 27 四月 2025 17:39:24 +0800
Subject: [PATCH] 修复线索问题定位错误问题
---
custom-tab-bar/index.js | 31 +++++++++++++++++++++----------
1 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js
index a6ff3b7..5933a2c 100644
--- a/custom-tab-bar/index.js
+++ b/custom-tab-bar/index.js
@@ -1,23 +1,34 @@
import TabMenu from './data';
+// import { getMenu } from './data';
+
const app = getApp();
Component({
data: {
active: 0,
list: TabMenu,
+ // list: getMenu(app.globalData.userInfo.usertypeid),
},
attached() {
- const menu = []
- TabMenu.forEach(v => {
- if (app.globalData.userInfo.usertypeid <= v.level) {
- menu.push(v)
- }
- });
- // TabMenu.map(v => {
- // v.visible = app.globalData.userInfo.usertypeid <= v.level;
- // return v;
+ // const menu = [];
+ // TabMenu.forEach(v => {
+ // if (app.globalData.userInfo.usertypeid <= v.level) {
+ // menu.push(v);
+ // }
// });
- this.setData({ list: menu });
+ // this.setData({ list: menu });
+ // const index = [];
+ // TabMenu.forEach((v, i) => {
+ // if (app.globalData.userInfo.usertypeid > v.level) {
+ // index.push(i);
+ // }
+ // });
+ // let offset = 0;
+ // index.forEach(e => {
+ // TabMenu.splice(e + offset, 1);
+ // offset--;
+ // });
+ // this.setData({ list: TabMenu });
},
methods: {
onChange(event) {
--
Gitblit v1.9.3