From f2f39e038f70966217dd77b73eb143acd72e25fa Mon Sep 17 00:00:00 2001 From: ZhaoYang <565837861@qq.com> Date: Wed, 11 Feb 2026 16:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E4=BF=AE=E6=94=B9=E8=A1=8C=E6=94=BF=E5=8C=BA?= =?UTF-8?q?=E5=88=92=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.js | 8 +++----- pages/home/home.wxml | 4 ++-- pages/personal/personal.js | 2 -- utils/baseUrl.js | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index 86fd314..002b7c1 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -21,9 +21,9 @@ Page({ http.UserInfo({ data: {}, success: res => { - console.log(11111,res); + console.log(111,res); this.setData({ - user: res.data.area + user: res.data.user.area }) } }) @@ -48,7 +48,6 @@ Page({ http.experience({ data: {}, success: res => { - console.log(111, res); const zyfx = [] zyfx.push(res.rows[0]) this.setData({ @@ -222,7 +221,6 @@ Page({ }, onLoad() { - this.getUserInfo() this.getDisaster() this.getCarousel() this.getLocation() @@ -231,8 +229,8 @@ Page({ }, onShow() { - // 页面显示时重置轮播图(解决某些手机上的轮播问题) this.resetSwiper() + this.getUserInfo() }, // 重置轮播图(解决轮播不自动播放的问题) diff --git a/pages/home/home.wxml b/pages/home/home.wxml index 794242c..1d22f76 100644 --- a/pages/home/home.wxml +++ b/pages/home/home.wxml @@ -11,9 +11,9 @@ --> - + - {{user.name}} + {{user.name || '去选择'}} diff --git a/pages/personal/personal.js b/pages/personal/personal.js index daf0cd5..f381645 100644 --- a/pages/personal/personal.js +++ b/pages/personal/personal.js @@ -86,7 +86,6 @@ Page({ http.revise({ data: dataToUpdate, success: (res) => { - console.log('更新成功:', res) // 清空表单数据 this.setData({ 'formData.avatar': null, @@ -290,7 +289,6 @@ Page({ content:content }, success:res=>{ - console.log(111111,res); if(res.code==200){ this.showToast('感谢您的反馈!') }else{ diff --git a/utils/baseUrl.js b/utils/baseUrl.js index 3de0bb9..776c06a 100644 --- a/utils/baseUrl.js +++ b/utils/baseUrl.js @@ -1,5 +1,5 @@ // var baseUrl = 'https://wx.chenhaitech.com/ymtx-prod-api' -var baseUrl = 'http://192.168.101.109:8080' -// var baseUrl = 'http://192.168.101.105:8082' +// var baseUrl = 'http://192.168.101.109:8080' +var baseUrl = 'http://192.168.101.105:8082' // var baseUrl = 'http://192.168.101.111:8081' module.exports = baseUrl