更新记录

1.0.1(2026-07-29)

  • 发布

平台兼容性

uni-app(5.01)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android Android插件版本 iOS 鸿蒙
× × × × × × 4.4 1.0.1 × ×
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 小红书小程序 快应用-华为 快应用-联盟
× × × × × × × × × × × ×

智能手环sdk

连接 connect()

返回值 {code: 1, msg: '成功提示'} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const connect = () => {
const res = Brand.connect()
console.log(res);
}

断开 disconnect()

返回值 {code: 1, msg: '成功提示'} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const disconnect = () => {
const res = Brand.disconnect()
console.log(res);
}

获取硬件版本号 getVersion()

返回值 {code: 1, msg: '成功提示', data: {version: 版本号}} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const getVersion = () => {
const res = Brand.getVersion()
console.log(res);
}

获取硬件SN号 getSn()

返回值 {code: 1, msg: '成功提示', data: {sn: SN号}} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const getSn = () => {
const res = Brand.getSn()
console.log(res);
}

蜂鸣 beep()

返回值 {code: 1, msg: '成功提示'} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const beep = () => {
const res = Brand.beep()
console.log(res);
}

读手环时间 readTime()

返回值 {code: 1, msg: '成功提示', data: {uidHex: 十六进制uid, uid: 十进制uid, time: 时间,单位分钟}} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const readTime = () => {
const res = Brand.readTime()
console.log(res);
}

写手环时间 writeTime(minute) minute 单位分钟

返回值 {code: 1, msg: '成功提示', data: {uidHex: 十六进制uid, uid: 十进制uid, time: 时间,单位分钟}} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const writeTime = (minute) => {
const res = Brand.writeTime(minute)
console.log(res);
}

清除手环时间 clearTime()

返回值 {code: 1, msg: '成功提示', data: {uidHex: 十六进制uid, uid: 十进制uid, time: 时间,单位分钟}} {code: 0, msg: '失败提示'}

import * as Brand from '@/uni_modules/leruge-uts-nfcbrand'
const clearTime = () => {
const res = Brand.clearTime()
console.log(res);
}

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

暂无用户评论。