From d408e77fd52656d29c5b6bb1acc9f3b6e1cd51a3 Mon Sep 17 00:00:00 2001 From: mohuishou <1@lailin.xyz> Date: Fri, 13 Apr 2018 11:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=84=E8=AE=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AE=8C=E6=95=B4=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/list.vue b/src/components/list.vue index 337be9f..218694f 100644 --- a/src/components/list.vue +++ b/src/components/list.vue @@ -85,7 +85,7 @@ page: 1, page_size: 20, details: [], - height: 500, + height: 520, scrollTop: 0, isNone: false, }; @@ -153,10 +153,14 @@ return y + '-' + m + '-' + d + ' ' + h + ':' + minute; } onLoad() { - setTimeout(() => { - this.getDetails() - }, 100) - this.height = wx.getSystemInfoSync().windowHeight + try { + setTimeout(() => { + this.getDetails() + }, 100) + this.height = wx.getSystemInfoSync().screenHeight + } catch (error) { + console.log(error); + } } }