From 4eb97edb8868ed67758cc264b0650638e2be7c45 Mon Sep 17 00:00:00 2001 From: ZhaoYang <565837861@qq.com> Date: Wed, 11 Mar 2026 18:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E8=AF=84=E4=BB=B7=EF=BC=8C=E9=97=AE=E5=85=BD=E5=8C=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.js | 23 ++++------------------- pages/home/home.wxml | 2 +- pages/personal/personal.js | 11 ++--------- pages/personal/personal.wxml | 1 - pagesA/pages/expertChat/expertChat.js | 2 +- utils/baseUrl.js | 4 ++-- 6 files changed, 10 insertions(+), 33 deletions(-) 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 @@ -