|
@@ -80,9 +80,10 @@ Page({ |
|
@@ -80,9 +80,10 @@ Page({ |
|
80
|
/**
|
80
|
/**
|
|
81
|
* 生命周期函数--监听页面显示
|
81
|
* 生命周期函数--监听页面显示
|
|
82
|
*/
|
82
|
*/
|
|
83
|
- onShow: function () {
|
83
|
+ onShow: async function () {
|
|
84
|
//this.getPos();
|
84
|
//this.getPos();
|
|
85
|
if(this.data.hasSuggestion) return;
|
85
|
if(this.data.hasSuggestion) return;
|
|
|
|
86
|
+ await getApp().getSystemInfo();
|
|
86
|
let sys=getApp().system;
|
87
|
let sys=getApp().system;
|
|
87
|
console.log('onShow',sys.windowHeight,sys.windowHeight-this.transverseViewHeight)
|
88
|
console.log('onShow',sys.windowHeight,sys.windowHeight-this.transverseViewHeight)
|
|
88
|
this.setData({
|
89
|
this.setData({
|