// succ.js
var app = getApp()
Page({
data: {
mobileModel: '', // 手机型号
mobileePixelRatio: '', // 手机像素比
windowWidth: '', // 窗口宽度
windowHeight: '', // 窗口高度
language: '', // 微信设置的语言
version: '', // 微信版本号
},
onLoad: function (e) { // 获取参数
wx.getSystemInfo({
success: function (res) { // 获取手机信息
that.setData({
mobileModel: res.model,
mobileePixelRatio: res.pixelRatio,
windowWidth: res.windowWidth,
windowHeight: res.windowHeight,
language: res.language,
version: res.version
})
}
})
}
})
// succ.wxml