chunk-41f9bb38.undefined.1629122440766.js 4.7 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41f9bb38"],{"4b93":function(t,e,s){},"9a99":function(t,e,s){"use strict";s("4b93")},e336:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pages"},[a("div",{staticClass:"headerInfo"},[a("img",{staticClass:"headBack",attrs:{src:s("aed9"),width:"100%"}}),a("div",{staticClass:"userInfo"},[a("img",{staticClass:"round_icon",attrs:{src:t.user.Head}}),"男"==t.user.Sex?a("span",[t._v(t._s(t.user.Name))]):a("span",{staticStyle:{color:"#E75296"}},[t._v(t._s(t.user.Name))])])]),a("div",{staticClass:"info"},[a("ul",[a("li",[a("em",[t._v(t._s(t.user.Height))]),a("span",[t._v("身高cm")])]),a("li",[a("em",[t._v(t._s(t.user.Age))]),a("span",[t._v("年龄")])]),a("li",[a("em",[t._v(t._s(t.user.Weight))]),a("span",[t._v("体重kg")])]),a("li",[a("em",[t._v(t._s(t.user.Sex))]),a("span",[t._v("性别")])])])]),a("div",{staticClass:"pageClass"},[a("em",[t._v("全部课程")]),a("ul",{staticClass:"dayList"},t._l(t.classRs,(function(e){return a("li",{staticClass:"dayDetail",on:{click:function(s){return t.showLessonDetail(e)}}},[a("span",{staticClass:"dayTitle"},[t._v(" "+t._s(t._f("filterTime")(e.BeginTime))+" "+t._s(t._f("filterWeek")(e.BeginTime))+" ")]),a("span",{staticClass:"className",style:{background:e.ClassColor}},[t._v(t._s(e.ClassName))]),a("div",{staticClass:"sportDetail"},[a("ul",[a("li",[a("em",[a("i",{staticClass:"fa-circle",staticStyle:{background:"#FF5800"}}),t._v(" "+t._s(e.Cle)+" ")]),a("span",[t._v("卡路里")])]),a("li",[a("em",[a("i",{staticClass:"fa-circle",staticStyle:{background:"#FFA310"}}),t._v(" "+t._s(e.Ei)+" ")]),a("span",[t._v("运动强度EI")])]),a("li",[a("em",[a("i",{staticClass:"fa-circle",staticStyle:{background:"#FFE13C"}}),t._v(" "+t._s(e.Ck)+" ")]),a("span",[t._v("CK")])])]),a("div",{staticClass:"sportDuration"},[a("span",[t._v("运动时长")]),a("em",[t._v(t._s(e.SportDuration))]),a("span",[t._v("分钟")])]),t._m(0,!0)])])})),0),a("em",{on:{click:t.loadMore}},[t._v(t._s(t.isLoading))])]),a("bottomTab",{attrs:{curTab:t.thisTab}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"sportView"},[s("span",[t._v("详细信息")]),s("em",[t._v(">")])])}],n=(s("2bd2"),s("07c0"),s("a717"),s("d7f0"),s("82ae"),s("a8da")),r=s("b8a1"),o=(s("379d"),s("fed1"));s("0e88");s("37d4"),s("6232"),s("61e2");var c={data:function(){return{thisTab:"数据统计",testColor2:"#F2F2F2",testColor:"#FFE58D",screenWidth:document.body.clientWidth+"px",visiblePageClass:!1,scrollTop:190,user:{Name:"",Age:"",Height:"",Weight:"",Phone:"",Sex:"",Head:"",CKToTal:0,CKMonth:0,CalorieMonth:0,CalorieTotal:0},classRs:[],busy:!0,start:1,pageItem:5,tableMax:5,isLoading:"点此加载更多"}},watch:{$route:function(t){"reportLesson"==t.name&&(this.getUserInfo(),this.getClassReport())}},mounted:function(){var t=this;t.getUserInfo(),t.getClassReport()},methods:{getUserInfo:function(){var t=this,e={token:localStorage.token},s=o.stringify(e);Object(r["x"])(s).then((function(e){var s=e;0==s.Code?t.user=s.Rs:t.$toast.message(s.Memo)}))},getClassReport:function(){var t=this,e={token:localStorage.token,start:0,tableMax:this.tableMax},s=o.stringify(e);Object(r["o"])(s).then((function(e){var s=e;0==s.Code?(t.classRs=s.Rs,t.classRs.length<t.tableMax&&(t.isLoading="没有更多了")):t.$toast.message(s.Memo)}))},loadMore:function(){var t=this;if("没有更多了"===this.isLoading)return!1;this.isLoading="加载中...",this.start=this.start+1,this.tableMax=this.start*this.pageItem,setTimeout((function(){t.getClassReport(),t.isLoading="点此加载更多"}),1e3)},showLessonDetail:function(t){this.$router.push({path:"/reportLessonDetail",query:{DuId:t.DuId,StdId:t.StdId}})}},filters:{hidePhone:function(t){var e=String(t),s=e.length;if(s>=7){var a=e.slice(-8,-4);return e.replace(a,"****")}if(s<7&&s>=6){var i=e.slice(-4,-2);return e.replace(i,"**")}},fmtTime:function(t){if(t){t*=1e3;var e=new Date(t),s=e.getFullYear(),a=e.getMonth()+1;a=a<10?"0"+a:a;var i=e.getDate();i=i<10?"0"+i:i;var n=e.getHours();n=n<10?"0"+n:n;var r=e.getMinutes();r=r<10?"0"+r:r;var o=e.getSeconds();return o=o<10?"0"+o:o,s+"-"+a+"-"+i}return 0},filterTime:function(t){return t?dateFormatWithoutZone(t,16):0},filterWeek:function(t){if(!t)return!1;var e=new Date(t).getDay();switch(parseInt(e)){case 1:return"星期一";case 2:return"星期二";case 3:return"星期三";case 4:return"星期四";case 5:return"星期五";case 6:return"星期六";case 0:return"星期天"}}},beforeRouteEnter:function(t,e,s){s((function(e){"reportLesson"==t.name&&e.getUserInfo()}))},components:{bottomTab:n["a"]}},l=c,u=(s("9a99"),s("cba8")),d=Object(u["a"])(l,a,i,!1,null,"db896808",null);e["default"]=d.exports}}]);
  2. //# sourceMappingURL=chunk-41f9bb38.undefined.1629122440766.js.map