let systemInfo = uni.getSystemInfoSync()
this.appId= systemInfo.appId
this.appName= systemInfo.appName
this.appVersion= systemInfo.appVersion
this.osName= systemInfo.osName
this.platform= systemInfo.platform
返回值如下:
{
"SDKVersion": "",
"appId": "__UNI__86077D2",
"appLanguage": "zh-Hans",
"appName": "携手到家仓库端",
"appVersion": "13.96",
"appVersionCode": 1396,
"appWgtVersion": "1.0.5",
"brand": "xiaomi",
"browserName": "chrome",
"browserVersion": "118.0.0.0",
"deviceBrand": "xiaomi",
"deviceId": "F65BF232612BCECF43C9DDDA92C7610B",
"deviceModel": "22041216C",
"deviceOrientation": "portrait",
"devicePixelRatio": 2.75,
"deviceType": "phone",
"errMsg": "getSystemInfoSync:ok",
"language": "zh-CN",
"model": "22041216C",
"oaid": "e0cfc79e5f008b9c",
"osAndroidAPILevel": 33,
"osLanguage": "zh-CN",
"osName": "android",
"osTheme": "dark",
"osVersion": "13",
"pixelRatio": 2.75,
"platform": "android",
"romName": "MIUI",
"romVersion": "V140",
"safeArea": {
"left": 0,
"right": 393,
"top": 36,
"bottom": 879,
"width": 393,
"height": 843
},
"safeAreaInsets": {
"top": 36,
"right": 0,
"bottom": 0,
"left": 0
},
"screenHeight": 879,
"screenWidth": 393,
"statusBarHeight": 36,
"system": "Android 13",
"ua": "Mozilla/5.0 (Linux; Android 13; 22041216C Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/118.0.0.0 Mobile Safari/537.36 uni-app (Immersed/36.363636)",
"uniCompileVersion": "3.96",
"uniPlatform": "app",
"uniRuntimeVersion": "3.96",
"version": "1.9.9.81954",
"windowBottom": 0,
"windowHeight": 879,
"windowTop": 0,
"windowWidth": 393
}