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)