juewuly / real-name-mobile

移动端实名认证

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

实名认证移动端


Features

  • 实名认证移动端

Installing

NPM

$ npm i real-name-mobile -S

SCRIPT

  <script type="text/javascript" src="https://unpkg.com/real-name-mobile/dist/real-name-mobile.min.js"></script>

Usage

  1. 执行const Instance = RealNameMobile.Instance获取实例。
  2. 执行Instance.showEight()显示年龄小于8周岁的弹窗。

Example

  // 获取操作实例
  const Instance = RealNameMobile.Instance;

  // 显示“年龄小于8周岁”的弹窗
  Instance.showEight();

  // 显示“8~16周岁不可充值,充值已达到上限”的弹窗
  Instance.showSixteen();

  // 显示“8~16周岁可充值,但充值金额达到上限”的弹窗
  Instance.showSixteenCharge();

  // 显示“16~18周岁不可充值,充值已达到上限”的弹窗
  Instance.showEighteen();

  // 显示“16~18周岁可充值,但充值金额已达到上限”的弹窗
  Instance.showEighteenCharge();

  // 显示“登录后游戏时长已达到上限”的弹窗
  Instance.showTimeLimitAfterLogin();

  // 显示“游戏中时长已达到上限”的弹窗
  Instance.showTimeLimitWhenPlaying();

  // 关闭弹窗
  Instance.close();

License

MIT

About

移动端实名认证


Languages

Language:JavaScript 92.9%Language:CSS 5.0%Language:HTML 2.1%