From c97d761cedd5109e902198f2b07d1f55ae3077fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 22 Feb 2023 13:58:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/site/site.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages.json b/pages.json index f668629..047347a 100644 --- a/pages.json +++ b/pages.json @@ -271,7 +271,7 @@ "navigationBarTitleText": "护理站", "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff", //背景颜色 - "onReachBottomDistance": 40, //距离底部多远时触发 单位为px + "onReachBottomDistance": 100, //距离底部多远时触发 单位为px "enablePullDownRefresh": true //设置参数为true } }, diff --git a/pages/site/site.vue b/pages/site/site.vue index 10c2018..cd1d850 100644 --- a/pages/site/site.vue +++ b/pages/site/site.vue @@ -179,7 +179,7 @@ uni.removeStorageSync('Refresh'); res.rows.forEach(e => { e.stationPictureUrl = baseurl + e.stationPictureUrl - if (e.classifyInfoList.length >= 1) { + if (e.classifyInfoList && e.classifyInfoList.length >= 1) { e.classifyInfoList = e.classifyInfoList.slice(0, 2) } }) @@ -208,7 +208,7 @@ .then(res => { res.rows.forEach(e => { e.stationPictureUrl = baseurl + e.stationPictureUrl - if (e.classifyInfoList.length >= 1) { + if (e.classifyInfoList && e.classifyInfoList.length >= 1) { e.classifyInfoList = e.classifyInfoList.slice(0, 2) } this.nursestationlist.push(e)