2022-06-11 16:21:11 +08:00
|
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["BLEPages/child/H01pro"],{
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/***/ 167:
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/*!***********************************************************************************************!*\
|
|
|
|
|
|
!*** E:/qiaocongli/小程序/品传/成人版小程序/adultDeviceApp/main.js?{"page":"BLEPages%2Fchild%2FH01pro"} ***!
|
|
|
|
|
|
\***********************************************************************************************/
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
2022-11-23 16:16:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
|
|
|
|
|
var _H01pro = _interopRequireDefault(__webpack_require__(/*! ./BLEPages/child/H01pro.vue */ 168));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
|
|
|
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_H01pro.default);
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/***/ 168:
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/*!****************************************************************************!*\
|
|
|
|
|
|
!*** E:/qiaocongli/小程序/品传/成人版小程序/adultDeviceApp/BLEPages/child/H01pro.vue ***!
|
|
|
|
|
|
\****************************************************************************/
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2022-06-11 16:21:11 +08:00
|
|
|
|
/* harmony import */ var _H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./H01pro.vue?vue&type=template&id=215f17ff&scoped=true& */ 169);
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/* harmony import */ var _H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./H01pro.vue?vue&type=script&lang=js& */ 171);
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/* harmony import */ var _D_HBuilderX_3_6_4_20220922_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 */ 10);
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
|
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
|
|
|
2022-11-23 16:16:14 +08:00
|
|
|
|
var component = Object(_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
2022-05-03 21:35:39 +08:00
|
|
|
|
_H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
2022-06-11 16:21:11 +08:00
|
|
|
|
_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
|
|
|
|
_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
2022-05-03 21:35:39 +08:00
|
|
|
|
false,
|
|
|
|
|
|
null,
|
2022-06-11 16:21:11 +08:00
|
|
|
|
"215f17ff",
|
2022-05-03 21:35:39 +08:00
|
|
|
|
null,
|
|
|
|
|
|
false,
|
2022-06-11 16:21:11 +08:00
|
|
|
|
_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
2022-05-03 21:35:39 +08:00
|
|
|
|
renderjs
|
|
|
|
|
|
)
|
|
|
|
|
|
|
2022-06-11 16:21:11 +08:00
|
|
|
|
component.options.__file = "BLEPages/child/H01pro.vue"
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/***/ 169:
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/*!***********************************************************************************************************************!*\
|
|
|
|
|
|
!*** E:/qiaocongli/小程序/品传/成人版小程序/adultDeviceApp/BLEPages/child/H01pro.vue?vue&type=template&id=215f17ff&scoped=true& ***!
|
|
|
|
|
|
\***********************************************************************************************************************/
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/* harmony import */ var _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___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--16-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!./H01pro.vue?vue&type=template&id=215f17ff&scoped=true& */ 170);
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_template_id_215f17ff_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/***/ 170:
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
|
!*** ./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--16-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:/qiaocongli/小程序/品传/成人版小程序/adultDeviceApp/BLEPages/child/H01pro.vue?vue&type=template&id=215f17ff&scoped=true& ***!
|
|
|
|
|
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|
|
|
|
|
var components
|
|
|
|
|
|
var render = function() {
|
|
|
|
|
|
var _vm = this
|
|
|
|
|
|
var _h = _vm.$createElement
|
|
|
|
|
|
var _c = _vm._self._c || _h
|
|
|
|
|
|
}
|
|
|
|
|
|
var recyclableRender = false
|
|
|
|
|
|
var staticRenderFns = []
|
|
|
|
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/***/ 171:
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/*!*****************************************************************************************************!*\
|
|
|
|
|
|
!*** E:/qiaocongli/小程序/品传/成人版小程序/adultDeviceApp/BLEPages/child/H01pro.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
|
\*****************************************************************************************************/
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/* harmony import */ var _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_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--12-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!./H01pro.vue?vue&type=script&lang=js& */ 172);
|
|
|
|
|
|
/* harmony import */ var _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_3_6_4_20220922_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_H01pro_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
/***/ 172:
|
2022-11-23 16:16:14 +08:00
|
|
|
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-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:/qiaocongli/小程序/品传/成人版小程序/adultDeviceApp/BLEPages/child/H01pro.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2022-05-03 21:35:39 +08:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 09:22:34 +08:00
|
|
|
|
var _vuex = __webpack_require__(/*! vuex */ 9);function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var myTime;var _default =
|
|
|
|
|
|
{
|
|
|
|
|
|
data: function data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
textW: "",
|
|
|
|
|
|
textH: "",
|
|
|
|
|
|
height: "",
|
|
|
|
|
|
weight: "",
|
|
|
|
|
|
imp: 0,
|
|
|
|
|
|
macAddr: "",
|
|
|
|
|
|
deviceId: "",
|
|
|
|
|
|
serviceId: "",
|
|
|
|
|
|
readId: "",
|
|
|
|
|
|
writeId: "",
|
|
|
|
|
|
notifyId: "",
|
|
|
|
|
|
Unload: false,
|
|
|
|
|
|
isConnection: 0 };
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
computed: _objectSpread(_objectSpread({},
|
2022-05-13 09:22:34 +08:00
|
|
|
|
(0, _vuex.mapState)(["user", "isConnected", "isBluetoothTyle", "appTheme"])), {}, {
|
2022-05-03 21:35:39 +08:00
|
|
|
|
info: function info() {
|
|
|
|
|
|
return this.user;
|
|
|
|
|
|
} }),
|
|
|
|
|
|
|
|
|
|
|
|
onUnload: function onUnload() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
if (!that.Unload) {
|
|
|
|
|
|
that.stopBluetoothDevicesDiscovery(); //取消蓝牙搜索
|
|
|
|
|
|
clearTimeout(myTime);
|
|
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
2022-05-27 17:20:31 +08:00
|
|
|
|
uni.switchTab({
|
|
|
|
|
|
url: "/pages/index/index" });
|
|
|
|
|
|
|
2022-05-03 21:35:39 +08:00
|
|
|
|
console.log("页面返回onUnload");
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
|
|
|
|
isConnected: function isConnected() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
if (!that.isConnected) {
|
|
|
|
|
|
that.handleBack();
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
isBluetoothTyle: function isBluetoothTyle() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
if (!that.isBluetoothTyle) {
|
|
|
|
|
|
that.handleBack();
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
}
|
|
|
|
|
|
} },
|
|
|
|
|
|
|
|
|
|
|
|
onLoad: function onLoad(options) {
|
|
|
|
|
|
var that = this;
|
2022-05-13 09:22:34 +08:00
|
|
|
|
// 导航栏颜色
|
|
|
|
|
|
uni.setNavigationBarColor({
|
|
|
|
|
|
frontColor: '#ffffff',
|
|
|
|
|
|
backgroundColor: this.appTheme });
|
|
|
|
|
|
|
|
|
|
|
|
//
|
2022-05-03 21:35:39 +08:00
|
|
|
|
that.textW = "";
|
|
|
|
|
|
that.textH = "";
|
|
|
|
|
|
if (options && options.deviceId) {
|
|
|
|
|
|
that.deviceId = options.deviceId;
|
2022-05-13 09:22:34 +08:00
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
|
|
|
|
|
that.openBluetoothAdapter();
|
2022-05-03 21:35:39 +08:00
|
|
|
|
}
|
2022-06-11 16:21:11 +08:00
|
|
|
|
|
2022-05-03 21:35:39 +08:00
|
|
|
|
that.onBLEConnectionStateChange();
|
|
|
|
|
|
uni.onBluetoothAdapterStateChange(function (res) {
|
|
|
|
|
|
that.$store.commit("changeBluetooth", res.available);
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
// 重新连接
|
|
|
|
|
|
openBluetoothAdapter: function openBluetoothAdapter() {
|
|
|
|
|
|
var that = this;
|
2022-05-27 17:20:31 +08:00
|
|
|
|
that.textW = "";
|
|
|
|
|
|
that.textH = "";
|
2022-05-03 21:35:39 +08:00
|
|
|
|
uni.openBluetoothAdapter({
|
|
|
|
|
|
success: function success(e) {
|
|
|
|
|
|
that.isConnection = 0;
|
|
|
|
|
|
that.startBluetoothDeviceDiscovery();
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function fail(e) {
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!");
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
// 监听蓝牙连接状态
|
|
|
|
|
|
onBLEConnectionStateChange: function onBLEConnectionStateChange() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.onBLEConnectionStateChange(function (res) {
|
|
|
|
|
|
console.log("监听蓝牙连接状态", res.connected);
|
|
|
|
|
|
if (!res.connected) {
|
|
|
|
|
|
that.Unload = true;
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
clearTimeout(myTime);
|
|
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
|
|
|
|
|
}
|
|
|
|
|
|
that.$store.commit("changeConnected", res.connected);
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
// 开始搜寻附近的蓝牙外围设备
|
|
|
|
|
|
startBluetoothDeviceDiscovery: function startBluetoothDeviceDiscovery() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.startBluetoothDevicesDiscovery({
|
|
|
|
|
|
allowDuplicatesKey: false,
|
|
|
|
|
|
interval: 500, //上报设备的间隔
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
that.isConnection = 0;
|
|
|
|
|
|
that.onBluetoothDeviceFound();
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function fail(res) {
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
that.$tools.msg("请确定设备是开机状态、手机蓝牙权限已打开!");
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 发现外围设备
|
|
|
|
|
|
*/
|
|
|
|
|
|
onBluetoothDeviceFound: function onBluetoothDeviceFound() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
that.isConnection = 0;
|
|
|
|
|
|
uni.onBluetoothDeviceFound(function (res) {
|
|
|
|
|
|
res.devices.forEach(function (device) {
|
|
|
|
|
|
if (!device.name && !device.localName) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2022-06-17 17:34:32 +08:00
|
|
|
|
console.log('开始监听寻找到新设备的事件', device.deviceId, that.deviceId);
|
2022-05-13 09:22:34 +08:00
|
|
|
|
if (device.name.indexOf('My') != -1) {
|
2022-05-03 21:35:39 +08:00
|
|
|
|
clearTimeout(myTime);
|
|
|
|
|
|
var buff = device.advertisData.slice(-6);
|
|
|
|
|
|
device.mac = new Uint8Array(buff); // 保存广播数据中的mac地址,这是由于iOS不直接返回mac地址
|
|
|
|
|
|
var tempMac = Array.from(device.mac);
|
|
|
|
|
|
device.macAddr = that.$tools.ab2hex(tempMac, ':').toUpperCase();
|
2022-05-13 09:22:34 +08:00
|
|
|
|
if (device.deviceId.indexOf(that.deviceId) != -1 || device.macAddr.indexOf(that.deviceId) != -1) {
|
|
|
|
|
|
that.stopBluetoothDevicesDiscovery(); //取消蓝牙搜索
|
|
|
|
|
|
that.deviceId = device.deviceId;
|
|
|
|
|
|
that.macAddr = device.macAddr;
|
|
|
|
|
|
that.createBLEConnection();
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2022-05-03 21:35:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
that.handleMyTime();
|
|
|
|
|
|
},
|
|
|
|
|
|
handleMyTime: function handleMyTime() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
myTime = setTimeout(function () {
|
|
|
|
|
|
if (!that.macAddr) {
|
|
|
|
|
|
clearTimeout(myTime);
|
|
|
|
|
|
that.Unload = true;
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
|
|
|
|
|
}
|
|
|
|
|
|
}, 20000);
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 停止搜索蓝牙设备
|
|
|
|
|
|
*/
|
|
|
|
|
|
stopBluetoothDevicesDiscovery: function stopBluetoothDevicesDiscovery() {
|
|
|
|
|
|
uni.stopBluetoothDevicesDiscovery({
|
|
|
|
|
|
success: function success(e) {
|
|
|
|
|
|
console.log("停止搜索蓝牙设备", e);
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
// 连接蓝牙
|
|
|
|
|
|
createBLEConnection: function createBLEConnection() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.createBLEConnection({
|
|
|
|
|
|
deviceId: that.deviceId,
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
that.isConnection = 0;
|
|
|
|
|
|
that.getBLEDeviceServices();
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function fail(res) {
|
|
|
|
|
|
that.isConnection = 2;
|
|
|
|
|
|
console.log("设备连接失败,请重新连接", res);
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取设备的UUID
|
|
|
|
|
|
*/
|
|
|
|
|
|
getBLEDeviceServices: function getBLEDeviceServices() {
|
|
|
|
|
|
var serviceList = [];
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.getBLEDeviceServices({
|
|
|
|
|
|
deviceId: that.deviceId,
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
console.log("获取设备的UUID成功", res);
|
|
|
|
|
|
serviceList = res.services;
|
|
|
|
|
|
for (var i = 0; i < serviceList.length; i++) {
|
|
|
|
|
|
var service = serviceList[i];
|
|
|
|
|
|
if (service.uuid.indexOf('FFE0') != -1) {
|
|
|
|
|
|
that.serviceId = service.uuid;
|
|
|
|
|
|
that.isConnection = 1;
|
|
|
|
|
|
that.getBLEDeviceCharacteristics(that.deviceId, service.uuid);
|
|
|
|
|
|
console.log("设备的FFE0的serviceId: ", that.serviceId);
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function fail(res) {
|
|
|
|
|
|
console.log('获取设备的UUID失败:', res);
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取指定服务的特征值
|
|
|
|
|
|
*/
|
|
|
|
|
|
getBLEDeviceCharacteristics: function getBLEDeviceCharacteristics(deviceId, serviceId) {
|
|
|
|
|
|
var characteristicsList = [];
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.getBLEDeviceCharacteristics({
|
|
|
|
|
|
deviceId: deviceId,
|
|
|
|
|
|
serviceId: serviceId,
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
console.log("服务的特征值成功", res);
|
|
|
|
|
|
characteristicsList = res.characteristics;
|
|
|
|
|
|
for (var i = 0; i < characteristicsList.length; i++) {
|
|
|
|
|
|
var item = characteristicsList[i];
|
|
|
|
|
|
if (item.uuid.indexOf("FFE1") != -1) {
|
|
|
|
|
|
if (item.properties.notify == true) {
|
|
|
|
|
|
that.notifyId = item.uuid;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (item.properties.write == true) {
|
|
|
|
|
|
that.writeId = item.uuid;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (item.properties.read) {
|
|
|
|
|
|
that.readId = item.uuid;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// 打开监听
|
|
|
|
|
|
uni.notifyBLECharacteristicValueChange({
|
|
|
|
|
|
deviceId: deviceId,
|
|
|
|
|
|
serviceId: serviceId,
|
|
|
|
|
|
characteristicId: that.notifyId,
|
|
|
|
|
|
state: true });
|
|
|
|
|
|
|
|
|
|
|
|
uni.notifyBLECharacteristicValueChange({
|
|
|
|
|
|
deviceId: deviceId,
|
|
|
|
|
|
serviceId: serviceId,
|
|
|
|
|
|
characteristicId: that.writeId,
|
|
|
|
|
|
state: true });
|
|
|
|
|
|
|
|
|
|
|
|
uni.onBLECharacteristicValueChange(function (res) {
|
|
|
|
|
|
var value = that.$tools.ab2hex(res.value, '');
|
2022-05-27 17:20:31 +08:00
|
|
|
|
console.log("测量中", value);
|
2022-05-03 21:35:39 +08:00
|
|
|
|
var weight = parseInt(value.substring(4, 8), 16) / 100;
|
|
|
|
|
|
var height = parseInt(value.substring(30, 34), 16) / 10;
|
|
|
|
|
|
var imp0 = value.substring(28, 30) + value.substring(34, 36);
|
|
|
|
|
|
var imp = parseInt(imp0, 16);
|
|
|
|
|
|
that.imp = imp;
|
|
|
|
|
|
that.textW = "您的体重是:" + weight + 'kg';
|
|
|
|
|
|
that.textH = "您的身高是:" + height + 'cm';
|
|
|
|
|
|
that.weight = weight + 'kg';
|
|
|
|
|
|
that.height = height;
|
|
|
|
|
|
console.log("测量完成", that.weight, that.height, that.imp);
|
|
|
|
|
|
if (imp == 0) {
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
title: '提示',
|
|
|
|
|
|
content: "体脂测量失败,是否保存本次测量结果?",
|
|
|
|
|
|
cancelText: "放弃",
|
|
|
|
|
|
confirmText: "保存",
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
that.handleGetMeasure();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
that.Unload = true;
|
|
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
2022-05-27 17:20:31 +08:00
|
|
|
|
uni.switchTab({
|
|
|
|
|
|
url: "/pages/index/index" });
|
2022-05-03 21:35:39 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
that.handleGetMeasure();
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
fail: function fail(res) {
|
|
|
|
|
|
console.log('获取特征值失败:', JSON.stringify(res));
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
// 保存测量结果
|
|
|
|
|
|
handleGetMeasure: function handleGetMeasure() {
|
|
|
|
|
|
console.log("保存结果");
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
that.$model.getmeasure({
|
|
|
|
|
|
weight: that.weight,
|
|
|
|
|
|
imp: that.imp,
|
|
|
|
|
|
ecode: that.macAddr,
|
|
|
|
|
|
height: that.height ? that.height : that.info.height,
|
|
|
|
|
|
familyid: that.info.familyid }).
|
|
|
|
|
|
then(function (res) {
|
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
|
that.$tools.msg("测量成功");
|
|
|
|
|
|
that.$store.dispatch("getUserInfo", {
|
|
|
|
|
|
familyid: that.info.familyid });
|
|
|
|
|
|
|
|
|
|
|
|
that.$store.dispatch("getResult", {
|
|
|
|
|
|
birthday: that.info.birthday,
|
|
|
|
|
|
familyid: that.info.familyid,
|
|
|
|
|
|
height: that.height ? that.height : that.info.height,
|
|
|
|
|
|
sex: that.info.sex });
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
console.log("测量失败", res.message);
|
|
|
|
|
|
that.$tools.msg(res.message);
|
|
|
|
|
|
}
|
|
|
|
|
|
that.Unload = true;
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
|
url: "/pages/index/index" });
|
|
|
|
|
|
|
|
|
|
|
|
}, 200);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
handleBack: function handleBack() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
that.textW = "";
|
|
|
|
|
|
that.textH = "";
|
|
|
|
|
|
that.Unload = true;
|
|
|
|
|
|
that.Unload = true;
|
|
|
|
|
|
that.stopBluetoothDevicesDiscovery(); //取消蓝牙搜索
|
|
|
|
|
|
that.closeBLEConnection();
|
|
|
|
|
|
that.closeBluetoothAdapter();
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 断开蓝牙模块
|
|
|
|
|
|
*/
|
|
|
|
|
|
closeBluetoothAdapter: function closeBluetoothAdapter() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.closeBluetoothAdapter({
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
console.log('蓝牙模块关闭成功');
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 断开蓝牙连接
|
|
|
|
|
|
*/
|
|
|
|
|
|
closeBLEConnection: function closeBLEConnection() {
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
uni.closeBLEConnection({
|
|
|
|
|
|
deviceId: that.deviceId,
|
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
|
console.log('断开蓝牙连接成功');
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
} } };exports.default = _default;
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
|
2022-05-13 18:13:20 +08:00
|
|
|
|
},[[167,"common/runtime","common/vendor"]]]);
|
2022-06-11 16:21:11 +08:00
|
|
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/BLEPages/child/H01pro.js.map
|