Browse Source

resolve bug

liguorui 6 years ago
parent
commit
523350ecdd
1 changed files with 5 additions and 5 deletions
  1. 5 5
      app.js

+ 5 - 5
app.js

@@ -35,11 +35,11 @@ App({
     // })
     wx.getSystemInfo({
         success:function(res) {        
-            // _self.globalData.pxscale = res.pixelRatio;
-            // _self.globalData.scale = 750/res.windowWidth;
-            // _self.globalData.windowHeight = res.windowHeight;
-            // _self.globalData.windowh = res.windowHeight*_self.globalData.scale;
-            // _self.globalData.Authorization = false;
+            _self.globalData.pxscale = res.pixelRatio;
+            _self.globalData.scale = 750/res.windowWidth;
+            _self.globalData.windowHeight = res.windowHeight;
+            _self.globalData.windowh = res.windowHeight*_self.globalData.scale;
+            _self.globalData.Authorization = false;
 
             var model = res.model
             if (model.search('iPhone X') != -1){