更新记录
1.0.0(2025-04-28)
- 支持搭载zc-339v主板的安卓机器设置关机,重启,定时开关机的功能
 
平台兼容性
uni-app
| Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 | 
|---|---|---|---|---|---|---|---|---|
| √ | - | - | - | - | - | - | - | - | 
| 微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 | 
|---|---|---|---|---|---|---|---|---|---|---|
| - | - | - | - | - | - | - | - | - | - | - | 
ZC-339V 定时开关机
介绍
Uniapp 调用 RebootUtils.jar 定时开关机插件
软件架构
无
代码示例
<template>
    <view>
        <image class="logo" src="/static/logo.png"></image>
          <view class="button-container">
            <button class="my-button" type="primary" @click="shutDownMachine">关机</button>
            <button class="my-button" type="primary" @click="rebootMachine">重启</button>
            <button class="my-button" type="primary" @click="timingTurnOnMachine(120)">定时120秒后重启</button>
          </view>
    </view>
</template>
<script>
    import  * as module from '@/uni_modules/chan-uts-reboot'
    export default {
        data() {
            return {
                logStr: "",
                title: 'Hello',
                msg:""
            }
        },
        onLoad() {
            //this.title = module.test()
            // module.testCallBack("jack",(msg)=>{
            //  this.msg= msg;
            // })
            // this.title = module.getBatteryCapacity()
        },
        methods: {
            sayHelloFromJar(){
                this.msg = module.sayHelloFromJar()
            },
            shutDownMachine(){
                    module.shutDownMachine();
            },
             rebootMachine(){
                    module.rebootMachine();
            },
            timingTurnOnMachine(times:Int){
                 module.timingTurnOnMachine(times);
            },
        }
    }
</script>
安装教程
- 直接引入Uniapp 项目即可
 
使用说明
- 
插件目录结构

 - 
package.json配置
{ "id": "chan-uts-reboot", "displayName": "ZC-339V 定时开关机 UTS 插件", "version": "1.0.0", "description": "支持搭载zc-339v主板的安卓机器设置关机,重启,定时开关机的功能 ***:1426429456@qq.com", "keywords": [ "chan-uts-reboot" ], "repository": "", "engines": { "HBuilderX": "^3.6.8" }, "dcloudext": { "type": "uts", "sale": { "regular": { "price": "50.00" }, "sourcecode": { "price": "50.00" } }, "contact": { "qq": "1426429456@qq.com" }, "declaration": { "ads": "", "data": "", "permissions": "" }, "npmurl": "" }, "uni_modules": { "dependencies": [], "encrypt": [], "platforms": { "cloud": { "tcb": "u", "aliyun": "u", "alipay": "u" }, "client": { "Vue": { "vue2": "u", "vue3": "u" }, "App": { "app-android": "u", "app-ios": "u", "app-harmony": "u" }, "H5-mobile": { "Safari": "u", "Android Browser": "u", "微信浏览器(Android)": "u", "QQ浏览器(Android)": "u" }, "H5-pc": { "Chrome": "u", "IE": "u", "Edge": "u", "Firefox": "u", "Safari": "u" }, "小程序": { "微信": "u", "阿里": "u", "百度": "u", "字节跳动": "u", "QQ": "u", "钉钉": "u", "快手": "u", "飞书": "u", "京东": "u" }, "快应用": { "华为": "u", "联盟": "u" } } } } } - 
运行效果
 


                                                                    
                                                                        收藏人数:
                                    
                                                                                https://gitee.com/Rinaloving/hello_uts
                                    
                                                        购买普通授权版(
                                                                                                                试用
                                                    
                                        赞赏(0)
                                    
                                            
 下载 36
                
 赞赏 0
                
            
                    下载 10680411 
                
                        赞赏 1797 
                    
            
            
            
            
            
            
            
            
            
            
            
            
            
            
                        
                                赞赏
                            
            
京公网安备:11010802035340号