try.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/try/try"],{
  2. /***/ 222:
  3. /*!****************************************************************!*\
  4. !*** E:/ios/iot-test-app/main.js?{"page":"pages%2Ftry%2Ftry"} ***!
  5. \****************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(wx, createPage) {
  10. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11. __webpack_require__(/*! uni-pages */ 26);
  12. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  13. var _try = _interopRequireDefault(__webpack_require__(/*! ./pages/try/try.vue */ 223));
  14. // @ts-ignore
  15. wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
  16. createPage(_try.default);
  17. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
  18. /***/ }),
  19. /***/ 223:
  20. /*!*********************************************!*\
  21. !*** E:/ios/iot-test-app/pages/try/try.vue ***!
  22. \*********************************************/
  23. /*! no static exports found */
  24. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25. "use strict";
  26. __webpack_require__.r(__webpack_exports__);
  27. /* harmony import */ var _try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./try.vue?vue&type=template&id=1c88177e& */ 224);
  28. /* harmony import */ var _try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./try.vue?vue&type=script&lang=js& */ 226);
  29. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  30. /* harmony import */ var _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 36);
  31. var renderjs
  32. /* normalize component */
  33. var component = Object(_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  34. _try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  35. _try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["render"],
  36. _try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  37. false,
  38. null,
  39. null,
  40. null,
  41. false,
  42. _try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["components"],
  43. renderjs
  44. )
  45. component.options.__file = "pages/try/try.vue"
  46. /* harmony default export */ __webpack_exports__["default"] = (component.exports);
  47. /***/ }),
  48. /***/ 224:
  49. /*!****************************************************************************!*\
  50. !*** E:/ios/iot-test-app/pages/try/try.vue?vue&type=template&id=1c88177e& ***!
  51. \****************************************************************************/
  52. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  53. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54. "use strict";
  55. __webpack_require__.r(__webpack_exports__);
  56. /* harmony import */ var _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./try.vue?vue&type=template&id=1c88177e& */ 225);
  57. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["render"]; });
  58. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
  59. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
  60. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_template_id_1c88177e___WEBPACK_IMPORTED_MODULE_0__["components"]; });
  61. /***/ }),
  62. /***/ 225:
  63. /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  64. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!E:/ios/iot-test-app/pages/try/try.vue?vue&type=template&id=1c88177e& ***!
  65. \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  66. /*! exports provided: render, staticRenderFns, recyclableRender, components */
  67. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  68. "use strict";
  69. __webpack_require__.r(__webpack_exports__);
  70. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
  71. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
  72. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
  73. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
  74. var components
  75. var render = function () {
  76. var _vm = this
  77. var _h = _vm.$createElement
  78. var _c = _vm._self._c || _h
  79. }
  80. var recyclableRender = false
  81. var staticRenderFns = []
  82. render._withStripped = true
  83. /***/ }),
  84. /***/ 226:
  85. /*!**********************************************************************!*\
  86. !*** E:/ios/iot-test-app/pages/try/try.vue?vue&type=script&lang=js& ***!
  87. \**********************************************************************/
  88. /*! no static exports found */
  89. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  90. "use strict";
  91. __webpack_require__.r(__webpack_exports__);
  92. /* harmony import */ var _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./try.vue?vue&type=script&lang=js& */ 227);
  93. /* harmony import */ var _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
  94. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  95. /* harmony default export */ __webpack_exports__["default"] = (_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_gugedownload_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_try_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
  96. /***/ }),
  97. /***/ 227:
  98. /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  99. !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!E:/ios/iot-test-app/pages/try/try.vue?vue&type=script&lang=js& ***!
  100. \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  101. /*! no static exports found */
  102. /***/ (function(module, exports, __webpack_require__) {
  103. "use strict";
  104. /* WEBPACK VAR INJECTION */(function(uni) {
  105. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  106. Object.defineProperty(exports, "__esModule", {
  107. value: true
  108. });
  109. exports.default = void 0;
  110. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  111. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  112. //
  113. //
  114. //
  115. //
  116. //
  117. //
  118. //
  119. var _default = {
  120. data: function data() {
  121. return {
  122. msg: {
  123. deviceId: "b44f96f00ff0"
  124. },
  125. pic: '',
  126. gatewayDeviceId: 'd825b0036120'
  127. };
  128. },
  129. methods: {
  130. // 重置设备
  131. resetDevice: function resetDevice() {
  132. var _this = this;
  133. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  134. var _yield$uni$$http$post, res;
  135. return _regenerator.default.wrap(function _callee$(_context) {
  136. while (1) {
  137. switch (_context.prev = _context.next) {
  138. case 0:
  139. uni.showLoading({
  140. mask: true,
  141. icon: 'none',
  142. title: '正在重置设备'
  143. });
  144. _context.next = 3;
  145. return uni.$http.post('/api/v1/test/bluetooth/resetDevice', _this.msg);
  146. case 3:
  147. _yield$uni$$http$post = _context.sent;
  148. res = _yield$uni$$http$post.data;
  149. console.log(res);
  150. uni.hideLoading();
  151. if (res.code == 200) {
  152. _this.$u.toast("\u91CD\u7F6E\u6210\u529F");
  153. } else {
  154. _this.$u.toast("\u91CD\u7F6E\u5931\u8D25");
  155. }
  156. case 8:
  157. case "end":
  158. return _context.stop();
  159. }
  160. }
  161. }, _callee);
  162. }))();
  163. },
  164. getFacePic: function getFacePic() {
  165. var _this2 = this;
  166. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  167. var _yield$uni$$http$get, res;
  168. return _regenerator.default.wrap(function _callee2$(_context2) {
  169. while (1) {
  170. switch (_context2.prev = _context2.next) {
  171. case 0:
  172. _context2.next = 2;
  173. return uni.$http.get("/api/v1/test/user/facePic/".concat(1));
  174. case 2:
  175. _yield$uni$$http$get = _context2.sent;
  176. res = _yield$uni$$http$get.data;
  177. console.log(res.data);
  178. _this2.pic = 'data:image/jpg;base64,' + res.data;
  179. case 6:
  180. case "end":
  181. return _context2.stop();
  182. }
  183. }
  184. }, _callee2);
  185. }))();
  186. },
  187. gate: function gate() {
  188. var _this3 = this;
  189. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  190. var _yield$uni$$http$get2, res;
  191. return _regenerator.default.wrap(function _callee3$(_context3) {
  192. while (1) {
  193. switch (_context3.prev = _context3.next) {
  194. case 0:
  195. _context3.next = 2;
  196. return uni.$http.get("/api/v1/test/gateway/connection/".concat(_this3.gatewayDeviceId));
  197. case 2:
  198. _yield$uni$$http$get2 = _context3.sent;
  199. res = _yield$uni$$http$get2.data;
  200. console.log(res);
  201. case 5:
  202. case "end":
  203. return _context3.stop();
  204. }
  205. }
  206. }, _callee3);
  207. }))();
  208. }
  209. },
  210. onLoad: function onLoad() {
  211. // this.resetDevice()
  212. // this.getFacePic()
  213. // this.gate()
  214. uni.showToast({
  215. title: '我在测试',
  216. duration: 10000
  217. });
  218. setInterval(function () {
  219. uni.showToast({
  220. title: '2我在测试',
  221. duration: 10000
  222. });
  223. }, 10000);
  224. }
  225. };
  226. exports.default = _default;
  227. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  228. /***/ })
  229. },[[222,"common/runtime","common/vendor"]]]);
  230. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/try/try.js.map