2025-08-06 15:49:20 +08:00
|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/skiping/skip"],{4777:function(e,t,i){},"5a90":function(e,t,i){"use strict";(function(e,t){var n=i("47a9");i("bad8");n(i("3240"));var o=n(i("a6c8"));e.__webpack_require_UNI_MP_PLUGIN__=i,t(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"919d":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.active=1},e.e1=function(t){e.active=3},e.e2=function(t){e.active=2},e.e3=function(t){e.disabled=!1},e.e4=function(t){e.disabled=!0},e.e5=function(t){return e.$store.commit("changeRecord",!0)})},o=[]},a6c8:function(e,t,i){"use strict";i.r(t);var n=i("919d"),o=i("bb2f");for(var s in o)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(s);i("f449");var c=i("828b"),r=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"eaae2774",null,!1,n["a"],void 0);t["default"]=r.exports},bb2f:function(e,t,i){"use strict";i.r(t);var n=i("e546"),o=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);t["default"]=o.a},e546:function(e,t,i){"use strict";(function(e){var n=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,s=n(i("7ca3")),c=i("8f59");function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){(0,s.default)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var u={data:function(){return{active:1,acd_id:6,weight:50,disabled:!1,isDevice:0,isConnection:!1,time_m:"",time_s:"",timeList:[],devicesList:[],timesTndex:[1,0],deviceId:"",serviceId:"",write:"",notify:"",islink:0,textLink:""}},components:{record:function(){i.e("element/manuallyAdd/record").then(function(){return resolve(i("39d2"))}.bind(null,i)).catch(i.oe)}},computed:a(a({},(0,c.mapState)(["user","MeasureSkip","isConnected","isBluetoothTyle"])),{},{info:function(){return this.MeasureSkip}}),mounted:function(){this.timeList=this.$tools.gethms(),this.time_m=this.timeList[0][1].substring(0,2),this.time_s=this.timeList[1][0].substring(0,2)},onLoad:function(t){var i=this;t&&t.deviceId&&(i.deviceId=t.deviceId,setTimeout((function(){i.createBLEConnection()}),500)),t&&t.acd_id&&(i.$Bluetooth.stopBluetoothDevicesDiscovery(),setTimeout((function(){i.handleisSdevice()}),500)),i.$store.dispatch("getSkipResult",{aud_id:e.getStorageSync("userid")}),i.isConnection=i.isConnected,i.onBLEConnectionStateChange(),e.onBluetoothAdapterStateChange((function(e){i.$store.commit("changeBluetooth",e.available)}))},onPullDownRefresh:function(){setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onShow:function(){var t=this;e.$on("updateData",(function(i){var n=JSON.parse(i);t.acd_id=n.acd_id,t.isDevice=n.device,t.active=n.active,t.deviceId=n.deviceId,t.serviceId=n.serviceId,t.write=n.write,t.notify=n.notify,t.islink=t.isConnected?1:-1,t.isConnection=t.isConnected,t.notifyBLECharacteristicValue(),n.isSuccessful&&t.$store.dispatch("getSkipResult",{aud_id:e.getStorageSync("userid")}),t.onBLEConnectionStateChange(),e.onBluetoothAdapterStateChange((function(e){t.$store.commit("changeBluetooth",e.available)})),console.log("监听到事件来自 updateData",n)}))},onUnload:function(){clearTimeout(o),this.islink=-1,this.isConnection=!1,this.closeBLEConnection(),this.closeBluetoothAdapter(),e.$off("updateData"),setTimeout((function(){e.switchTab({url:"/pages/home/home"})}),300),console.log("返回首页onUnload")},watch:{isConnected:function(){this.isConnected||(this.islink=-1,this.textLink="重新连接"),this.isConnecti
|