Commit 0989eff5e7f63faca27e202d9fa4745a0ba59e1c

Authored by wangfan
1 parent f7602d2f

c端预定

@@ -76,7 +76,7 @@ App({ @@ -76,7 +76,7 @@ App({
76 console.log('SMS.code.catch',e); 76 console.log('SMS.code.catch',e);
77 } 77 }
78 }, 78 },
79 - getSystemInfo(){ 79 + async getSystemInfo(){
80 this._getSystemInfo().then((res)=>{ 80 this._getSystemInfo().then((res)=>{
81 console.log('wx.getSystemInfo',res); 81 console.log('wx.getSystemInfo',res);
82 this.system=res; 82 this.system=res;
@@ -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({