Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
修复资讯页面显示不完整的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Apr 13, 2018
1 parent bbfd624 commit d408e77
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
page: 1,
page_size: 20,
details: [],
height: 500,
height: 520,
scrollTop: 0,
isNone: false,
};
Expand Down Expand Up @@ -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);
}
}
}
</script>

0 comments on commit d408e77

Please sign in to comment.