2025-08-18 10:58:58 +08:00
|
|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{"0657":function(e,t,i){"use strict";i.r(t);var n=i("ab3d"),o=i("8346");for(var a in o)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("6f29");var s=i("828b"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"329106f8",null,!1,n["a"],void 0);t["default"]=c.exports},"1e39":function(e,t,i){"use strict";(function(e,t){var n=i("47a9");i("bad8");n(i("3240"));var o=n(i("0657"));e.__webpack_require_UNI_MP_PLUGIN__=i,t(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"67fb":function(e,t,i){"use strict";(function(e){var n=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=n(i("7ca3")),s=i("8f59");i("4d79");function c(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 l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?c(Object(i),!0).forEach((function(t){(0,a.default)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var r={data:function(){return{rtype:0,transition:1.6,isShow:!0,infoListTop:{},activeHeight:0,deviceName:"",deviceId:"",serviceId:"",write:"",notify:"",isCoupon:!1,notices:[],banner:[],pop:[],devicesList:[],islink:0,textLink:"",proposalnd:1,toollist:[{icon:"/static/q2.png",title:"中招估分",path:"/pages/score/score"},{icon:"/static/q4.png",title:"BMI测评",path:"/pageTwo/home/bmi"},{icon:"/static/q6.png",title:"遗传身高",path:"/pageTwo/home/inheritHeighet"},{icon:"/static/q1.png",title:"智能跳绳",path:"/pages/skiping/skip?acd_id=6"},{icon:"/static/q10.png",title:"肺活训练",path:"/pages/lunging/vitalcapacity?acd_id=8"},{icon:"/static/q8.png",title:"历史体重",path:"/pageTwo/history/history?acd_id=2"},{icon:"/static/q3.png",title:"减脂对比",path:"/pageTwo/compk/contrast?acd_id=2"},{icon:"/static/q5.png",title:"曲线/目标",path:"/pages/body/body?acd_id=2"},{icon:"/static/q7.png",title:"手动记录",path:""},{icon:"/static/q9.png",title:"成员管理",path:"/pageTwo/my/manage"}],unit:""}},components:{record:function(){i.e("element/manuallyAdd/record").then(function(){return resolve(i("39d2"))}.bind(null,i)).catch(i.oe)},headerIndex:function(){i.e("element/headerIndex").then(function(){return resolve(i("3e96"))}.bind(null,i)).catch(i.oe)}},computed:l(l({},(0,s.mapState)(["user","familayList","MeasureResult","isConnected","isBluetoothTyle"])),{},{userInfo:function(){return this.user},userList:function(){return this.familayList},cplist:function(){return console.log("this.MeasureResult.cplist",this.MeasureResult.cplist),this.MeasureResult.cplist},info:function(){return this.infoListTop=this.MeasureResult.top_list[0]?this.MeasureResult.top_list[0]:{},this.activeHeight=0,this.MeasureResult}}),onLoad:function(t){var i=this;i.handleoginversion(),e.onBluetoothAdapterStateChange((function(e){i.$store.commit("changeBluetooth",e.available)})),i.onBLEConnectionStateChange()},onPullDownRefresh:function(){this.isShow=!0,this.handleUserList(),this.onBLEConnectionStateChange(),e.stopPullDownRefresh()},watch:{isConnected:function(){console.log("------------Home:isConnected-",this.isConnected),this.isConnected||(this.textLink="开始连接",this.islink=-1)},isBluetoothTyle:function(){console.log("-------------Home:isBluetoothTyle-",this.isBluetoothTyle),this.isBluetoothTyle||(this.textLink="开始连接",this.islink=-1)}},onShow:function(){var t=this;console.log("onShow",e.getStorageSync("isBle")),e.onBluetoothAdapterStateChange((function(e){t.$store.commit("changeBluetooth",e.available)})),e.getStorageSync("isBle")&&1==e.getStorageSync("isBle")&&(t.openBluetoothAdapter(),e.setStorageSync("isBle",!1),console.log("首次添加玩用户后初始化蓝牙",e.getStorageSync("isBle")))}
|