用getSystemInfo获取到的真机分辨率不对
wx.getSystemInfo({
success: this.handleGetLocationSucc.bind(this)
});
handleGetLocationSucc(res){
console.log(res);
this.data.screenWidth = res.screenWidth;
this.data.screenHeight = res.screenHeight;
console.log(this.data.screenWidth);
console.log(this.data.screenHeight);
},
用真机调试时,getSystemInfo获取的分辨率是这个
实际手机的分辨率应该1080*1920
请问各位大神,这个问题该怎么解决啊?