chunk-7f215085.undefined.1633936292466.js 13 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f215085"],{"08fe":function(t,e,n){},"29ee":function(t,e,n){"use strict";n("08fe")},"2dc0":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("mu-dialog",{attrs:{title:"通知",width:"360",open:t.openSimple},on:{"update:open":function(e){t.openSimple=e}}},[t._v(" "+t._s(t.text)+" "),n("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.closeSimpleDialog},slot:"actions"},[t._v("关闭")])],1)],1)},i=[],a={data:function(){return{openSimple:!1,text:""}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},o=a,s=n("cba8"),u=Object(s["a"])(o,r,i,!1,null,"5a3ccfc4",null);e["a"]=u.exports},4071:function(t,e,n){var r=n("9c0d");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},4239:function(t,e,n){var r=n("f3c1");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"49b1":function(t,e,n){},5625:function(t,e,n){"use strict";var r=n("720d"),i=n("be25").map,a=n("b661"),o=a("map");r({target:"Array",proto:!0,forced:!o},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"606e":function(t,e,n){var r=n("f7c7"),i=n("2bbd").EXISTS,a=n("f5e4").f,o=Function.prototype,s=o.toString,u=/^\s*function ([^ (]*)/,c="name";r&&!i&&a(o,c,{configurable:!0,get:function(){try{return s.call(this).match(u)[1]}catch(t){return""}}})},6520:function(t,e,n){"use strict";n("49b1")},6939:function(t,e,n){t.exports=n.p+"img/banner.a5b6c712.png"},"8dfc":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pages"},[r("div",{staticClass:"as"},[r("img",{attrs:{src:n("6939"),width:"100%"}}),r("div",{staticClass:"tabs"},t._l(t.weeks,(function(e,n){return r("div",{class:[{tab:!0},{activeTab:n==t.active}],on:{click:function(e){return t.changeActive(n)}}},[t._v(" "+t._s(e.name)+" "),r("br"),t._v(" "),r("em",[t._v(t._s(e.data))])])})),0),r("span",{staticClass:"sum"},[t._v(" "+t._s(t.today)+" 预约名额剩余 "),t.num>0?r("em",{staticClass:"green"},[t._v(t._s(t.num))]):r("em",{staticClass:"red"},[t._v(t._s(t.num))]),t._v(" 人 ")])]),r("div",{staticClass:"context"},[r("ul",{staticClass:"list"},[t._l(t.list,(function(e){return r("li",{class:[{greenLi:e.remain>0},{redLi:1==e.Status},{yellowLi:0==e.remain},{whiteLi:0==e.WxOrder},{whiteLi:0==e.IsAllowSelect}]},[r("div",{staticClass:"dotContainer"},[e.IsAllowSelect>0?r("div",[e.remain>0&&0!=e.WxOrder?r("i",{staticClass:"dot"}):t._e(),1==e.Status?r("i",{staticClass:"cubes"}):t._e(),0==e.remain&&0==e.remain?r("i",{staticClass:"tri"}):t._e(),0==e.WxOrder?r("i",{staticClass:"x"}):t._e()]):r("div",[0==e.OrderId?r("i",{staticClass:"x"}):t._e()])]),r("div",{staticClass:"title"},[r("h5",[r("span",{staticClass:"lessons",style:{color:e.ClassColor,border:"solid 1px"+e.ClassColor}},[t._v(t._s(e.ClassName))])]),r("span",[t._v(t._s(e.BeginStr)+" - "+t._s(e.EndStr))])]),r("div",{staticClass:"current"},[r("h5",[t._v("剩余 "),e.remain>0?r("em",{staticClass:"green"},[t._v(t._s(e.remain))]):r("em",{staticClass:"red"},[t._v(t._s(e.remain))]),t._v(" 人 ")]),r("span",[t._v("总名额 "+t._s(e.OrderToplimit)+" 人")])]),e.IsAllowSelect>0?r("div",[e.remain>0&&0==e.OrderId&&0!=e.WxOrder?r("mu-button",{staticClass:"appointBtn greenBtn",on:{click:function(n){return t.appointNow(e)}}},[t._v(" 预约 ")]):t._e(),0==e.remain&&0==e.OrderId?r("mu-button",{staticClass:"appointBtn redBtn",on:{click:t.isFulled}},[t._v("满员 ")]):t._e(),0!=e.OrderId?r("mu-button",{staticClass:"appointBtn yellowBtn",on:{click:function(n){return t.isAppointed(e)}}},[t._v("已约")]):t._e(),0==e.WxOrder&&0==e.OrderId?r("mu-button",{staticClass:"appointBtn disableBtn",on:{click:t.isDisable}},[t._v("不可约 ")]):t._e()],1):r("div",[0==e.OrderId?r("mu-button",{staticClass:"appointBtn disableBtn",on:{click:t.isDisable}},[t._v("不可约")]):t._e()],1)])})),""==t.list?r("div",{staticClass:"tips"},[r("p",{staticStyle:{"text-align":"center"}},[t._v(" 暂无可预约的课程 ")])]):t._e()],2),r("mu-avatar",{attrs:{color:"rgb(231, 82, 150)"},nativeOn:{click:function(e){return t.goPage("lesson")}}},[r("mu-icon",{attrs:{value:"reorder"}})],1)],1),r("bottomTab",{attrs:{curTab:t.thisTab}}),r("div",{staticClass:"doalog"},[r("mu-dialog",{attrs:{title:"预约课程",width:"600","max-width":"80%","esc-press-close":!1,"overlay-close":!1,open:t.openAlert},on:{"update:open":function(e){t.openAlert=e}}},[r("p",[t._v(" 是否预约 课程:"+t._s(t.dialog.ClassName)+" ,时间:"+t._s(t.dialog.BeginStr)+" - "+t._s(t.dialog.EndStr)+" "),r("br")]),r("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.closeAlertDialog},slot:"actions"},[t._v("取消")]),r("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.confirmAppoint},slot:"actions"},[t._v("确定")])],1)],1),r("alert",{ref:"alertPart"})],1)},i=[],a=(n("606e"),n("5625"),n("82ae"),n("a8da")),o=n("b8a1"),s=n("2dc0"),u=(n("379d"),n("fed1")),c={data:function(){return{num:0,thisTab:"预约课程",active:0,sum:0,HaveDays:0,openAlert:!1,reFresh:!0,list:[],weeks:[],today:"",dialog:{id:"",name:"",timeLong:""}}},mounted:function(){this.getQueryNextWeek()},watch:{$route:function(t){"appoint"==t.name&&this.getList()},active:function(t){this.getList()}},activated:function(){var t=this;this.active=0,this.reFresh=!1,this.$nextTick((function(){t.reFresh=!0,t.getQueryNextWeek()}))},methods:{changeActive:function(t){this.active=t},getIndex:function(t){console.log(t)},getQueryNextWeek:function(){var t=this,e=this,n={token:localStorage.token,shopId:this.$route.query.shopId},r=u.stringify(n);this.weeks=[],Object(o["v"])(r).then((function(n){var r=n;0==r.Code?(t.HaveDays=r.Rs,t.getFurtherDays(t.HaveDays)):(e.list=[],e.$message.error(r.Memo))}))},alertInfo:function(t){this.$refs.alertPart.openSimpleDialog(t)},goPage:function(t){this.$router.push({path:"/"+t,query:{shopId:this.$route.query.shopId}})},getFurtherDays:function(t){var e=new Date,n=e.getTime(),r=864e5,i="",a=[],o=0,s=0;this.weeks=[];for(var u=0;u<t;u++)i=new Date(n+u*r),o=i.getMonth()+1,s=i.getDate(),o=o<10?"0"+o:o,s=s<10?"0"+s:s,a={name:this.numberToWeek(i.getDay()),data:i.getMonth()+1+"月"+i.getDate()+"日",orderDate:i.getFullYear()+"-"+o+"-"+s},this.weeks.push(a);this.today=this.weeks[0].name,this.getList()},numberToWeek:function(t){switch(parseInt(t)){case 1:return"星期一";case 2:return"星期二";case 3:return"星期三";case 4:return"星期四";case 5:return"星期五";case 6:return"星期六";case 0:return"星期天"}},confirmAppoint:function(){var t=this;t.openAlert=!1;var e={token:localStorage.token,stdId:t.dialog.StdId},n=u.stringify(e);Object(o["j"])(n).then((function(e){var n=e;0==n.Code?(t.alertInfo("已成功预约","success"),t.getList()):t.alertInfo(n.Memo+" 错误码:"+n.Code)}))},closeAlertDialog:function(){this.openAlert=!1},appointNow:function(t){this.dialog=t,this.openAlert=!0},isFulled:function(){var t=this;t.$alert("当前课程满员,请选择其他课程或其他时间预约","提示",{okLabel:"知道了"}).then((function(){t.getList()}))},isAppointed:function(t){var e=this,n=this;this.$confirm("是否取消前课程预约?","提示",{type:"warning"}).then((function(r){var i=r.result;if(i){var a={token:localStorage.token,orderId:t.OrderId},s=u.stringify(a);Object(o["k"])(s).then((function(t){var e=t;0==e.Code?(n.alertInfo("当前课程已取消预约","success"),n.getList()):n.alertInfo(e.Memo+" 错误码:"+e.Code)}))}else e.alertInfo("点击了取消")}))},isDisable:function(t){this.alertInfo("课程不可预约,请选择其他课程或其他时间预约","info")},getList:function(){var t=this;this.today=this.weeks[this.active].name;var e=this.weeks[this.active].orderDate,n={token:localStorage.token,orderDate:e,shopId:this.$route.query.shopId},r=u.stringify(n);t.list=[],t.num=0,Object(o["a"])(r).then((function(e){var n=e;0==n.Code?(t.list=n.Rs,t.list&&(t.num=0,t.list.map((function(e){e.remain=parseInt(e.OrderToplimit)-parseInt(e.OrderCount),t.num=t.num+e.remain,console.log(t.num)})))):t.alertInfo(n.Memo+" 错误码:"+n.Code)}))}},components:{bottomTab:a["a"],alert:s["a"]}},l=c,d=(n("6520"),n("cba8")),f=Object(d["a"])(l,r,i,!1,null,"157f7d60",null);e["default"]=f.exports},"9c0d":function(t,e,n){var r=n("4239"),i=n("71b6"),a=n("8e63"),o=n("1f96"),s=o("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===Array||r(e.prototype))?e=void 0:a(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?Array:e}},a8da:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"bottomTab"}},[n("mu-container",{staticStyle:{width:"100%"},attrs:{color:"primary"}},[n("mu-bottom-nav",{attrs:{value:t.nowTab,color:"#E75296"}},t._l(t.tabs,(function(t){return n("mu-bottom-nav-item",{key:t.tabindex,attrs:{title:t.name,icon:t.src,to:t.class,value:t.name}})})),1)],1)],1)},i=[],a={data:function(){return{nowTab:this.curTab,tabs:[{name:"预约课程",class:"/",src:" ",tabindex:1},{name:"预约记录",class:"record",src:" ",tabindex:2},{name:"上课统计",class:"reportLesson",src:" ",tabindex:3},{name:"我的运动",class:"report",src:" ",tabindex:4}]}},props:["curTab"],methods:{},watch:{$route:function(t){this.nowTab=t.meta.title}}},o=a,s=(n("29ee"),n("cba8")),u=Object(s["a"])(o,r,i,!1,null,"2008d39a",null);e["a"]=u.exports},b661:function(t,e,n){var r=n("1710"),i=n("1f96"),a=n("393d"),o=i("species");t.exports=function(t){return a>=51||!r((function(){var e=[],n=e.constructor={};return n[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},b8a1:function(t,e,n){"use strict";n.d(e,"B",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"u",(function(){return c})),n.d(e,"A",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"l",(function(){return v})),n.d(e,"m",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"y",(function(){return m})),n.d(e,"z",(function(){return b})),n.d(e,"w",(function(){return g})),n.d(e,"h",(function(){return y})),n.d(e,"x",(function(){return _})),n.d(e,"v",(function(){return x})),n.d(e,"i",(function(){return C})),n.d(e,"n",(function(){return S})),n.d(e,"q",(function(){return k})),n.d(e,"s",(function(){return w})),n.d(e,"o",(function(){return I})),n.d(e,"p",(function(){return O})),n.d(e,"t",(function(){return W})),n.d(e,"r",(function(){return A})),n.d(e,"b",(function(){return D})),n.d(e,"g",(function(){return T})),n.d(e,"d",(function(){return B})),n.d(e,"f",(function(){return L}));var r=n("82ae"),i=n.n(r);n("379d");function a(t,e){return i.a.post(t,e).then((function(t){var e=t.data;return e}),(function(t){console.info(t)}))}function o(t){var e=headapi+"testSelect";return a(e,t)}function s(t){var e=headapi+"v1/Auth/GenVerifyPic";return a(e,t)}function u(t){var e=headapi+"v1/Auth/GetPhoneVFCode";return a(e,t)}function c(t){var e=headapi+"v1/Auth/PhoneSignIn";return a(e,t)}function l(t){var e=headapi+"v1/Auth/WXBind";return a(e,t)}function d(t){var e=headapi+"v1/Weixin/OderAddByVipUser";return a(e,t)}function f(t){var e=headapi+"v1/Weixin/OderCancelByVipUser";return a(e,t)}function v(t){var e=headapi+"v1/Weixin/OrderListQuery";return a(e,t)}function p(t){var e=headapi+"v1/Weixin/OrderShopQuery";return a(e,t)}function h(t){var e=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return a(e,t)}function m(t){var e=headapi+"v1/Weixin/VipUserConsumeListQuery";return a(e,t)}function b(t){var e=headapi+"v1/Weixin/VipUserSelfQuery";return a(e,t)}function g(t){var e=headapi+"v1/Weixin/SchoolTimeQueryByDate";return a(e,t)}function y(t){var e=headapi+"v1/User/ManagerSelfQuery";return a(e,t)}function _(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return a(e,t)}function x(t){var e=headapi+"v1/Weixin/QueryNextWeek";return a(e,t)}function C(t){var e=headapi+"v1/Weixin/MyShopQuery";return a(e,t)}function S(t){var e=headapi+"v1/Weixin/PersonCardStatistics";return a(e,t)}function k(t){var e=headapi+"v1/Weixin/PersonClassStatistics";return a(e,t)}function w(t){var e=headapi+"v1/Weixin/PersonMonthStatistics";return a(e,t)}function I(t){var e=headapi+"v1/Weixin/PersonClassDetail";return a(e,t)}function O(t){var e=headapi+"v1/Weixin/PersonClassList";return a(e,t)}function W(t){var e=headapi+"v1/Weixin/PersonScoreClassQuery";return a(e,t)}function A(t){var e=headapi+"v1/Weixin/PersonFtoList";return a(e,t)}function D(t){var e=headapi+"v1/FitnessTest/FtoDetailQuery";return a(e,t)}function T(t){var e=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(e,t)}function B(t){var e=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(e,t)}function L(t){var e=headbpi+"v1/OutService/GetSportPercentByDuId";return a(e,t)}},be25:function(t,e,n){var r=n("0dec"),i=n("fefe"),a=n("8805"),o=n("e970"),s=n("4071"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,d=6==t,f=7==t,v=5==t||d;return function(p,h,m,b){for(var g,y,_=a(p),x=i(_),C=r(h,m,3),S=o(x),k=0,w=b||s,I=e?w(p,S):n||f?w(p,0):void 0;S>k;k++)if((v||k in x)&&(g=x[k],y=C(g,k,_),t))if(e)I[k]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return k;case 2:u.call(I,g)}else switch(t){case 4:return!1;case 7:u.call(I,g)}return d?-1:c||l?l:I}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}}]);
  2. //# sourceMappingURL=chunk-7f215085.undefined.1633936292466.js.map