sunmi-bridge
Advanced tools
+10
-0
@@ -19,2 +19,6 @@ /// <reference types="ua-parser-js" /> | ||
| } | ||
| interface pushToSunmiStore { | ||
| url: string; | ||
| data?: object; | ||
| } | ||
| interface ShowLoadingOption { | ||
@@ -31,2 +35,6 @@ content?: string; | ||
| userId: string; | ||
| sunmiStore: { | ||
| ssToken: string; | ||
| source: string; | ||
| }; | ||
| sunmiOpen: { | ||
@@ -47,2 +55,4 @@ appId: string; | ||
| pushWindow(params: SunmiJS.PushWindowOption): void; | ||
| pushToSunmiStore(params: SunmiJS.pushToSunmiStore): void; | ||
| popSunmiStore(params: any): void; | ||
| pushWindowWithClose(params: SunmiJS.PushWindowOption): void; | ||
@@ -49,0 +59,0 @@ callUp(phone: number): void; |
+10
-0
@@ -57,2 +57,8 @@ "use strict"; | ||
| } | ||
| pushToSunmiStore(params) { | ||
| SunmiJSBridge.call('pushToSunmiStore', params); | ||
| } | ||
| popSunmiStore(params) { | ||
| SunmiJSBridge.call('popSunmiStore', params); | ||
| } | ||
| // 打开新窗口 | ||
@@ -94,2 +100,6 @@ pushWindowWithClose(params) { | ||
| userId: '', | ||
| sunmiStore: { | ||
| ssToken: '', | ||
| source: '' | ||
| }, | ||
| sunmiOpen: { | ||
@@ -96,0 +106,0 @@ appId: '', |
+1
-1
| { | ||
| "name": "sunmi-bridge", | ||
| "version": "1.2.1", | ||
| "version": "1.2.2", | ||
| "description": "this is a javascript bridge", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
6580
10.29%189
11.83%