Commit 0989eff5e7f63faca27e202d9fa4745a0ba59e1c

Authored by wangfan
1 parent f7602d2f

c端预定

... ... @@ -76,7 +76,7 @@ App({
console.log('SMS.code.catch',e);
}
},
getSystemInfo(){
async getSystemInfo(){
this._getSystemInfo().then((res)=>{
console.log('wx.getSystemInfo',res);
this.system=res;
... ...
... ... @@ -80,9 +80,10 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
onShow: async function () {
//this.getPos();
if(this.data.hasSuggestion) return;
await getApp().getSystemInfo();
let sys=getApp().system;
console.log('onShow',sys.windowHeight,sys.windowHeight-this.transverseViewHeight)
this.setData({
... ...