Commit 1bf76ecb authored by westzmg's avatar westzmg

编译代码

parent 2e8f8d23
...@@ -48,24 +48,26 @@ export var isNative = function isNative() { ...@@ -48,24 +48,26 @@ export var isNative = function isNative() {
*/ */
export var takePhoto = /*#__PURE__*/function () { export var takePhoto = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(opt) { var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(opt) {
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
return _context4.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(resolve) {
return _regeneratorRuntime.wrap(function _callee3$(_context3) { return _regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) { while (1) {
switch (_context3.prev = _context3.next) { switch (_context3.prev = _context3.next) {
case 0: case 0:
invoke.define('takePhoto', /*#__PURE__*/function () { return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) { var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(resolve) {
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
// invoke.define('takePhoto', async (data) => {resolve(data)});
alert("adsfasdfasdf");
invoke.define('takePhotoCompleted', /*#__PURE__*/function () {
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(result) {
return _regeneratorRuntime.wrap(function _callee$(_context) { return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) { while (1) {
switch (_context.prev = _context.next) { switch (_context.prev = _context.next) {
case 0: case 0:
resolve(data); resolve(result);
case 1: case 1:
case "end": case "end":
...@@ -79,35 +81,15 @@ export var takePhoto = /*#__PURE__*/function () { ...@@ -79,35 +81,15 @@ export var takePhoto = /*#__PURE__*/function () {
return _ref3.apply(this, arguments); return _ref3.apply(this, arguments);
}; };
}()); }());
invoke.define('takePhotoCompleted', /*#__PURE__*/function () { _context2.next = 4;
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(result) {
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
resolve(result);
case 1:
case "end":
return _context2.stop();
}
}
}, _callee2);
}));
return function (_x4) {
return _ref4.apply(this, arguments);
};
}());
_context3.next = 4;
return invoke.bind("takePhoto")(opt); return invoke.bind("takePhoto")(opt);
case 4: case 4:
case "end": case "end":
return _context3.stop(); return _context2.stop();
} }
} }
}, _callee3); }, _callee2);
})); }));
return function (_x2) { return function (_x2) {
...@@ -117,10 +99,10 @@ export var takePhoto = /*#__PURE__*/function () { ...@@ -117,10 +99,10 @@ export var takePhoto = /*#__PURE__*/function () {
case 1: case 1:
case "end": case "end":
return _context4.stop(); return _context3.stop();
} }
} }
}, _callee4); }, _callee3);
})); }));
return function takePhoto(_x) { return function takePhoto(_x) {
...@@ -128,83 +110,64 @@ export var takePhoto = /*#__PURE__*/function () { ...@@ -128,83 +110,64 @@ export var takePhoto = /*#__PURE__*/function () {
}; };
}(); }();
export var recordVideo = /*#__PURE__*/function () { export var recordVideo = /*#__PURE__*/function () {
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(opt) { var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(opt) {
return _regeneratorRuntime.wrap(function _callee8$(_context8) { return _regeneratorRuntime.wrap(function _callee6$(_context6) {
while (1) {
switch (_context8.prev = _context8.next) {
case 0:
return _context8.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(resolve) {
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
while (1) { while (1) {
switch (_context7.prev = _context7.next) { switch (_context6.prev = _context6.next) {
case 0: case 0:
invoke.define('recordVideo', /*#__PURE__*/function () { return _context6.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(data) { var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(resolve) {
return _regeneratorRuntime.wrap(function _callee5$(_context5) { return _regeneratorRuntime.wrap(function _callee5$(_context5) {
while (1) { while (1) {
switch (_context5.prev = _context5.next) { switch (_context5.prev = _context5.next) {
case 0: case 0:
resolve(data); // invoke.define('recordVideo', async (data) => {resolve(data)});
case 1:
case "end":
return _context5.stop();
}
}
}, _callee5);
}));
return function (_x7) {
return _ref7.apply(this, arguments);
};
}());
invoke.define('recordVideoCompleted', /*#__PURE__*/function () { invoke.define('recordVideoCompleted', /*#__PURE__*/function () {
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(result) { var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(result) {
return _regeneratorRuntime.wrap(function _callee6$(_context6) { return _regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) { while (1) {
switch (_context6.prev = _context6.next) { switch (_context4.prev = _context4.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context6.stop(); return _context4.stop();
} }
} }
}, _callee6); }, _callee4);
})); }));
return function (_x8) { return function (_x6) {
return _ref8.apply(this, arguments); return _ref6.apply(this, arguments);
}; };
}()); }());
_context7.next = 4; _context5.next = 3;
return invoke.bind("recordVideo")(opt); return invoke.bind("recordVideo")(opt);
case 4: case 3:
case "end": case "end":
return _context7.stop(); return _context5.stop();
} }
} }
}, _callee7); }, _callee5);
})); }));
return function (_x6) { return function (_x5) {
return _ref6.apply(this, arguments); return _ref5.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context8.stop(); return _context6.stop();
} }
} }
}, _callee8); }, _callee6);
})); }));
return function recordVideo(_x5) { return function recordVideo(_x4) {
return _ref5.apply(this, arguments); return _ref4.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -214,83 +177,64 @@ export var recordVideo = /*#__PURE__*/function () { ...@@ -214,83 +177,64 @@ export var recordVideo = /*#__PURE__*/function () {
*/ */
export var barCodeScan = /*#__PURE__*/function () { export var barCodeScan = /*#__PURE__*/function () {
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(opt) { var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(opt) {
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
while (1) {
switch (_context12.prev = _context12.next) {
case 0:
return _context12.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(resolve) {
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
while (1) {
switch (_context11.prev = _context11.next) {
case 0:
invoke.define('barCodeScan', /*#__PURE__*/function () {
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(data) {
return _regeneratorRuntime.wrap(function _callee9$(_context9) { return _regeneratorRuntime.wrap(function _callee9$(_context9) {
while (1) { while (1) {
switch (_context9.prev = _context9.next) { switch (_context9.prev = _context9.next) {
case 0: case 0:
resolve(data); return _context9.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(resolve) {
case 1: return _regeneratorRuntime.wrap(function _callee8$(_context8) {
case "end": while (1) {
return _context9.stop(); switch (_context8.prev = _context8.next) {
} case 0:
} // invoke.define('barCodeScan', async (data) => {resolve(data)});
}, _callee9);
}));
return function (_x11) {
return _ref11.apply(this, arguments);
};
}());
invoke.define('barCodeScanCompleted', /*#__PURE__*/function () { invoke.define('barCodeScanCompleted', /*#__PURE__*/function () {
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(result) { var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(result) {
return _regeneratorRuntime.wrap(function _callee10$(_context10) { return _regeneratorRuntime.wrap(function _callee7$(_context7) {
while (1) { while (1) {
switch (_context10.prev = _context10.next) { switch (_context7.prev = _context7.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context10.stop(); return _context7.stop();
} }
} }
}, _callee10); }, _callee7);
})); }));
return function (_x12) { return function (_x9) {
return _ref12.apply(this, arguments); return _ref9.apply(this, arguments);
}; };
}()); }());
_context11.next = 4; _context8.next = 3;
return invoke.bind("barCodeScan")(opt); return invoke.bind("barCodeScan")(opt);
case 4: case 3:
case "end": case "end":
return _context11.stop(); return _context8.stop();
} }
} }
}, _callee11); }, _callee8);
})); }));
return function (_x10) { return function (_x8) {
return _ref10.apply(this, arguments); return _ref8.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context12.stop(); return _context9.stop();
} }
} }
}, _callee12); }, _callee9);
})); }));
return function barCodeScan(_x9) { return function barCodeScan(_x7) {
return _ref9.apply(this, arguments); return _ref7.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -300,63 +244,43 @@ export var barCodeScan = /*#__PURE__*/function () { ...@@ -300,63 +244,43 @@ export var barCodeScan = /*#__PURE__*/function () {
*/ */
export var openWindow = /*#__PURE__*/function () { export var openWindow = /*#__PURE__*/function () {
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(opt) { var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(opt) {
return _regeneratorRuntime.wrap(function _callee15$(_context15) { return _regeneratorRuntime.wrap(function _callee11$(_context11) {
while (1) {
switch (_context15.prev = _context15.next) {
case 0:
return _context15.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(resolve) {
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
while (1) { while (1) {
switch (_context14.prev = _context14.next) { switch (_context11.prev = _context11.next) {
case 0: case 0:
invoke.define('openWindow', /*#__PURE__*/function () { return _context11.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(data) { var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(resolve) {
return _regeneratorRuntime.wrap(function _callee13$(_context13) { return _regeneratorRuntime.wrap(function _callee10$(_context10) {
while (1) { while (1) {
switch (_context13.prev = _context13.next) { switch (_context10.prev = _context10.next) {
case 0: case 0:
resolve(data); _context10.next = 2;
case 1:
case "end":
return _context13.stop();
}
}
}, _callee13);
}));
return function (_x15) {
return _ref15.apply(this, arguments);
};
}());
_context14.next = 3;
return invoke.bind("openWindow")(opt); return invoke.bind("openWindow")(opt);
case 3: case 2:
case "end": case "end":
return _context14.stop(); return _context10.stop();
} }
} }
}, _callee14); }, _callee10);
})); }));
return function (_x14) { return function (_x11) {
return _ref14.apply(this, arguments); return _ref11.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context15.stop(); return _context11.stop();
} }
} }
}, _callee15); }, _callee11);
})); }));
return function openWindow(_x13) { return function openWindow(_x10) {
return _ref13.apply(this, arguments); return _ref10.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -366,63 +290,43 @@ export var openWindow = /*#__PURE__*/function () { ...@@ -366,63 +290,43 @@ export var openWindow = /*#__PURE__*/function () {
*/ */
export var closeWindow = /*#__PURE__*/function () { export var closeWindow = /*#__PURE__*/function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(opt) { var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(opt) {
return _regeneratorRuntime.wrap(function _callee18$(_context18) { return _regeneratorRuntime.wrap(function _callee13$(_context13) {
while (1) {
switch (_context18.prev = _context18.next) {
case 0:
return _context18.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(resolve) {
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
while (1) { while (1) {
switch (_context17.prev = _context17.next) { switch (_context13.prev = _context13.next) {
case 0: case 0:
invoke.define('closeWindow', /*#__PURE__*/function () { return _context13.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(data) { var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(resolve) {
return _regeneratorRuntime.wrap(function _callee16$(_context16) { return _regeneratorRuntime.wrap(function _callee12$(_context12) {
while (1) { while (1) {
switch (_context16.prev = _context16.next) { switch (_context12.prev = _context12.next) {
case 0: case 0:
resolve(data); _context12.next = 2;
case 1:
case "end":
return _context16.stop();
}
}
}, _callee16);
}));
return function (_x18) {
return _ref18.apply(this, arguments);
};
}());
_context17.next = 3;
return invoke.bind("closeWindow")(opt); return invoke.bind("closeWindow")(opt);
case 3: case 2:
case "end": case "end":
return _context17.stop(); return _context12.stop();
} }
} }
}, _callee17); }, _callee12);
})); }));
return function (_x17) { return function (_x13) {
return _ref17.apply(this, arguments); return _ref13.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context18.stop(); return _context13.stop();
} }
} }
}, _callee18); }, _callee13);
})); }));
return function closeWindow(_x16) { return function closeWindow(_x12) {
return _ref16.apply(this, arguments); return _ref12.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -432,83 +336,64 @@ export var closeWindow = /*#__PURE__*/function () { ...@@ -432,83 +336,64 @@ export var closeWindow = /*#__PURE__*/function () {
*/ */
export var getPosition = /*#__PURE__*/function () { export var getPosition = /*#__PURE__*/function () {
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(opt) { var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(opt) {
return _regeneratorRuntime.wrap(function _callee22$(_context22) { return _regeneratorRuntime.wrap(function _callee16$(_context16) {
while (1) {
switch (_context22.prev = _context22.next) {
case 0:
return _context22.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(resolve) {
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
while (1) { while (1) {
switch (_context21.prev = _context21.next) { switch (_context16.prev = _context16.next) {
case 0: case 0:
invoke.define('getPosition', /*#__PURE__*/function () { return _context16.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(data) { var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(resolve) {
return _regeneratorRuntime.wrap(function _callee19$(_context19) { return _regeneratorRuntime.wrap(function _callee15$(_context15) {
while (1) { while (1) {
switch (_context19.prev = _context19.next) { switch (_context15.prev = _context15.next) {
case 0: case 0:
resolve(data); // invoke.define('getPosition', async (data) => {resolve(data)});
case 1:
case "end":
return _context19.stop();
}
}
}, _callee19);
}));
return function (_x21) {
return _ref21.apply(this, arguments);
};
}());
invoke.define('getPositionCompleted', /*#__PURE__*/function () { invoke.define('getPositionCompleted', /*#__PURE__*/function () {
var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(result) { var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(result) {
return _regeneratorRuntime.wrap(function _callee20$(_context20) { return _regeneratorRuntime.wrap(function _callee14$(_context14) {
while (1) { while (1) {
switch (_context20.prev = _context20.next) { switch (_context14.prev = _context14.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context20.stop(); return _context14.stop();
} }
} }
}, _callee20); }, _callee14);
})); }));
return function (_x22) { return function (_x16) {
return _ref22.apply(this, arguments); return _ref16.apply(this, arguments);
}; };
}()); }());
_context21.next = 4; _context15.next = 3;
return invoke.bind("getPosition")(opt); return invoke.bind("getPosition")(opt);
case 4: case 3:
case "end": case "end":
return _context21.stop(); return _context15.stop();
} }
} }
}, _callee21); }, _callee15);
})); }));
return function (_x20) { return function (_x15) {
return _ref20.apply(this, arguments); return _ref15.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context22.stop(); return _context16.stop();
} }
} }
}, _callee22); }, _callee16);
})); }));
return function getPosition(_x19) { return function getPosition(_x14) {
return _ref19.apply(this, arguments); return _ref14.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -518,83 +403,64 @@ export var getPosition = /*#__PURE__*/function () { ...@@ -518,83 +403,64 @@ export var getPosition = /*#__PURE__*/function () {
*/ */
export var launchCQDigitalSign = /*#__PURE__*/function () { export var launchCQDigitalSign = /*#__PURE__*/function () {
var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(opt) { var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(opt) {
return _regeneratorRuntime.wrap(function _callee26$(_context26) { return _regeneratorRuntime.wrap(function _callee19$(_context19) {
while (1) {
switch (_context26.prev = _context26.next) {
case 0:
return _context26.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(resolve) {
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
while (1) { while (1) {
switch (_context25.prev = _context25.next) { switch (_context19.prev = _context19.next) {
case 0: case 0:
invoke.define('launchCQDigitalSign', /*#__PURE__*/function () { return _context19.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(data) { var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(resolve) {
return _regeneratorRuntime.wrap(function _callee23$(_context23) { return _regeneratorRuntime.wrap(function _callee18$(_context18) {
while (1) { while (1) {
switch (_context23.prev = _context23.next) { switch (_context18.prev = _context18.next) {
case 0: case 0:
resolve(data); // invoke.define('launchCQDigitalSign', async (data) => {resolve(data)});
case 1:
case "end":
return _context23.stop();
}
}
}, _callee23);
}));
return function (_x25) {
return _ref25.apply(this, arguments);
};
}());
invoke.define('launchCQDigitalSignCompleted', /*#__PURE__*/function () { invoke.define('launchCQDigitalSignCompleted', /*#__PURE__*/function () {
var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(result) { var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(result) {
return _regeneratorRuntime.wrap(function _callee24$(_context24) { return _regeneratorRuntime.wrap(function _callee17$(_context17) {
while (1) { while (1) {
switch (_context24.prev = _context24.next) { switch (_context17.prev = _context17.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context24.stop(); return _context17.stop();
} }
} }
}, _callee24); }, _callee17);
})); }));
return function (_x26) { return function (_x19) {
return _ref26.apply(this, arguments); return _ref19.apply(this, arguments);
}; };
}()); }());
_context25.next = 4; _context18.next = 3;
return invoke.bind("launchCQDigitalSign")(opt); return invoke.bind("launchCQDigitalSign")(opt);
case 4: case 3:
case "end": case "end":
return _context25.stop(); return _context18.stop();
} }
} }
}, _callee25); }, _callee18);
})); }));
return function (_x24) { return function (_x18) {
return _ref24.apply(this, arguments); return _ref18.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context26.stop(); return _context19.stop();
} }
} }
}, _callee26); }, _callee19);
})); }));
return function launchCQDigitalSign(_x23) { return function launchCQDigitalSign(_x17) {
return _ref23.apply(this, arguments); return _ref17.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -604,83 +470,64 @@ export var launchCQDigitalSign = /*#__PURE__*/function () { ...@@ -604,83 +470,64 @@ export var launchCQDigitalSign = /*#__PURE__*/function () {
*/ */
export var launchFingerSign = /*#__PURE__*/function () { export var launchFingerSign = /*#__PURE__*/function () {
var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(opt) { var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(opt) {
return _regeneratorRuntime.wrap(function _callee30$(_context30) { return _regeneratorRuntime.wrap(function _callee22$(_context22) {
while (1) {
switch (_context30.prev = _context30.next) {
case 0:
return _context30.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(resolve) {
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
while (1) { while (1) {
switch (_context29.prev = _context29.next) { switch (_context22.prev = _context22.next) {
case 0: case 0:
invoke.define('launchFingerSign', /*#__PURE__*/function () { return _context22.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(data) { var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(resolve) {
return _regeneratorRuntime.wrap(function _callee27$(_context27) { return _regeneratorRuntime.wrap(function _callee21$(_context21) {
while (1) { while (1) {
switch (_context27.prev = _context27.next) { switch (_context21.prev = _context21.next) {
case 0: case 0:
resolve(data); // invoke.define('launchFingerSign', async (data) => {resolve(data)});
case 1:
case "end":
return _context27.stop();
}
}
}, _callee27);
}));
return function (_x29) {
return _ref29.apply(this, arguments);
};
}());
invoke.define('launchFingerSignCompleted', /*#__PURE__*/function () { invoke.define('launchFingerSignCompleted', /*#__PURE__*/function () {
var _ref30 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(result) { var _ref22 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(result) {
return _regeneratorRuntime.wrap(function _callee28$(_context28) { return _regeneratorRuntime.wrap(function _callee20$(_context20) {
while (1) { while (1) {
switch (_context28.prev = _context28.next) { switch (_context20.prev = _context20.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context28.stop(); return _context20.stop();
} }
} }
}, _callee28); }, _callee20);
})); }));
return function (_x30) { return function (_x22) {
return _ref30.apply(this, arguments); return _ref22.apply(this, arguments);
}; };
}()); }());
_context29.next = 4; _context21.next = 3;
return invoke.bind("launchFingerSign")(opt); return invoke.bind("launchFingerSign")(opt);
case 4: case 3:
case "end": case "end":
return _context29.stop(); return _context21.stop();
} }
} }
}, _callee29); }, _callee21);
})); }));
return function (_x28) { return function (_x21) {
return _ref28.apply(this, arguments); return _ref21.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context30.stop(); return _context22.stop();
} }
} }
}, _callee30); }, _callee22);
})); }));
return function launchFingerSign(_x27) { return function launchFingerSign(_x20) {
return _ref27.apply(this, arguments); return _ref20.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -690,83 +537,64 @@ export var launchFingerSign = /*#__PURE__*/function () { ...@@ -690,83 +537,64 @@ export var launchFingerSign = /*#__PURE__*/function () {
*/ */
export var launchShare = /*#__PURE__*/function () { export var launchShare = /*#__PURE__*/function () {
var _ref31 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(opt) { var _ref23 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(opt) {
return _regeneratorRuntime.wrap(function _callee34$(_context34) { return _regeneratorRuntime.wrap(function _callee25$(_context25) {
while (1) {
switch (_context34.prev = _context34.next) {
case 0:
return _context34.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref32 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(resolve) {
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
while (1) { while (1) {
switch (_context33.prev = _context33.next) { switch (_context25.prev = _context25.next) {
case 0: case 0:
invoke.define('launchShare', /*#__PURE__*/function () { return _context25.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref33 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(data) { var _ref24 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(resolve) {
return _regeneratorRuntime.wrap(function _callee31$(_context31) { return _regeneratorRuntime.wrap(function _callee24$(_context24) {
while (1) { while (1) {
switch (_context31.prev = _context31.next) { switch (_context24.prev = _context24.next) {
case 0: case 0:
resolve(data); // invoke.define('launchShare', async (data) => {resolve(data)});
case 1:
case "end":
return _context31.stop();
}
}
}, _callee31);
}));
return function (_x33) {
return _ref33.apply(this, arguments);
};
}());
invoke.define('launchShareCompleted', /*#__PURE__*/function () { invoke.define('launchShareCompleted', /*#__PURE__*/function () {
var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(result) { var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(result) {
return _regeneratorRuntime.wrap(function _callee32$(_context32) { return _regeneratorRuntime.wrap(function _callee23$(_context23) {
while (1) { while (1) {
switch (_context32.prev = _context32.next) { switch (_context23.prev = _context23.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context32.stop(); return _context23.stop();
} }
} }
}, _callee32); }, _callee23);
})); }));
return function (_x34) { return function (_x25) {
return _ref34.apply(this, arguments); return _ref25.apply(this, arguments);
}; };
}()); }());
_context33.next = 4; _context24.next = 3;
return invoke.bind("launchShare")(opt); return invoke.bind("launchShare")(opt);
case 4: case 3:
case "end": case "end":
return _context33.stop(); return _context24.stop();
} }
} }
}, _callee33); }, _callee24);
})); }));
return function (_x32) { return function (_x24) {
return _ref32.apply(this, arguments); return _ref24.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context34.stop(); return _context25.stop();
} }
} }
}, _callee34); }, _callee25);
})); }));
return function launchShare(_x31) { return function launchShare(_x23) {
return _ref31.apply(this, arguments); return _ref23.apply(this, arguments);
}; };
}(); }();
/* /*
...@@ -776,77 +604,64 @@ export var launchShare = /*#__PURE__*/function () { ...@@ -776,77 +604,64 @@ export var launchShare = /*#__PURE__*/function () {
*/ */
export var getToken = /*#__PURE__*/function () { export var getToken = /*#__PURE__*/function () {
var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38() { var _ref26 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
return _regeneratorRuntime.wrap(function _callee38$(_context38) { return _regeneratorRuntime.wrap(function _callee28$(_context28) {
while (1) {
switch (_context38.prev = _context38.next) {
case 0:
return _context38.abrupt("return", new Promise( /*#__PURE__*/function () {
var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(resolve) {
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
while (1) { while (1) {
switch (_context37.prev = _context37.next) { switch (_context28.prev = _context28.next) {
case 0: case 0:
invoke.define('getToken', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() { return _context28.abrupt("return", new Promise( /*#__PURE__*/function () {
return _regeneratorRuntime.wrap(function _callee35$(_context35) { var _ref27 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(resolve) {
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
while (1) { while (1) {
switch (_context35.prev = _context35.next) { switch (_context27.prev = _context27.next) {
case 0: case 0:
resolve(); // invoke.define('getToken', async () => {resolve()});
case 1:
case "end":
return _context35.stop();
}
}
}, _callee35);
})));
invoke.define('getTokenCompleted', /*#__PURE__*/function () { invoke.define('getTokenCompleted', /*#__PURE__*/function () {
var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(result) { var _ref28 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(result) {
return _regeneratorRuntime.wrap(function _callee36$(_context36) { return _regeneratorRuntime.wrap(function _callee26$(_context26) {
while (1) { while (1) {
switch (_context36.prev = _context36.next) { switch (_context26.prev = _context26.next) {
case 0: case 0:
resolve(result); resolve(result);
case 1: case 1:
case "end": case "end":
return _context36.stop(); return _context26.stop();
} }
} }
}, _callee36); }, _callee26);
})); }));
return function (_x36) { return function (_x27) {
return _ref38.apply(this, arguments); return _ref28.apply(this, arguments);
}; };
}()); }());
_context37.next = 4; _context27.next = 3;
return invoke.bind("getToken")(); return invoke.bind("getToken")();
case 4: case 3:
case "end": case "end":
return _context37.stop(); return _context27.stop();
} }
} }
}, _callee37); }, _callee27);
})); }));
return function (_x35) { return function (_x26) {
return _ref36.apply(this, arguments); return _ref27.apply(this, arguments);
}; };
}())); }()));
case 1: case 1:
case "end": case "end":
return _context38.stop(); return _context28.stop();
} }
} }
}, _callee38); }, _callee28);
})); }));
return function getToken() { return function getToken() {
return _ref35.apply(this, arguments); return _ref26.apply(this, arguments);
}; };
}(); }();
export var EVENTS_TYPE = { export var EVENTS_TYPE = {
......
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