(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/active"],{"5bbc":function(e,t,o){"use strict";o.r(t);var n=o("bf9c"),c=o("d86c");for(var i in c)"default"!==i&&function(e){o.d(t,e,(function(){return c[e]}))}(i);o("be95");var r,a=o("f0c5"),s=Object(a["a"])(c["default"],n["b"],n["c"],!1,null,"fd4c6fd2",null,!1,n["a"],r);t["default"]=s.exports},abb6:function(e,t,o){},b15c:function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,c=r(o("a34a")),i=o("26cb");function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,o,n,c,i,r){try{var a=e[i](r),s=a.value}catch(d){return void o(d)}a.done?t(s):Promise.resolve(s).then(n,c)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,c){var i=e.apply(t,o);function r(e){a(i,n,c,r,s,"next",e)}function s(e){a(i,n,c,r,s,"throw",e)}r(void 0)}))}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e){for(var t=1;t应用——>微信里的蓝牙权限!是否继续?",cancelText:"取消",confirmText:"继续",success:function(e){e.confirm?t.startBluetoothDeviceDiscovery():t.$tools.msg("您已取消操作")}}))}),3e4)},stopBluetoothDevicesDiscovery:function(){e.stopBluetoothDevicesDiscovery({success:function(e){console.log("停止搜索蓝牙设备",e)}})},createBLEConnection:function(e){var t=this;t.stopBluetoothDevicesDiscovery(),t.macAddr=e.macAddr,t.getCode()},getCode:function(){var t=this;clearTimeout(n),wx.hideLoading(),e.showModal({title:"提示",content:"是否激活该设备?",cancelText:"取消",confirmText:"确定",success:function(e){e.confirm?t.getActive():t.$tools.msg("您已取消操作")}})},getActive:function(){var t=this;t.$model.getdevactive({code:t.code,sn:t.macAddr}).then((function(o){t.$tools.msg(o.message),t.closeBluetoothAdapter(),t.closeBLEConnection(),t.devices=[],0==o.code&&setTimeout((function(){e.reLaunch({url:"/pages/index/index?t="+t.devtype})}),500)}))},closeBluetoothAdapter:function(){e.closeBluetoothAdapter({success:function(e){console.log("蓝牙模块关闭成功")}})},closeBLEConnection:function(){var t=this;e.closeBLEConnection({deviceId:t.deviceId,success:function(e){console.log("断开蓝牙连接成功")}})}}};t.default=v}).call(this,o("543d")["default"])},bdca:function(e,t,o){"use strict";(function(e){o("e568");n(o("66fd"));var t=n(o("5bbc"));function n(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=o,e(t.default)}).call(this,o("543d")["createPage"])},be95:function(e,t,o){"use strict";var n=o("abb6"),c=o.n(n);c.a},bf9c:function(e,t,o){"use strict";var n;o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return n}));var c=function(){var e=this,t=e.$createElement;e._self._c},i=[]},d86c:function(e,t,o){"use strict";o.r(t);var n=o("b15c"),c=o.n(n);for(var i in n)"default"!==i&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=c.a}},[["bdca","common/runtime","common/vendor"]]]);