adultDeviceApp/unpackage/dist/build/mp-weixin/pages/target/target.js

1 line
5.5 KiB
JavaScript
Raw Normal View History

2022-05-27 17:20:31 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/target/target"],{6315:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.lineData&&t.lineData.categories.length&&t.handTrue?{enableScroll:!0,xAxis:{scrollShow:!1,itemCount:3}}:null),i=t.userInfo.totalweight?Math.abs(t.userInfo.totalweight):null,r=Number(t.userInfo.totalweight);t.$mp.data=Object.assign({},{$root:{a0:n,g0:i,m0:r}})},a=[]},"8a04":function(t,e,n){"use strict";(function(t){n("e568");i(n("66fd"));var e=i(n("db60"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},9831:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("26cb");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(){n.e("components/userLogin").then(function(){return resolve(n("d753"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("components/target/targetWeight").then(function(){return resolve(n("54e5"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/target/firstweight").then(function(){return resolve(n("3f78"))}.bind(null,n)).catch(n.oe)},l=function(){n.e("components/target/manuaRecord").then(function(){return resolve(n("3610"))}.bind(null,n)).catch(n.oe)},f=function(){Promise.all([n.e("common/vendor"),n.e("uni_modules/qiun-data-charts/components/qiun-data-charts")]).then(function(){return resolve(n("2236"))}.bind(null,n)).catch(n.oe)},h={components:{targetWeight:c,firstweight:u,manuaRecord:l,userPopup:s,qiunDataCharts:f},computed:a(a({},(0,i.mapState)(["user","Trend","appTheme"])),{},{userInfo:function(){return this.user},endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),onLoad:function(){t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme})},onShow:function(){var e=this;this.token=t.getStorageSync("token"),this.active=0,this.startTime="",this.endTime="",e.getList(this.startDate,this.endDate)},methods:{getList:function(e,n){console.log("fanhui",e,n);var i=this;i.$model.getTrendList({familyid:t.getStorageSync("familyid"),starttime:e,endtime:n}).then((function(t){if(t){for(var e=0;e<i.weightList.length;e++)i.weightList[e].Line=t[i.weightList[e].key];i.showbox(0)}}))},showbox:function(t){var e=this;e.handTrue=!1,this.$nextTick((function(){e.handTrue=!0,e.lineData=e.weightList[t].Line})),e.active1=t},handStartTimeH:function(t){var e=this;if(this.endTime){if(Date.parse(t.target.value)>Date.parse(this.endTime))return void this.$tools.msg("请选择正确的时间")}else if(Date.parse(t.target.value)>Date.parse(this.endDate))return void this.$tools.msg("请选择正确的时间");this.startTime=t.target.value;var n=e.endTime?e.endTime:e.endDate;this.getList(e.startTime,n)},handEndTimeH:function(t){var e=this;if(this.startTime){if(Date.parse(t.target.value)<Date.parse(this.startTime))return void this.$tools.msg("请选择正确的时间")}else if(Date.parse(t.target.value)<Date.parse(this.startDate))return void this.$tools.msg("请选择正确的时间");this.endTime=t.target.value;var n=e.startTime?e.startTime:e.startDate;this.getList(n,this.endTime)},handAllTime:function(e){var n=this;t.getStorageSync("token")?(this.active=e,this.startTime=0==e