From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 17 三月 2025 14:27:14 +0800 Subject: [PATCH] 图 --- pages/personalCenter/index.js | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/pages/personalCenter/index.js b/pages/personalCenter/index.js index 2820193..16b1abe 100644 --- a/pages/personalCenter/index.js +++ b/pages/personalCenter/index.js @@ -18,6 +18,7 @@ { title: '鎴戠殑璇佷功', icon: '/static/images/personal/certificate.png', + // url: '', url: '/pages/personalCenter/certificate/index', type: 'certificate', }, @@ -42,14 +43,28 @@ { title: '鎴戠殑涓婁紶', icon: '/static/images/personal/upload.png', + // url: '', url: '/pages/personalCenter/myUpload/index', type: 'upload', }, { title: '鍑轰功鐢宠', icon: '/static/images/personal/chushu.png', + // url: '', url: '/packagePersonal/pages/publishBooks/index', type: 'publishBooks', + }, + { + title: '鎴戠殑璇剧▼', + icon: '/static/images/personal/course.png', + url: '/packageCourse/pages/course/index', + type: 'course', + }, + { + title: '鎴戠殑鐝骇', + icon: '/static/images/personal/class.png', + url: '/packageCourse/pages/studentClass/index', + type: 'class', } ]; const moreMenu = [{ @@ -243,6 +258,19 @@ this.setData({ userInfo: defaultUser }) + if (defaultUser?.role == 'Teacher') { + const data = [...this.data.menuData] + const list = data.filter(item => item.type != 'class') + this.setData({ + menuData: list + }) + } else { + const data = [...this.data.menuData] + const list = data.filter(item => item.type != 'course') + this.setData({ + menuData: list + }) + } this.getTeacherInfo() wx.setStorageSync(app.config.userInfoKey, JSON.stringify(this.data.userInfo)); setTimeout(() => { @@ -389,7 +417,15 @@ isWhite: data }) }, - + // delectBtn() { + // app.MG.ugc + // .delTopicMessage({ + // messageIds: [2986, 1302, 1301, 3074, 1305, 1304] + // }) + // .then((res) => { + // console.log('鍒犻櫎鎴愬姛') + // }) + // }, /** * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� -- Gitblit v1.9.1