更新记录
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); }

收藏人数:
购买源码授权版(
试用
使用 HBuilderX 导入示例项目
赞赏(0)
下载 1383
赞赏 3
下载 12467738
赞赏 1936
赞赏
京公网安备:11010802035340号