36 lines
452 B
Vue
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>
|