<template>
<view>
<button @click="notice">跳转通知页</button>
<button @click="Bluetooth('设置')" style="margin-top: 30rpx;">跳转设置页</button>
<button @click="Bluetooth('wifi')" style="margin-top: 30rpx;">跳转wifi页</button>
<button @click="Bluetooth('蓝牙')" style="margin-top: 30rpx;">跳转蓝牙页</button>
<button @click="Bluetooth('代码')" style="margin-top: 30rpx;">跳转代码备注页</button>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
Bluetooth(e){
var main = plus.android.runtimeMainActivity();
var Intent = plus.android.importClass("android.content.Intent");
if(e == '蓝牙'){
var mIntent = new Intent('android.settings.BLUETOO
UNIAPP 跳转设置页代码以及权限
于 2023-11-14 15:50:58 首次发布