diff --git a/pages/home/home.js b/pages/home/home.js index 2e5bcaa..390d6ae 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -279,27 +279,12 @@ Page({ // 通知点击 onNoticeTap(e) { + console.log(111,e); const id = e.currentTarget.dataset.id; console.log('通知点击:', id); - - // 显示当前点击的通知内容 - const notice = this.data.noticeList.find(item => item.id === id); - if (notice) { - wx.showModal({ - title: notice.warningLevel || '通知详情', - content: notice.title, - showCancel: true, - cancelText: '关闭', - confirmText: '查看详情', - success: (res) => { - if (res.confirm) { - wx.navigateTo({ - url: '/pagesB/pages/noticeDetail/noticeDetail?id=' + id - }); - } - } - }); - } + wx.navigateTo({ + url: '/pagesA/pages/noticeListDetails/noticeListDetails?id=' + id, + }) }, onReady() { diff --git a/pages/home/home.wxml b/pages/home/home.wxml index 90eccf6..f3d3fa7 100644 --- a/pages/home/home.wxml +++ b/pages/home/home.wxml @@ -100,7 +100,7 @@ - + {{item.warningLevel}} diff --git a/pages/personal/personal.js b/pages/personal/personal.js index 1604b89..3f66d00 100644 --- a/pages/personal/personal.js +++ b/pages/personal/personal.js @@ -195,17 +195,10 @@ Page({ if (result && result.fileName) { // 获取上传后的文件路径 const uploadedFilePath = result.fileName + console.log(uploadedFilePath); this.setData({ avatarUrl: uploadedFilePath, }) - - // 更新缓存中的用户信息 - const cachedUserInfo = wx.getStorageSync('userInfo') || {} - if (!cachedUserInfo.user) { - cachedUserInfo.user = {} - } - cachedUserInfo.user.avatar = uploadedFilePath - wx.setStorageSync('userInfo', cachedUserInfo) // 更新头像的API http.revise({ @@ -410,7 +403,7 @@ Page({ http.feedback({ data: { content: content, - feedbackType: this.data.currentFeedbackType // 添加反馈类型字段 + type: this.data.currentFeedbackType // 添加反馈类型字段 }, success: res => { if (res.code == 200) { diff --git a/pages/personal/personal.wxml b/pages/personal/personal.wxml index e505a0a..8ca67f0 100644 --- a/pages/personal/personal.wxml +++ b/pages/personal/personal.wxml @@ -114,7 +114,6 @@ -