UNPKG

vue-aliyun-nocaptcha

Version:
53 lines (43 loc) 1.56 kB
# vue-aliyun-noCAPTCHA Aliyun noCAPTCHA for Vue ## Install ```cmd npm install vue-aliyun-nocaptcha ``` ## Usage ```html <nocaptcha></nocaptcha> <smartcaptcha></smartcaptcha> ``` ```vue import { nocaptcha, smartcaptcha } from 'vue-aliyun-nocaptcha' export default { components: { nocaptcha, smartcaptcha } } ``` ## NoCaptcha Parameter |Parameter | Type | Default | | | ------------- |:-------------:| -----:|:-------------:| | aeis | bool | false | Use Oversea CDN (Default China) | | h5 | bool | false*** | Use H5 Script| | appkey | string | FFFF0000.... | appkey from Aliyun Account| | scene | string | | scene from Aliyun Account| | lang | string | | Language set from Aliyun| | @load | function | | event on noCAPTCHA load | | @callback | function | | callback when verify success | ## Smartcaptcha Parameter |Parameter | Type | Default | | | ------------- |:-------------:| -----:|:-------------:| | aeis | bool | false | Use Oversea CDN (Default China) | | h5 | bool | false*** | Use H5 Script| | appkey | string | FFFF0000.... | appkey from Aliyun Account| | scene | string | | scene from Aliyun Account| | @load | function | | event on noCAPTCHA load | | @callback | function | | callback when verify success | | option | object | | option of smartcaptcha | For more infomation, please check Doc of Aliyun or my code. *** h5 script is abandoned. *** TODO fix issue, sciprt reported error when using h5 script...