您的位置:首页 > 教育 > 锐评 > 网络托管公司有哪些_安阳昨天发生的事件_互联网哪个行业前景好_企业推广是什么意思

网络托管公司有哪些_安阳昨天发生的事件_互联网哪个行业前景好_企业推广是什么意思

2024/10/6 0:26:59 来源:https://blog.csdn.net/weixin_59685936/article/details/142353017  浏览:    关键词:网络托管公司有哪些_安阳昨天发生的事件_互联网哪个行业前景好_企业推广是什么意思
网络托管公司有哪些_安阳昨天发生的事件_互联网哪个行业前景好_企业推广是什么意思

准备工作:

mainfest.json设置勾选:

勾选完成后打 App自定义调试基座测试包

示例代码:

<template><view class="content"><button v-if="supportSoterAuthenticationArray.includes('facial')" @click="SoterAuthenticationFunction('facial')">人脸识别</button><button v-if="supportSoterAuthenticationArray.includes('fingerPrint')" @click="SoterAuthenticationFunction('fingerPrint')">指纹识别</button></view>
</template><script setup>import { onShow } from '@dcloudio/uni-app'import { ref } from 'vue';onShow(()=>{checkIsSupportSoterAuthentication()})const supportSoterAuthenticationArray = ref([])const checkIsSupportSoterAuthentication = () => {uni.checkIsSupportSoterAuthentication({success(res) {supportSoterAuthenticationArray.value = res.supportMode}})}const SoterAuthenticationFunction = (type) => {uni.checkIsSoterEnrolledInDevice({checkAuthMode: type,success(res) {res.isEnrolled && uni.startSoterAuthentication({requestAuthModes: [type],challenge: '123456',authContent: '生物解锁',success(res) {console.log(res,'成功回调','执行相关逻辑');}})}})}
</script><style lang="scss" scoped></style>

效果展示:

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com