更新记录
1.0.2(2025-08-09)
优化细节
1.0.1(2025-08-07)
优化细节
1.0.0(2025-08-06)
初始版本
查看更多
平台兼容性
云端兼容性
uni-app(4.25)
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
√ |
- |
- |
√ |
√ |
- |
√ |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
uni-app x(4.25)
Chrome |
Safari |
Android |
iOS |
鸿蒙 |
微信小程序 |
- |
- |
- |
√ |
- |
- |
yzc-auth-biometrics iOS 生物认证touchid/faceid(需要打自定义基座,请测试合适后购买)
导入
import { BiometricsAuthTool } from '@/uni_modules/yzc-auth-biometrics';
authentionWithBiometrics回调type说明
字符串类型 |
描述 |
'success' |
验证成功 |
'failChange' |
生物特征更改 |
'fail' |
验证失败 |
'notAvailable' |
没有开启或不可用 |
'notSet' |
没有设置生物识别 |
使用
BiometricsAuthTool.setLocalizedFallbackTitle("使用密码登录")
BiometricsAuthTool.setLocalizedCancelTitle("暂不验证")
BiometricsAuthTool.setVerifyPasswordCallBlock(() => {
// 如果认证失败采用自有密码验证 phonePasswordAuthentication设置为false此回调才会被调用
console.log("采用自有密码验证")
})
BiometricsAuthTool.authentionWithBiometrics({
phonePasswordAuthentication: false,
callback: (type) => {
console.log(type)
}
})