var app = getApp();
var windowstyle = {

}
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;

		windowstyle.pxscale = res.pixelRatio;
        windowstyle.scale = 750/res.windowWidth;
        windowstyle.windowHeight = res.windowHeight;
        windowstyle.windowh = res.windowHeight*windowstyle.scale;
        windowstyle.Authorization = false;
        // var model = res.model
        // if (model.search('iPhone X') != -1){
        //     _self.globalData.isIpx = true;
        // }else{
        //     _self.globalData.isIpx = false;
        // }
    }
});
var headerheight = 170;
export default {
	"windowh": windowstyle.windowh,
	"windowHeight": windowstyle.windowHeight,
	"pxscale":windowstyle.pxscale,
    "scale":windowstyle.scale,
	"headerheight":headerheight,
	"topsearchheight":78,
	"footerheight":app.globalData.isIpx?140:98,
	"contentheight":windowstyle.windowHeight-headerheight/windowstyle.scale
}