From f058f6f1b35f413000ea81d7df92b4bd021c6b6f Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期二, 08 七月 2025 16:24:00 +0800 Subject: [PATCH] 销售方式跳转、扫码、Isbn弹框、出版日期 --- pages/personalCenter/index.js | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/pages/personalCenter/index.js b/pages/personalCenter/index.js index 6199b78..341ca0e 100644 --- a/pages/personalCenter/index.js +++ b/pages/personalCenter/index.js @@ -53,6 +53,18 @@ // 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 = [{ @@ -158,6 +170,10 @@ }); this.getUserInfo() this.getIntegral() + } else { + wx.switchTab({ + url: '/pages/home/home', + }) } }) } else { @@ -246,6 +262,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(() => { -- Gitblit v1.9.1