首次上传

This commit is contained in:
田岩
2025-11-27 20:48:18 +08:00
commit 492a164bff
1746 changed files with 219083 additions and 0 deletions
@@ -0,0 +1,39 @@
<template>
<div>
<text>宽:{{width}},高:{{height}}</text>
<button @tap="getSystemInfoClick">getSystemInfo测试</button>
</div>
</template>
<script>
export default {
data:{
width:"",
height:""
},
onLoad() {
console.log("onload")
},
methods:{
getSystemInfoClick:function(){
console.log("getSystemInfoClick")
try {
let systemInfo = uni.getSystemInfoSync()
this.height = systemInfo.screenHeight
this.width = systemInfo.screenWidth
console.log("globalScreenHeight",this.height,"globalScreenWidth",this.width)
} catch (e) {
// 兼容本地测试
console.error(e)
}
}
}
}
</script>
<style>
</style>