Socket
Socket
Sign inDemoInstall

faceauthview

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    faceauthview

微信小程序自定义人脸识别组件


Version published
Weekly downloads
5
increased by400%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

faceAuthView

faceAuthView 是一个微信小程序组件 用于认证用户姓名、身份证号码、以及是否是活人的检测

安装方式
  • 在微信小程序终端内运行命令
npm install faceauthview
  • 在微信小程序工具中点击 工具--->构建npm

  • 在项目的根目录 /miniprogram_npm/ 下面看到faceauthview 则构建成功

使用

在需要用到组件的页面json文件中申明组件

{
  "usingComponents": {
    "faceauthview" : "/miniprogram_npm/faceauthview/index"
  }
}

wxml中

<faceauthview name="{{name}}" idcard="{{idcard}}" bind:authSuccess="authSuccess" bind:authFail="authFail" />
name : string //中文名
idcard :  string //身份证号码
authSuccess : function //认证成功
authFail : function(e) //认证失败 返回失败信息

FAQs

Last updated on 20 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc