Files
ClassContent/历届学生/逯帅帅/项目开发/上课项目/uniapp项目模板/pages/about/about.vue
2024-09-27 02:06:13 +08:00

36 lines
452 B
Vue

<template>
<view class="about">
<h2>关于我</h2>
<!--#ifdef APP-PLUS-->
<button type="default" @click="setLd()">点我设置亮度</button>
<!-- #endif -->
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
setLd() {
// #ifdef APP-PLUS
uni.setScreenBrightness({
value: 0.5
})
// #endif
}
}
}
</script>
<style>
</style>