Commit f915efc8 authored by westzmg's avatar westzmg

增加openScreen功能

parent ffb23df5
...@@ -32,5 +32,6 @@ export default { ...@@ -32,5 +32,6 @@ export default {
{ path: '/uploadImage', component: '../pages/uploadImage' }, { path: '/uploadImage', component: '../pages/uploadImage' },
{ path: '/dialog', component: '../pages/dialog' }, { path: '/dialog', component: '../pages/dialog' },
{ path: '/baiduAI', component: '../pages/baiduAI' }, { path: '/baiduAI', component: '../pages/baiduAI' },
{ path: '/openScreen', component: '../pages/openScreen' },
] ]
} }
...@@ -50,6 +50,15 @@ options: { ...@@ -50,6 +50,15 @@ options: {
} }
``` ```
# 打开ReactNative中的页面,其功能几乎和Actions相同
### openScreen(options)
```
options: {
path: string, //主程序中定义的路由页面
props: object, //页面的props
}
```
# 获取坐标信息 # 获取坐标信息
### await getPosition() ### await getPosition()
``` ```
......
...@@ -93,6 +93,20 @@ export const closeWindow = async (opt) => { ...@@ -93,6 +93,20 @@ export const closeWindow = async (opt) => {
}) })
}; };
/*
* 打开ReactNative中的页面,其功能几乎和Actions相同
* @name openScreen
* options: {
* path: string, //主程序中定义的路由页面
* props: object, //页面的props
* }
*/
export const openScreen = async (opt) => {
return new Promise(async (resolve) => {
await invoke.bind("openScreen")(opt)
})
};
/* /*
* 获取坐标信息 * 获取坐标信息
* @name getPosition * @name getPosition
...@@ -458,6 +472,7 @@ export default { ...@@ -458,6 +472,7 @@ export default {
recordVideo, recordVideo,
barCodeScan, barCodeScan,
openWindow, openWindow,
openScreen,
closeWindow, closeWindow,
getPosition, getPosition,
launchCQDigitalSign, launchCQDigitalSign,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -329,70 +329,119 @@ export var closeWindow = /*#__PURE__*/function () { ...@@ -329,70 +329,119 @@ export var closeWindow = /*#__PURE__*/function () {
}; };
}(); }();
/* /*
* 打开ReactNative中的页面,其功能几乎和Actions相同
* @name openScreen
* options: {
* path: string, //主程序中定义的路由页面
* props: object, //页面的props
* }
*/
export var openScreen = /*#__PURE__*/function () {
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(opt) {
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
while (1) {
switch (_context15.prev = _context15.next) {
case 0:
return _context15.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(resolve) {
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
while (1) {
switch (_context14.prev = _context14.next) {
case 0:
_context14.next = 2;
return invoke.bind("openScreen")(opt);
case 2:
case "end":
return _context14.stop();
}
}
}, _callee14);
}));
return function (_x15) {
return _ref15.apply(this, arguments);
};
}()));
case 1:
case "end":
return _context15.stop();
}
}
}, _callee15);
}));
return function openScreen(_x14) {
return _ref14.apply(this, arguments);
};
}();
/*
* 获取坐标信息 * 获取坐标信息
* @name getPosition * @name getPosition
* @return * @return
*/ */
export var getPosition = /*#__PURE__*/function () { export var getPosition = /*#__PURE__*/function () {
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(opt) { var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(opt) {
return _regeneratorRuntime.wrap(function _callee16$(_context16) { return _regeneratorRuntime.wrap(function _callee18$(_context18) {
while (1) { while (1) {
switch (_context16.prev = _context16.next) { switch (_context18.prev = _context18.next) {
case 0: case 0:
return _context16.abrupt("return", new Promise( /*#__PURE__*/function () { return _context18.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(resolve) { var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(resolve) {
return _regeneratorRuntime.wrap(function _callee15$(_context15) { return _regeneratorRuntime.wrap(function _callee17$(_context17) {
while (1) { while (1) {
switch (_context15.prev = _context15.next) { switch (_context17.prev = _context17.next) {
case 0: case 0:
// invoke.define('getPosition', async (data) => {resolve(data)}); // invoke.define('getPosition', async (data) => {resolve(data)});
invoke.define('getPositionCompleted', /*#__PURE__*/function () { invoke.define('getPositionCompleted', /*#__PURE__*/function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(result) { var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(result) {
return _regeneratorRuntime.wrap(function _callee14$(_context14) { return _regeneratorRuntime.wrap(function _callee16$(_context16) {
while (1) { while (1) {
switch (_context14.prev = _context14.next) { switch (_context16.prev = _context16.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context14.stop(); return _context16.stop();
} }
} }
}, _callee14); }, _callee16);
})); }));
return function (_x16) { return function (_x18) {
return _ref16.apply(this, arguments); return _ref18.apply(this, arguments);
}; };
}()); }());
_context15.next = 3; _context17.next = 3;
return invoke.bind("getPosition")(opt); return invoke.bind("getPosition")(opt);
case 3: case 3:
case "end": case "end":
return _context15.stop(); return _context17.stop();
} }
} }
}, _callee15); }, _callee17);
})); }));
return function (_x15) { return function (_x17) {
return _ref15.apply(this, arguments); return _ref17.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context16.stop(); return _context18.stop();
} }
} }
}, _callee16); }, _callee18);
})); }));
return function getPosition(_x14) { return function getPosition(_x16) {
return _ref14.apply(this, arguments); return _ref16.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -402,64 +451,64 @@ export var getPosition = /*#__PURE__*/function () { ...@@ -402,64 +451,64 @@ export var getPosition = /*#__PURE__*/function () {
*/ */
export var launchCQDigitalSign = /*#__PURE__*/function () { export var launchCQDigitalSign = /*#__PURE__*/function () {
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(opt) { var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(opt) {
return _regeneratorRuntime.wrap(function _callee19$(_context19) { return _regeneratorRuntime.wrap(function _callee21$(_context21) {
while (1) { while (1) {
switch (_context19.prev = _context19.next) { switch (_context21.prev = _context21.next) {
case 0: case 0:
return _context19.abrupt("return", new Promise( /*#__PURE__*/function () { return _context21.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(resolve) { var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(resolve) {
return _regeneratorRuntime.wrap(function _callee18$(_context18) { return _regeneratorRuntime.wrap(function _callee20$(_context20) {
while (1) { while (1) {
switch (_context18.prev = _context18.next) { switch (_context20.prev = _context20.next) {
case 0: case 0:
// invoke.define('launchCQDigitalSign', async (data) => {resolve(data)}); // invoke.define('launchCQDigitalSign', async (data) => {resolve(data)});
invoke.define('launchCQDigitalSignCompleted', /*#__PURE__*/function () { invoke.define('launchCQDigitalSignCompleted', /*#__PURE__*/function () {
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(result) { var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(result) {
return _regeneratorRuntime.wrap(function _callee17$(_context17) { return _regeneratorRuntime.wrap(function _callee19$(_context19) {
while (1) { while (1) {
switch (_context17.prev = _context17.next) { switch (_context19.prev = _context19.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context17.stop(); return _context19.stop();
} }
} }
}, _callee17); }, _callee19);
})); }));
return function (_x19) { return function (_x21) {
return _ref19.apply(this, arguments); return _ref21.apply(this, arguments);
}; };
}()); }());
_context18.next = 3; _context20.next = 3;
return invoke.bind("launchCQDigitalSign")(opt); return invoke.bind("launchCQDigitalSign")(opt);
case 3: case 3:
case "end": case "end":
return _context18.stop(); return _context20.stop();
} }
} }
}, _callee18); }, _callee20);
})); }));
return function (_x18) { return function (_x20) {
return _ref18.apply(this, arguments); return _ref20.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context19.stop(); return _context21.stop();
} }
} }
}, _callee19); }, _callee21);
})); }));
return function launchCQDigitalSign(_x17) { return function launchCQDigitalSign(_x19) {
return _ref17.apply(this, arguments); return _ref19.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -469,64 +518,64 @@ export var launchCQDigitalSign = /*#__PURE__*/function () { ...@@ -469,64 +518,64 @@ export var launchCQDigitalSign = /*#__PURE__*/function () {
*/ */
export var launchFingerSign = /*#__PURE__*/function () { export var launchFingerSign = /*#__PURE__*/function () {
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(opt) { var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(opt) {
return _regeneratorRuntime.wrap(function _callee22$(_context22) { return _regeneratorRuntime.wrap(function _callee24$(_context24) {
while (1) { while (1) {
switch (_context22.prev = _context22.next) { switch (_context24.prev = _context24.next) {
case 0: case 0:
return _context22.abrupt("return", new Promise( /*#__PURE__*/function () { return _context24.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(resolve) { var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(resolve) {
return _regeneratorRuntime.wrap(function _callee21$(_context21) { return _regeneratorRuntime.wrap(function _callee23$(_context23) {
while (1) { while (1) {
switch (_context21.prev = _context21.next) { switch (_context23.prev = _context23.next) {
case 0: case 0:
// invoke.define('launchFingerSign', async (data) => {resolve(data)}); // invoke.define('launchFingerSign', async (data) => {resolve(data)});
invoke.define('launchFingerSignCompleted', /*#__PURE__*/function () { invoke.define('launchFingerSignCompleted', /*#__PURE__*/function () {
var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(result) { var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(result) {
return _regeneratorRuntime.wrap(function _callee20$(_context20) { return _regeneratorRuntime.wrap(function _callee22$(_context22) {
while (1) { while (1) {
switch (_context20.prev = _context20.next) { switch (_context22.prev = _context22.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context20.stop(); return _context22.stop();
} }
} }
}, _callee20); }, _callee22);
})); }));
return function (_x22) { return function (_x24) {
return _ref22.apply(this, arguments); return _ref24.apply(this, arguments);
}; };
}()); }());
_context21.next = 3; _context23.next = 3;
return invoke.bind("launchFingerSign")(opt); return invoke.bind("launchFingerSign")(opt);
case 3: case 3:
case "end": case "end":
return _context21.stop(); return _context23.stop();
} }
} }
}, _callee21); }, _callee23);
})); }));
return function (_x21) { return function (_x23) {
return _ref21.apply(this, arguments); return _ref23.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context22.stop(); return _context24.stop();
} }
} }
}, _callee22); }, _callee24);
})); }));
return function launchFingerSign(_x20) { return function launchFingerSign(_x22) {
return _ref20.apply(this, arguments); return _ref22.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -536,64 +585,64 @@ export var launchFingerSign = /*#__PURE__*/function () { ...@@ -536,64 +585,64 @@ export var launchFingerSign = /*#__PURE__*/function () {
*/ */
export var launchShare = /*#__PURE__*/function () { export var launchShare = /*#__PURE__*/function () {
var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(opt) { var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(opt) {
return _regeneratorRuntime.wrap(function _callee25$(_context25) { return _regeneratorRuntime.wrap(function _callee27$(_context27) {
while (1) { while (1) {
switch (_context25.prev = _context25.next) { switch (_context27.prev = _context27.next) {
case 0: case 0:
return _context25.abrupt("return", new Promise( /*#__PURE__*/function () { return _context27.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(resolve) { var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(resolve) {
return _regeneratorRuntime.wrap(function _callee24$(_context24) { return _regeneratorRuntime.wrap(function _callee26$(_context26) {
while (1) { while (1) {
switch (_context24.prev = _context24.next) { switch (_context26.prev = _context26.next) {
case 0: case 0:
// invoke.define('launchShare', async (data) => {resolve(data)}); // invoke.define('launchShare', async (data) => {resolve(data)});
invoke.define('launchShareCompleted', /*#__PURE__*/function () { invoke.define('launchShareCompleted', /*#__PURE__*/function () {
var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(result) { var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(result) {
return _regeneratorRuntime.wrap(function _callee23$(_context23) { return _regeneratorRuntime.wrap(function _callee25$(_context25) {
while (1) { while (1) {
switch (_context23.prev = _context23.next) { switch (_context25.prev = _context25.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context23.stop(); return _context25.stop();
} }
} }
}, _callee23); }, _callee25);
})); }));
return function (_x25) { return function (_x27) {
return _ref25.apply(this, arguments); return _ref27.apply(this, arguments);
}; };
}()); }());
_context24.next = 3; _context26.next = 3;
return invoke.bind("launchShare")(opt); return invoke.bind("launchShare")(opt);
case 3: case 3:
case "end": case "end":
return _context24.stop(); return _context26.stop();
} }
} }
}, _callee24); }, _callee26);
})); }));
return function (_x24) { return function (_x26) {
return _ref24.apply(this, arguments); return _ref26.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context25.stop(); return _context27.stop();
} }
} }
}, _callee25); }, _callee27);
})); }));
return function launchShare(_x23) { return function launchShare(_x25) {
return _ref23.apply(this, arguments); return _ref25.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -603,64 +652,64 @@ export var launchShare = /*#__PURE__*/function () { ...@@ -603,64 +652,64 @@ export var launchShare = /*#__PURE__*/function () {
*/ */
export var getToken = /*#__PURE__*/function () { export var getToken = /*#__PURE__*/function () {
var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() { var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
return _regeneratorRuntime.wrap(function _callee28$(_context28) { return _regeneratorRuntime.wrap(function _callee30$(_context30) {
while (1) { while (1) {
switch (_context28.prev = _context28.next) { switch (_context30.prev = _context30.next) {
case 0: case 0:
return _context28.abrupt("return", new Promise( /*#__PURE__*/function () { return _context30.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(resolve) { var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(resolve) {
return _regeneratorRuntime.wrap(function _callee27$(_context27) { return _regeneratorRuntime.wrap(function _callee29$(_context29) {
while (1) { while (1) {
switch (_context27.prev = _context27.next) { switch (_context29.prev = _context29.next) {
case 0: case 0:
// invoke.define('getToken', async () => {resolve()}); // invoke.define('getToken', async () => {resolve()});
invoke.define('getTokenCompleted', /*#__PURE__*/function () { invoke.define('getTokenCompleted', /*#__PURE__*/function () {
var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(result) { var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(result) {
return _regeneratorRuntime.wrap(function _callee26$(_context26) { return _regeneratorRuntime.wrap(function _callee28$(_context28) {
while (1) { while (1) {
switch (_context26.prev = _context26.next) { switch (_context28.prev = _context28.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context26.stop(); return _context28.stop();
} }
} }
}, _callee26); }, _callee28);
})); }));
return function (_x27) { return function (_x29) {
return _ref28.apply(this, arguments); return _ref30.apply(this, arguments);
}; };
}()); }());
_context27.next = 3; _context29.next = 3;
return invoke.bind("getToken")(); return invoke.bind("getToken")();
case 3: case 3:
case "end": case "end":
return _context27.stop(); return _context29.stop();
} }
} }
}, _callee27); }, _callee29);
})); }));
return function (_x26) { return function (_x28) {
return _ref27.apply(this, arguments); return _ref29.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context28.stop(); return _context30.stop();
} }
} }
}, _callee28); }, _callee30);
})); }));
return function getToken() { return function getToken() {
return _ref26.apply(this, arguments); return _ref28.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -670,64 +719,64 @@ export var getToken = /*#__PURE__*/function () { ...@@ -670,64 +719,64 @@ export var getToken = /*#__PURE__*/function () {
*/ */
export var getCurrProject = /*#__PURE__*/function () { export var getCurrProject = /*#__PURE__*/function () {
var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() { var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
return _regeneratorRuntime.wrap(function _callee31$(_context31) { return _regeneratorRuntime.wrap(function _callee33$(_context33) {
while (1) { while (1) {
switch (_context31.prev = _context31.next) { switch (_context33.prev = _context33.next) {
case 0: case 0:
return _context31.abrupt("return", new Promise( /*#__PURE__*/function () { return _context33.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(resolve) { var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(resolve) {
return _regeneratorRuntime.wrap(function _callee30$(_context30) { return _regeneratorRuntime.wrap(function _callee32$(_context32) {
while (1) { while (1) {
switch (_context30.prev = _context30.next) { switch (_context32.prev = _context32.next) {
case 0: case 0:
// invoke.define('getToken', async () => {resolve()}); // invoke.define('getToken', async () => {resolve()});
invoke.define('getCurrProjectCompleted', /*#__PURE__*/function () { invoke.define('getCurrProjectCompleted', /*#__PURE__*/function () {
var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(result) { var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(result) {
return _regeneratorRuntime.wrap(function _callee29$(_context29) { return _regeneratorRuntime.wrap(function _callee31$(_context31) {
while (1) { while (1) {
switch (_context29.prev = _context29.next) { switch (_context31.prev = _context31.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context29.stop(); return _context31.stop();
} }
} }
}, _callee29); }, _callee31);
})); }));
return function (_x29) { return function (_x31) {
return _ref31.apply(this, arguments); return _ref33.apply(this, arguments);
}; };
}()); }());
_context30.next = 3; _context32.next = 3;
return invoke.bind("getCurrProject")(); return invoke.bind("getCurrProject")();
case 3: case 3:
case "end": case "end":
return _context30.stop(); return _context32.stop();
} }
} }
}, _callee30); }, _callee32);
})); }));
return function (_x28) { return function (_x30) {
return _ref30.apply(this, arguments); return _ref32.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context31.stop(); return _context33.stop();
} }
} }
}, _callee31); }, _callee33);
})); }));
return function getCurrProject() { return function getCurrProject() {
return _ref29.apply(this, arguments); return _ref31.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -738,43 +787,43 @@ export var getCurrProject = /*#__PURE__*/function () { ...@@ -738,43 +787,43 @@ export var getCurrProject = /*#__PURE__*/function () {
*/ */
export var previewImage = /*#__PURE__*/function () { export var previewImage = /*#__PURE__*/function () {
var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(opt) { var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(opt) {
return _regeneratorRuntime.wrap(function _callee33$(_context33) { return _regeneratorRuntime.wrap(function _callee35$(_context35) {
while (1) { while (1) {
switch (_context33.prev = _context33.next) { switch (_context35.prev = _context35.next) {
case 0: case 0:
return _context33.abrupt("return", new Promise( /*#__PURE__*/function () { return _context35.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(resolve) { var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(resolve) {
return _regeneratorRuntime.wrap(function _callee32$(_context32) { return _regeneratorRuntime.wrap(function _callee34$(_context34) {
while (1) { while (1) {
switch (_context32.prev = _context32.next) { switch (_context34.prev = _context34.next) {
case 0: case 0:
_context32.next = 2; _context34.next = 2;
return invoke.bind("previewImage")(opt); return invoke.bind("previewImage")(opt);
case 2: case 2:
case "end": case "end":
return _context32.stop(); return _context34.stop();
} }
} }
}, _callee32); }, _callee34);
})); }));
return function (_x31) { return function (_x33) {
return _ref33.apply(this, arguments); return _ref35.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context33.stop(); return _context35.stop();
} }
} }
}, _callee33); }, _callee35);
})); }));
return function previewImage(_x30) { return function previewImage(_x32) {
return _ref32.apply(this, arguments); return _ref34.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -789,63 +838,63 @@ export var previewImage = /*#__PURE__*/function () { ...@@ -789,63 +838,63 @@ export var previewImage = /*#__PURE__*/function () {
*/ */
export var getUpToken = /*#__PURE__*/function () { export var getUpToken = /*#__PURE__*/function () {
var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(opt) { var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(opt) {
return _regeneratorRuntime.wrap(function _callee36$(_context36) { return _regeneratorRuntime.wrap(function _callee38$(_context38) {
while (1) { while (1) {
switch (_context36.prev = _context36.next) { switch (_context38.prev = _context38.next) {
case 0: case 0:
return _context36.abrupt("return", new Promise( /*#__PURE__*/function () { return _context38.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(resolve) { var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(resolve) {
return _regeneratorRuntime.wrap(function _callee35$(_context35) { return _regeneratorRuntime.wrap(function _callee37$(_context37) {
while (1) { while (1) {
switch (_context35.prev = _context35.next) { switch (_context37.prev = _context37.next) {
case 0: case 0:
invoke.define('getUpTokenCompleted', /*#__PURE__*/function () { invoke.define('getUpTokenCompleted', /*#__PURE__*/function () {
var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(result) { var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(result) {
return _regeneratorRuntime.wrap(function _callee34$(_context34) { return _regeneratorRuntime.wrap(function _callee36$(_context36) {
while (1) { while (1) {
switch (_context34.prev = _context34.next) { switch (_context36.prev = _context36.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context34.stop(); return _context36.stop();
} }
} }
}, _callee34); }, _callee36);
})); }));
return function (_x34) { return function (_x36) {
return _ref36.apply(this, arguments); return _ref38.apply(this, arguments);
}; };
}()); }());
_context35.next = 3; _context37.next = 3;
return invoke.bind("getUpToken")(opt); return invoke.bind("getUpToken")(opt);
case 3: case 3:
case "end": case "end":
return _context35.stop(); return _context37.stop();
} }
} }
}, _callee35); }, _callee37);
})); }));
return function (_x33) { return function (_x35) {
return _ref35.apply(this, arguments); return _ref37.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context36.stop(); return _context38.stop();
} }
} }
}, _callee36); }, _callee38);
})); }));
return function getUpToken(_x32) { return function getUpToken(_x34) {
return _ref34.apply(this, arguments); return _ref36.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -858,63 +907,63 @@ export var getUpToken = /*#__PURE__*/function () { ...@@ -858,63 +907,63 @@ export var getUpToken = /*#__PURE__*/function () {
*/ */
export var uploadImage = /*#__PURE__*/function () { export var uploadImage = /*#__PURE__*/function () {
var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(opt) { var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(opt) {
return _regeneratorRuntime.wrap(function _callee39$(_context39) { return _regeneratorRuntime.wrap(function _callee41$(_context41) {
while (1) { while (1) {
switch (_context39.prev = _context39.next) { switch (_context41.prev = _context41.next) {
case 0: case 0:
return _context39.abrupt("return", new Promise( /*#__PURE__*/function () { return _context41.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(resolve) { var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(resolve) {
return _regeneratorRuntime.wrap(function _callee38$(_context38) { return _regeneratorRuntime.wrap(function _callee40$(_context40) {
while (1) { while (1) {
switch (_context38.prev = _context38.next) { switch (_context40.prev = _context40.next) {
case 0: case 0:
invoke.define('uploadImageCompleted', /*#__PURE__*/function () { invoke.define('uploadImageCompleted', /*#__PURE__*/function () {
var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(result) { var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(result) {
return _regeneratorRuntime.wrap(function _callee37$(_context37) { return _regeneratorRuntime.wrap(function _callee39$(_context39) {
while (1) { while (1) {
switch (_context37.prev = _context37.next) { switch (_context39.prev = _context39.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context37.stop(); return _context39.stop();
} }
} }
}, _callee37); }, _callee39);
})); }));
return function (_x37) { return function (_x39) {
return _ref39.apply(this, arguments); return _ref41.apply(this, arguments);
}; };
}()); }());
_context38.next = 3; _context40.next = 3;
return invoke.bind("uploadImage")(opt); return invoke.bind("uploadImage")(opt);
case 3: case 3:
case "end": case "end":
return _context38.stop(); return _context40.stop();
} }
} }
}, _callee38); }, _callee40);
})); }));
return function (_x36) { return function (_x38) {
return _ref38.apply(this, arguments); return _ref40.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context39.stop(); return _context41.stop();
} }
} }
}, _callee39); }, _callee41);
})); }));
return function uploadImage(_x35) { return function uploadImage(_x37) {
return _ref37.apply(this, arguments); return _ref39.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -930,63 +979,63 @@ export var uploadImage = /*#__PURE__*/function () { ...@@ -930,63 +979,63 @@ export var uploadImage = /*#__PURE__*/function () {
*/ */
export var uploadImageThrough = /*#__PURE__*/function () { export var uploadImageThrough = /*#__PURE__*/function () {
var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(opt) { var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(opt) {
return _regeneratorRuntime.wrap(function _callee42$(_context42) { return _regeneratorRuntime.wrap(function _callee44$(_context44) {
while (1) { while (1) {
switch (_context42.prev = _context42.next) { switch (_context44.prev = _context44.next) {
case 0: case 0:
return _context42.abrupt("return", new Promise( /*#__PURE__*/function () { return _context44.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(resolve) { var _ref43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(resolve) {
return _regeneratorRuntime.wrap(function _callee41$(_context41) { return _regeneratorRuntime.wrap(function _callee43$(_context43) {
while (1) { while (1) {
switch (_context41.prev = _context41.next) { switch (_context43.prev = _context43.next) {
case 0: case 0:
invoke.define('uploadImageThroughCompleted', /*#__PURE__*/function () { invoke.define('uploadImageThroughCompleted', /*#__PURE__*/function () {
var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(result) { var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(result) {
return _regeneratorRuntime.wrap(function _callee40$(_context40) { return _regeneratorRuntime.wrap(function _callee42$(_context42) {
while (1) { while (1) {
switch (_context40.prev = _context40.next) { switch (_context42.prev = _context42.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context40.stop(); return _context42.stop();
} }
} }
}, _callee40); }, _callee42);
})); }));
return function (_x40) { return function (_x42) {
return _ref42.apply(this, arguments); return _ref44.apply(this, arguments);
}; };
}()); }());
_context41.next = 3; _context43.next = 3;
return invoke.bind("uploadImageThrough")(opt); return invoke.bind("uploadImageThrough")(opt);
case 3: case 3:
case "end": case "end":
return _context41.stop(); return _context43.stop();
} }
} }
}, _callee41); }, _callee43);
})); }));
return function (_x39) { return function (_x41) {
return _ref41.apply(this, arguments); return _ref43.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context42.stop(); return _context44.stop();
} }
} }
}, _callee42); }, _callee44);
})); }));
return function uploadImageThrough(_x38) { return function uploadImageThrough(_x40) {
return _ref40.apply(this, arguments); return _ref42.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1004,63 +1053,63 @@ export var uploadImageThrough = /*#__PURE__*/function () { ...@@ -1004,63 +1053,63 @@ export var uploadImageThrough = /*#__PURE__*/function () {
*/ */
export var takePhotoAndUpload = /*#__PURE__*/function () { export var takePhotoAndUpload = /*#__PURE__*/function () {
var _ref43 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(opt) { var _ref45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(opt) {
return _regeneratorRuntime.wrap(function _callee45$(_context45) { return _regeneratorRuntime.wrap(function _callee47$(_context47) {
while (1) { while (1) {
switch (_context45.prev = _context45.next) { switch (_context47.prev = _context47.next) {
case 0: case 0:
return _context45.abrupt("return", new Promise( /*#__PURE__*/function () { return _context47.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(resolve) { var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(resolve) {
return _regeneratorRuntime.wrap(function _callee44$(_context44) { return _regeneratorRuntime.wrap(function _callee46$(_context46) {
while (1) { while (1) {
switch (_context44.prev = _context44.next) { switch (_context46.prev = _context46.next) {
case 0: case 0:
invoke.define('takePhotoAndUploadCompleted', /*#__PURE__*/function () { invoke.define('takePhotoAndUploadCompleted', /*#__PURE__*/function () {
var _ref45 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(result) { var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(result) {
return _regeneratorRuntime.wrap(function _callee43$(_context43) { return _regeneratorRuntime.wrap(function _callee45$(_context45) {
while (1) { while (1) {
switch (_context43.prev = _context43.next) { switch (_context45.prev = _context45.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context43.stop(); return _context45.stop();
} }
} }
}, _callee43); }, _callee45);
})); }));
return function (_x43) { return function (_x45) {
return _ref45.apply(this, arguments); return _ref47.apply(this, arguments);
}; };
}()); }());
_context44.next = 3; _context46.next = 3;
return invoke.bind("takePhotoAndUpload")(opt); return invoke.bind("takePhotoAndUpload")(opt);
case 3: case 3:
case "end": case "end":
return _context44.stop(); return _context46.stop();
} }
} }
}, _callee44); }, _callee46);
})); }));
return function (_x42) { return function (_x44) {
return _ref44.apply(this, arguments); return _ref46.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context45.stop(); return _context47.stop();
} }
} }
}, _callee45); }, _callee47);
})); }));
return function takePhotoAndUpload(_x41) { return function takePhotoAndUpload(_x43) {
return _ref43.apply(this, arguments); return _ref45.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1076,63 +1125,63 @@ export var takePhotoAndUpload = /*#__PURE__*/function () { ...@@ -1076,63 +1125,63 @@ export var takePhotoAndUpload = /*#__PURE__*/function () {
*/ */
export var choosePhotoAndUpload = /*#__PURE__*/function () { export var choosePhotoAndUpload = /*#__PURE__*/function () {
var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(opt) { var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(opt) {
return _regeneratorRuntime.wrap(function _callee48$(_context48) { return _regeneratorRuntime.wrap(function _callee50$(_context50) {
while (1) { while (1) {
switch (_context48.prev = _context48.next) { switch (_context50.prev = _context50.next) {
case 0: case 0:
return _context48.abrupt("return", new Promise( /*#__PURE__*/function () { return _context50.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(resolve) { var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(resolve) {
return _regeneratorRuntime.wrap(function _callee47$(_context47) { return _regeneratorRuntime.wrap(function _callee49$(_context49) {
while (1) { while (1) {
switch (_context47.prev = _context47.next) { switch (_context49.prev = _context49.next) {
case 0: case 0:
invoke.define('choosePhotoAndUploadCompleted', /*#__PURE__*/function () { invoke.define('choosePhotoAndUploadCompleted', /*#__PURE__*/function () {
var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(result) { var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(result) {
return _regeneratorRuntime.wrap(function _callee46$(_context46) { return _regeneratorRuntime.wrap(function _callee48$(_context48) {
while (1) { while (1) {
switch (_context46.prev = _context46.next) { switch (_context48.prev = _context48.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context46.stop(); return _context48.stop();
} }
} }
}, _callee46); }, _callee48);
})); }));
return function (_x46) { return function (_x48) {
return _ref48.apply(this, arguments); return _ref50.apply(this, arguments);
}; };
}()); }());
_context47.next = 3; _context49.next = 3;
return invoke.bind("choosePhotoAndUpload")(opt); return invoke.bind("choosePhotoAndUpload")(opt);
case 3: case 3:
case "end": case "end":
return _context47.stop(); return _context49.stop();
} }
} }
}, _callee47); }, _callee49);
})); }));
return function (_x45) { return function (_x47) {
return _ref47.apply(this, arguments); return _ref49.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context48.stop(); return _context50.stop();
} }
} }
}, _callee48); }, _callee50);
})); }));
return function choosePhotoAndUpload(_x44) { return function choosePhotoAndUpload(_x46) {
return _ref46.apply(this, arguments); return _ref48.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1156,63 +1205,63 @@ export var choosePhotoAndUpload = /*#__PURE__*/function () { ...@@ -1156,63 +1205,63 @@ export var choosePhotoAndUpload = /*#__PURE__*/function () {
*/ */
export var getPhotoAndUpload = /*#__PURE__*/function () { export var getPhotoAndUpload = /*#__PURE__*/function () {
var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(opt) { var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(opt) {
return _regeneratorRuntime.wrap(function _callee51$(_context51) { return _regeneratorRuntime.wrap(function _callee53$(_context53) {
while (1) { while (1) {
switch (_context51.prev = _context51.next) { switch (_context53.prev = _context53.next) {
case 0: case 0:
return _context51.abrupt("return", new Promise( /*#__PURE__*/function () { return _context53.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(resolve) { var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(resolve) {
return _regeneratorRuntime.wrap(function _callee50$(_context50) { return _regeneratorRuntime.wrap(function _callee52$(_context52) {
while (1) { while (1) {
switch (_context50.prev = _context50.next) { switch (_context52.prev = _context52.next) {
case 0: case 0:
invoke.define('getPhotoAndUploadCompleted', /*#__PURE__*/function () { invoke.define('getPhotoAndUploadCompleted', /*#__PURE__*/function () {
var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(result) { var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(result) {
return _regeneratorRuntime.wrap(function _callee49$(_context49) { return _regeneratorRuntime.wrap(function _callee51$(_context51) {
while (1) { while (1) {
switch (_context49.prev = _context49.next) { switch (_context51.prev = _context51.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context49.stop(); return _context51.stop();
} }
} }
}, _callee49); }, _callee51);
})); }));
return function (_x49) { return function (_x51) {
return _ref51.apply(this, arguments); return _ref53.apply(this, arguments);
}; };
}()); }());
_context50.next = 3; _context52.next = 3;
return invoke.bind("getPhotoAndUpload")(opt); return invoke.bind("getPhotoAndUpload")(opt);
case 3: case 3:
case "end": case "end":
return _context50.stop(); return _context52.stop();
} }
} }
}, _callee50); }, _callee52);
})); }));
return function (_x48) { return function (_x50) {
return _ref50.apply(this, arguments); return _ref52.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context51.stop(); return _context53.stop();
} }
} }
}, _callee51); }, _callee53);
})); }));
return function getPhotoAndUpload(_x47) { return function getPhotoAndUpload(_x49) {
return _ref49.apply(this, arguments); return _ref51.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1225,63 +1274,63 @@ export var getPhotoAndUpload = /*#__PURE__*/function () { ...@@ -1225,63 +1274,63 @@ export var getPhotoAndUpload = /*#__PURE__*/function () {
*/ */
export var alertDialog = /*#__PURE__*/function () { export var alertDialog = /*#__PURE__*/function () {
var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(opt) { var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(opt) {
return _regeneratorRuntime.wrap(function _callee54$(_context54) { return _regeneratorRuntime.wrap(function _callee56$(_context56) {
while (1) { while (1) {
switch (_context54.prev = _context54.next) { switch (_context56.prev = _context56.next) {
case 0: case 0:
return _context54.abrupt("return", new Promise( /*#__PURE__*/function () { return _context56.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(resolve) { var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(resolve) {
return _regeneratorRuntime.wrap(function _callee53$(_context53) { return _regeneratorRuntime.wrap(function _callee55$(_context55) {
while (1) { while (1) {
switch (_context53.prev = _context53.next) { switch (_context55.prev = _context55.next) {
case 0: case 0:
invoke.define('alertDialogCompleted', /*#__PURE__*/function () { invoke.define('alertDialogCompleted', /*#__PURE__*/function () {
var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(result) { var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(result) {
return _regeneratorRuntime.wrap(function _callee52$(_context52) { return _regeneratorRuntime.wrap(function _callee54$(_context54) {
while (1) { while (1) {
switch (_context52.prev = _context52.next) { switch (_context54.prev = _context54.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context52.stop(); return _context54.stop();
} }
} }
}, _callee52); }, _callee54);
})); }));
return function (_x52) { return function (_x54) {
return _ref54.apply(this, arguments); return _ref56.apply(this, arguments);
}; };
}()); }());
_context53.next = 3; _context55.next = 3;
return invoke.bind("alertDialog")(opt); return invoke.bind("alertDialog")(opt);
case 3: case 3:
case "end": case "end":
return _context53.stop(); return _context55.stop();
} }
} }
}, _callee53); }, _callee55);
})); }));
return function (_x51) { return function (_x53) {
return _ref53.apply(this, arguments); return _ref55.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context54.stop(); return _context56.stop();
} }
} }
}, _callee54); }, _callee56);
})); }));
return function alertDialog(_x50) { return function alertDialog(_x52) {
return _ref52.apply(this, arguments); return _ref54.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1294,63 +1343,63 @@ export var alertDialog = /*#__PURE__*/function () { ...@@ -1294,63 +1343,63 @@ export var alertDialog = /*#__PURE__*/function () {
*/ */
export var confirmDialog = /*#__PURE__*/function () { export var confirmDialog = /*#__PURE__*/function () {
var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(opt) { var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(opt) {
return _regeneratorRuntime.wrap(function _callee57$(_context57) { return _regeneratorRuntime.wrap(function _callee59$(_context59) {
while (1) { while (1) {
switch (_context57.prev = _context57.next) { switch (_context59.prev = _context59.next) {
case 0: case 0:
return _context57.abrupt("return", new Promise( /*#__PURE__*/function () { return _context59.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(resolve) { var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(resolve) {
return _regeneratorRuntime.wrap(function _callee56$(_context56) { return _regeneratorRuntime.wrap(function _callee58$(_context58) {
while (1) { while (1) {
switch (_context56.prev = _context56.next) { switch (_context58.prev = _context58.next) {
case 0: case 0:
invoke.define('confirmDialogCompleted', /*#__PURE__*/function () { invoke.define('confirmDialogCompleted', /*#__PURE__*/function () {
var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(result) { var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(result) {
return _regeneratorRuntime.wrap(function _callee55$(_context55) { return _regeneratorRuntime.wrap(function _callee57$(_context57) {
while (1) { while (1) {
switch (_context55.prev = _context55.next) { switch (_context57.prev = _context57.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context55.stop(); return _context57.stop();
} }
} }
}, _callee55); }, _callee57);
})); }));
return function (_x55) { return function (_x57) {
return _ref57.apply(this, arguments); return _ref59.apply(this, arguments);
}; };
}()); }());
_context56.next = 3; _context58.next = 3;
return invoke.bind("confirmDialog")(opt); return invoke.bind("confirmDialog")(opt);
case 3: case 3:
case "end": case "end":
return _context56.stop(); return _context58.stop();
} }
} }
}, _callee56); }, _callee58);
})); }));
return function (_x54) { return function (_x56) {
return _ref56.apply(this, arguments); return _ref58.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context57.stop(); return _context59.stop();
} }
} }
}, _callee57); }, _callee59);
})); }));
return function confirmDialog(_x53) { return function confirmDialog(_x55) {
return _ref55.apply(this, arguments); return _ref57.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1363,63 +1412,63 @@ export var confirmDialog = /*#__PURE__*/function () { ...@@ -1363,63 +1412,63 @@ export var confirmDialog = /*#__PURE__*/function () {
*/ */
export var inputDialog = /*#__PURE__*/function () { export var inputDialog = /*#__PURE__*/function () {
var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(opt) { var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(opt) {
return _regeneratorRuntime.wrap(function _callee60$(_context60) { return _regeneratorRuntime.wrap(function _callee62$(_context62) {
while (1) { while (1) {
switch (_context60.prev = _context60.next) { switch (_context62.prev = _context62.next) {
case 0: case 0:
return _context60.abrupt("return", new Promise( /*#__PURE__*/function () { return _context62.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(resolve) { var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(resolve) {
return _regeneratorRuntime.wrap(function _callee59$(_context59) { return _regeneratorRuntime.wrap(function _callee61$(_context61) {
while (1) { while (1) {
switch (_context59.prev = _context59.next) { switch (_context61.prev = _context61.next) {
case 0: case 0:
invoke.define('inputDialogCompleted', /*#__PURE__*/function () { invoke.define('inputDialogCompleted', /*#__PURE__*/function () {
var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(result) { var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(result) {
return _regeneratorRuntime.wrap(function _callee58$(_context58) { return _regeneratorRuntime.wrap(function _callee60$(_context60) {
while (1) { while (1) {
switch (_context58.prev = _context58.next) { switch (_context60.prev = _context60.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context58.stop(); return _context60.stop();
} }
} }
}, _callee58); }, _callee60);
})); }));
return function (_x58) { return function (_x60) {
return _ref60.apply(this, arguments); return _ref62.apply(this, arguments);
}; };
}()); }());
_context59.next = 3; _context61.next = 3;
return invoke.bind("inputDialog")(opt); return invoke.bind("inputDialog")(opt);
case 3: case 3:
case "end": case "end":
return _context59.stop(); return _context61.stop();
} }
} }
}, _callee59); }, _callee61);
})); }));
return function (_x57) { return function (_x59) {
return _ref59.apply(this, arguments); return _ref61.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context60.stop(); return _context62.stop();
} }
} }
}, _callee60); }, _callee62);
})); }));
return function inputDialog(_x56) { return function inputDialog(_x58) {
return _ref58.apply(this, arguments); return _ref60.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1434,63 +1483,63 @@ export var inputDialog = /*#__PURE__*/function () { ...@@ -1434,63 +1483,63 @@ export var inputDialog = /*#__PURE__*/function () {
*/ */
export var liveDetect = /*#__PURE__*/function () { export var liveDetect = /*#__PURE__*/function () {
var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(opt) { var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(opt) {
return _regeneratorRuntime.wrap(function _callee63$(_context63) { return _regeneratorRuntime.wrap(function _callee65$(_context65) {
while (1) { while (1) {
switch (_context63.prev = _context63.next) { switch (_context65.prev = _context65.next) {
case 0: case 0:
return _context63.abrupt("return", new Promise( /*#__PURE__*/function () { return _context65.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(resolve) { var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(resolve) {
return _regeneratorRuntime.wrap(function _callee62$(_context62) { return _regeneratorRuntime.wrap(function _callee64$(_context64) {
while (1) { while (1) {
switch (_context62.prev = _context62.next) { switch (_context64.prev = _context64.next) {
case 0: case 0:
invoke.define('liveDetectCompleted', /*#__PURE__*/function () { invoke.define('liveDetectCompleted', /*#__PURE__*/function () {
var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(result) { var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(result) {
return _regeneratorRuntime.wrap(function _callee61$(_context61) { return _regeneratorRuntime.wrap(function _callee63$(_context63) {
while (1) { while (1) {
switch (_context61.prev = _context61.next) { switch (_context63.prev = _context63.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context61.stop(); return _context63.stop();
} }
} }
}, _callee61); }, _callee63);
})); }));
return function (_x61) { return function (_x63) {
return _ref63.apply(this, arguments); return _ref65.apply(this, arguments);
}; };
}()); }());
_context62.next = 3; _context64.next = 3;
return invoke.bind("liveDetect")(opt); return invoke.bind("liveDetect")(opt);
case 3: case 3:
case "end": case "end":
return _context62.stop(); return _context64.stop();
} }
} }
}, _callee62); }, _callee64);
})); }));
return function (_x60) { return function (_x62) {
return _ref62.apply(this, arguments); return _ref64.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context63.stop(); return _context65.stop();
} }
} }
}, _callee63); }, _callee65);
})); }));
return function liveDetect(_x59) { return function liveDetect(_x61) {
return _ref61.apply(this, arguments); return _ref63.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1503,63 +1552,63 @@ export var liveDetect = /*#__PURE__*/function () { ...@@ -1503,63 +1552,63 @@ export var liveDetect = /*#__PURE__*/function () {
*/ */
export var takeIdCard = /*#__PURE__*/function () { export var takeIdCard = /*#__PURE__*/function () {
var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(opt) { var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(opt) {
return _regeneratorRuntime.wrap(function _callee66$(_context66) { return _regeneratorRuntime.wrap(function _callee68$(_context68) {
while (1) { while (1) {
switch (_context66.prev = _context66.next) { switch (_context68.prev = _context68.next) {
case 0: case 0:
return _context66.abrupt("return", new Promise( /*#__PURE__*/function () { return _context68.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(resolve) { var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(resolve) {
return _regeneratorRuntime.wrap(function _callee65$(_context65) { return _regeneratorRuntime.wrap(function _callee67$(_context67) {
while (1) { while (1) {
switch (_context65.prev = _context65.next) { switch (_context67.prev = _context67.next) {
case 0: case 0:
invoke.define('takeIdCardCompleted', /*#__PURE__*/function () { invoke.define('takeIdCardCompleted', /*#__PURE__*/function () {
var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(result) { var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(result) {
return _regeneratorRuntime.wrap(function _callee64$(_context64) { return _regeneratorRuntime.wrap(function _callee66$(_context66) {
while (1) { while (1) {
switch (_context64.prev = _context64.next) { switch (_context66.prev = _context66.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context64.stop(); return _context66.stop();
} }
} }
}, _callee64); }, _callee66);
})); }));
return function (_x64) { return function (_x66) {
return _ref66.apply(this, arguments); return _ref68.apply(this, arguments);
}; };
}()); }());
_context65.next = 3; _context67.next = 3;
return invoke.bind("takeIdCard")(opt); return invoke.bind("takeIdCard")(opt);
case 3: case 3:
case "end": case "end":
return _context65.stop(); return _context67.stop();
} }
} }
}, _callee65); }, _callee67);
})); }));
return function (_x63) { return function (_x65) {
return _ref65.apply(this, arguments); return _ref67.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context66.stop(); return _context68.stop();
} }
} }
}, _callee66); }, _callee68);
})); }));
return function takeIdCard(_x62) { return function takeIdCard(_x64) {
return _ref64.apply(this, arguments); return _ref66.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1571,63 +1620,63 @@ export var takeIdCard = /*#__PURE__*/function () { ...@@ -1571,63 +1620,63 @@ export var takeIdCard = /*#__PURE__*/function () {
*/ */
export var scanCarNo = /*#__PURE__*/function () { export var scanCarNo = /*#__PURE__*/function () {
var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(opt) { var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(opt) {
return _regeneratorRuntime.wrap(function _callee69$(_context69) { return _regeneratorRuntime.wrap(function _callee71$(_context71) {
while (1) { while (1) {
switch (_context69.prev = _context69.next) { switch (_context71.prev = _context71.next) {
case 0: case 0:
return _context69.abrupt("return", new Promise( /*#__PURE__*/function () { return _context71.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(resolve) { var _ref70 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(resolve) {
return _regeneratorRuntime.wrap(function _callee68$(_context68) { return _regeneratorRuntime.wrap(function _callee70$(_context70) {
while (1) { while (1) {
switch (_context68.prev = _context68.next) { switch (_context70.prev = _context70.next) {
case 0: case 0:
invoke.define('scanCarNoCompleted', /*#__PURE__*/function () { invoke.define('scanCarNoCompleted', /*#__PURE__*/function () {
var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(result) { var _ref71 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(result) {
return _regeneratorRuntime.wrap(function _callee67$(_context67) { return _regeneratorRuntime.wrap(function _callee69$(_context69) {
while (1) { while (1) {
switch (_context67.prev = _context67.next) { switch (_context69.prev = _context69.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context67.stop(); return _context69.stop();
} }
} }
}, _callee67); }, _callee69);
})); }));
return function (_x67) { return function (_x69) {
return _ref69.apply(this, arguments); return _ref71.apply(this, arguments);
}; };
}()); }());
_context68.next = 3; _context70.next = 3;
return invoke.bind("scanCarNo")(opt); return invoke.bind("scanCarNo")(opt);
case 3: case 3:
case "end": case "end":
return _context68.stop(); return _context70.stop();
} }
} }
}, _callee68); }, _callee70);
})); }));
return function (_x66) { return function (_x68) {
return _ref68.apply(this, arguments); return _ref70.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context69.stop(); return _context71.stop();
} }
} }
}, _callee69); }, _callee71);
})); }));
return function scanCarNo(_x65) { return function scanCarNo(_x67) {
return _ref67.apply(this, arguments); return _ref69.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1639,63 +1688,63 @@ export var scanCarNo = /*#__PURE__*/function () { ...@@ -1639,63 +1688,63 @@ export var scanCarNo = /*#__PURE__*/function () {
*/ */
export var scanBusinessLicense = /*#__PURE__*/function () { export var scanBusinessLicense = /*#__PURE__*/function () {
var _ref70 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(opt) { var _ref72 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(opt) {
return _regeneratorRuntime.wrap(function _callee72$(_context72) { return _regeneratorRuntime.wrap(function _callee74$(_context74) {
while (1) { while (1) {
switch (_context72.prev = _context72.next) { switch (_context74.prev = _context74.next) {
case 0: case 0:
return _context72.abrupt("return", new Promise( /*#__PURE__*/function () { return _context74.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref71 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(resolve) { var _ref73 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(resolve) {
return _regeneratorRuntime.wrap(function _callee71$(_context71) { return _regeneratorRuntime.wrap(function _callee73$(_context73) {
while (1) { while (1) {
switch (_context71.prev = _context71.next) { switch (_context73.prev = _context73.next) {
case 0: case 0:
invoke.define('scanBusinessLicenseCompleted', /*#__PURE__*/function () { invoke.define('scanBusinessLicenseCompleted', /*#__PURE__*/function () {
var _ref72 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(result) { var _ref74 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(result) {
return _regeneratorRuntime.wrap(function _callee70$(_context70) { return _regeneratorRuntime.wrap(function _callee72$(_context72) {
while (1) { while (1) {
switch (_context70.prev = _context70.next) { switch (_context72.prev = _context72.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context70.stop(); return _context72.stop();
} }
} }
}, _callee70); }, _callee72);
})); }));
return function (_x70) { return function (_x72) {
return _ref72.apply(this, arguments); return _ref74.apply(this, arguments);
}; };
}()); }());
_context71.next = 3; _context73.next = 3;
return invoke.bind("scanBusinessLicense")(opt); return invoke.bind("scanBusinessLicense")(opt);
case 3: case 3:
case "end": case "end":
return _context71.stop(); return _context73.stop();
} }
} }
}, _callee71); }, _callee73);
})); }));
return function (_x69) { return function (_x71) {
return _ref71.apply(this, arguments); return _ref73.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context72.stop(); return _context74.stop();
} }
} }
}, _callee72); }, _callee74);
})); }));
return function scanBusinessLicense(_x68) { return function scanBusinessLicense(_x70) {
return _ref70.apply(this, arguments); return _ref72.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1706,63 +1755,63 @@ export var scanBusinessLicense = /*#__PURE__*/function () { ...@@ -1706,63 +1755,63 @@ export var scanBusinessLicense = /*#__PURE__*/function () {
*/ */
export var discernIdCardFront = /*#__PURE__*/function () { export var discernIdCardFront = /*#__PURE__*/function () {
var _ref73 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(opt) { var _ref75 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(opt) {
return _regeneratorRuntime.wrap(function _callee75$(_context75) { return _regeneratorRuntime.wrap(function _callee77$(_context77) {
while (1) { while (1) {
switch (_context75.prev = _context75.next) { switch (_context77.prev = _context77.next) {
case 0: case 0:
return _context75.abrupt("return", new Promise( /*#__PURE__*/function () { return _context77.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref74 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(resolve) { var _ref76 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(resolve) {
return _regeneratorRuntime.wrap(function _callee74$(_context74) { return _regeneratorRuntime.wrap(function _callee76$(_context76) {
while (1) { while (1) {
switch (_context74.prev = _context74.next) { switch (_context76.prev = _context76.next) {
case 0: case 0:
invoke.define('discernIdCardFrontCompleted', /*#__PURE__*/function () { invoke.define('discernIdCardFrontCompleted', /*#__PURE__*/function () {
var _ref75 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(result) { var _ref77 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(result) {
return _regeneratorRuntime.wrap(function _callee73$(_context73) { return _regeneratorRuntime.wrap(function _callee75$(_context75) {
while (1) { while (1) {
switch (_context73.prev = _context73.next) { switch (_context75.prev = _context75.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context73.stop(); return _context75.stop();
} }
} }
}, _callee73); }, _callee75);
})); }));
return function (_x73) { return function (_x75) {
return _ref75.apply(this, arguments); return _ref77.apply(this, arguments);
}; };
}()); }());
_context74.next = 3; _context76.next = 3;
return invoke.bind("discernIdCardFront")(opt); return invoke.bind("discernIdCardFront")(opt);
case 3: case 3:
case "end": case "end":
return _context74.stop(); return _context76.stop();
} }
} }
}, _callee74); }, _callee76);
})); }));
return function (_x72) { return function (_x74) {
return _ref74.apply(this, arguments); return _ref76.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context75.stop(); return _context77.stop();
} }
} }
}, _callee75); }, _callee77);
})); }));
return function discernIdCardFront(_x71) { return function discernIdCardFront(_x73) {
return _ref73.apply(this, arguments); return _ref75.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1773,63 +1822,63 @@ export var discernIdCardFront = /*#__PURE__*/function () { ...@@ -1773,63 +1822,63 @@ export var discernIdCardFront = /*#__PURE__*/function () {
*/ */
export var discernIdCardBack = /*#__PURE__*/function () { export var discernIdCardBack = /*#__PURE__*/function () {
var _ref76 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(opt) { var _ref78 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(opt) {
return _regeneratorRuntime.wrap(function _callee78$(_context78) { return _regeneratorRuntime.wrap(function _callee80$(_context80) {
while (1) { while (1) {
switch (_context78.prev = _context78.next) { switch (_context80.prev = _context80.next) {
case 0: case 0:
return _context78.abrupt("return", new Promise( /*#__PURE__*/function () { return _context80.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref77 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(resolve) { var _ref79 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(resolve) {
return _regeneratorRuntime.wrap(function _callee77$(_context77) { return _regeneratorRuntime.wrap(function _callee79$(_context79) {
while (1) { while (1) {
switch (_context77.prev = _context77.next) { switch (_context79.prev = _context79.next) {
case 0: case 0:
invoke.define('discernIdCardBackCompleted', /*#__PURE__*/function () { invoke.define('discernIdCardBackCompleted', /*#__PURE__*/function () {
var _ref78 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(result) { var _ref80 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(result) {
return _regeneratorRuntime.wrap(function _callee76$(_context76) { return _regeneratorRuntime.wrap(function _callee78$(_context78) {
while (1) { while (1) {
switch (_context76.prev = _context76.next) { switch (_context78.prev = _context78.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context76.stop(); return _context78.stop();
} }
} }
}, _callee76); }, _callee78);
})); }));
return function (_x76) { return function (_x78) {
return _ref78.apply(this, arguments); return _ref80.apply(this, arguments);
}; };
}()); }());
_context77.next = 3; _context79.next = 3;
return invoke.bind("discernIdCardBack")(opt); return invoke.bind("discernIdCardBack")(opt);
case 3: case 3:
case "end": case "end":
return _context77.stop(); return _context79.stop();
} }
} }
}, _callee77); }, _callee79);
})); }));
return function (_x75) { return function (_x77) {
return _ref77.apply(this, arguments); return _ref79.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context78.stop(); return _context80.stop();
} }
} }
}, _callee78); }, _callee80);
})); }));
return function discernIdCardBack(_x74) { return function discernIdCardBack(_x76) {
return _ref76.apply(this, arguments); return _ref78.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -1840,63 +1889,63 @@ export var discernIdCardBack = /*#__PURE__*/function () { ...@@ -1840,63 +1889,63 @@ export var discernIdCardBack = /*#__PURE__*/function () {
*/ */
export var takeIdCardAndDiscern = /*#__PURE__*/function () { export var takeIdCardAndDiscern = /*#__PURE__*/function () {
var _ref79 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(opt) { var _ref81 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee83(opt) {
return _regeneratorRuntime.wrap(function _callee81$(_context81) { return _regeneratorRuntime.wrap(function _callee83$(_context83) {
while (1) { while (1) {
switch (_context81.prev = _context81.next) { switch (_context83.prev = _context83.next) {
case 0: case 0:
return _context81.abrupt("return", new Promise( /*#__PURE__*/function () { return _context83.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref80 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(resolve) { var _ref82 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(resolve) {
return _regeneratorRuntime.wrap(function _callee80$(_context80) { return _regeneratorRuntime.wrap(function _callee82$(_context82) {
while (1) { while (1) {
switch (_context80.prev = _context80.next) { switch (_context82.prev = _context82.next) {
case 0: case 0:
invoke.define('takeIdCardAndDiscernCompleted', /*#__PURE__*/function () { invoke.define('takeIdCardAndDiscernCompleted', /*#__PURE__*/function () {
var _ref81 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(result) { var _ref83 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(result) {
return _regeneratorRuntime.wrap(function _callee79$(_context79) { return _regeneratorRuntime.wrap(function _callee81$(_context81) {
while (1) { while (1) {
switch (_context79.prev = _context79.next) { switch (_context81.prev = _context81.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context79.stop(); return _context81.stop();
} }
} }
}, _callee79); }, _callee81);
})); }));
return function (_x79) { return function (_x81) {
return _ref81.apply(this, arguments); return _ref83.apply(this, arguments);
}; };
}()); }());
_context80.next = 3; _context82.next = 3;
return invoke.bind("takeIdCardAndDiscern")(opt); return invoke.bind("takeIdCardAndDiscern")(opt);
case 3: case 3:
case "end": case "end":
return _context80.stop(); return _context82.stop();
} }
} }
}, _callee80); }, _callee82);
})); }));
return function (_x78) { return function (_x80) {
return _ref80.apply(this, arguments); return _ref82.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context81.stop(); return _context83.stop();
} }
} }
}, _callee81); }, _callee83);
})); }));
return function takeIdCardAndDiscern(_x77) { return function takeIdCardAndDiscern(_x79) {
return _ref79.apply(this, arguments); return _ref81.apply(this, arguments);
}; };
}(); }();
export var EVENTS_TYPE = { export var EVENTS_TYPE = {
...@@ -1919,6 +1968,7 @@ export default { ...@@ -1919,6 +1968,7 @@ export default {
recordVideo: recordVideo, recordVideo: recordVideo,
barCodeScan: barCodeScan, barCodeScan: barCodeScan,
openWindow: openWindow, openWindow: openWindow,
openScreen: openScreen,
closeWindow: closeWindow, closeWindow: closeWindow,
getPosition: getPosition, getPosition: getPosition,
launchCQDigitalSign: launchCQDigitalSign, launchCQDigitalSign: launchCQDigitalSign,
......
...@@ -56,6 +56,10 @@ export default class extends React.Component { ...@@ -56,6 +56,10 @@ export default class extends React.Component {
<Button style={{marginBottom: 20}}>图片上传相关</Button> <Button style={{marginBottom: 20}}>图片上传相关</Button>
</Link> </Link>
<Link to={`/openScreen`}>
<Button style={{marginBottom: 20}}>打开主程序页面</Button>
</Link>
<Link to={`/openWindow`}> <Link to={`/openWindow`}>
<Button style={{marginBottom: 20}}>打开WebView</Button> <Button style={{marginBottom: 20}}>打开WebView</Button>
</Link> </Link>
......
import React from 'react'
import moment from 'moment'
import {Button} from "antd-mobile";
import {_Bridge} from "../components"
export default class extends React.Component {
constructor(props) {
super(props);
this.state = {
}
}
doFunc = async (options)=> {
const result = await _Bridge.openScreen(options);
};
render() {
return (
<div>
<h1 style={{textAlign: "center"}}>打开窗口</h1>
<div style={{padding: 20}}>
<Button
style={{marginBottom: 20}}
onClick={async ()=>{
await this.doFunc({
path: `/profile/info`,
});
}}
>个人信息</Button>
<Button
style={{marginBottom: 20}}
onClick={async ()=>{
await this.doFunc({
path: `/apps/person/manage`
});
}}
>人员管理(实名制)</Button>
</div>
</div>
);
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment