credit-iframe-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

信用卡内嵌半弹层通信规范API

使用方式

import { CreditIframeSdk } from 'credit-iframe-sdk'

页面初始化

const creditIframeSdk = new CreditIframeSdk();

调用关闭页面初始化api

creditIframeSdk.pageReady();

调用关闭半弹层api

creditIframeSdk.closePanel();

所有函数支持传递回调,在非内嵌场景执行回调

const param = { cb: ()=>{
  // 回调逻辑
}}
creditIframeSdk.updateResult(param);

有取现结果后通知外面单独做刷新动作

creditIframeSdk.updateResult();

调用关闭半弹层且通知外部刷新api

creditIframeSdk.closePanelAndUpdate();

调用刷新半弹层api

creditIframeSdk.refreshPanel();

默认index.min.js是cjs的,也提供了其他格式文件

dist/index.cjs.min.js 
dist/index.es.min.js 
dist/index.iife.min.js 
dist/index.umd.min.js

Readme

Keywords

none

Package Sidebar

Install

npm i credit-iframe-sdk

Weekly Downloads

2

Version

1.0.12

License

ISC

Unpacked Size

29 kB

Total Files

15

Last publish

Collaborators

  • arvinlin
  • ppmiao