更新记录

0.0.1(2020-05-20)

第一版发布


平台兼容性

zx-verify

图形验证码组件演示地址 图形验证码组件演示地址

完整版演示地址 图形验证码组件演示地址

安装方法

cnpm i -S zx-verify

verify 组件 main.js 全局引入

import Vue from 'vue'
import ZxVerify from 'zx-verify'
Vue.component('byui-verify', ZxVerify)

template 完整示例

<template>
  <div id="app">
    <byui-verify
      ref="slideDiv"
      :w="350"
      :slider-text="text"
      :h="175"
      @success="handleSuccess"
      @fail="handleError"
    ></byui-verify>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      text: "向右滑动",
    };
  },
  created() {},
  mounted() {},
  methods: {
    handleSuccess() {
      alert("校验成功");
    },
    handleError() {
      alert("校验失败");
    },
  },
};
</script>

<style>
body {
  margin: 0;
  padding: 0;
}

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问