uni.getSystemInfo({
success: function (res) {
console.log(res.model); // 手机型号
console.log(res.pixelRatio); // 设备像素比
console.log(res.screenWidth); // 屏幕宽度
console.log(res.screenHeight); // 屏幕高度
console.log(res.windowWidth); // 可使用窗口宽度
console.log(res.windowHeight); // 可使用窗口高度
console.log(res.language); // 微信设置的语言
console.log(res.version); // 微信版本号
}
});