real-name-mobile

1.0.6 • Public • Published

实名认证移动端


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

Package Sidebar

Install

npm i real-name-mobile

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

759 kB

Total Files

33

Last publish

Collaborators

  • liuyang9