| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6879e39e"],{"589d":function(e,t,n){},6939:function(e,t,n){e.exports=n.p+"img/banner.e70f9803.png"},"7bd4":function(e,t,n){"use strict";n("b83a")},a7b2:function(e,t,n){"use strict";n("589d")},a8da:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"bottomTab"}},[n("mu-container",{staticStyle:{width:"100%"},attrs:{color:"primary"}},[n("mu-bottom-nav",{attrs:{value:e.nowTab,color:"#E75296"}},e._l(e.tabs,(function(e){return n("mu-bottom-nav-item",{key:e.tabindex,attrs:{title:e.name,icon:e.src,to:e.class,value:e.name}})})),1)],1)],1)},a=[],i={data:function(){return{nowTab:this.curTab,tabs:[{name:"预约课程",class:"/",src:" ",tabindex:1},{name:"预约记录",class:"record",src:" ",tabindex:2},{name:"我的",class:"mine",src:" ",tabindex:3}]}},props:["curTab"],methods:{},watch:{$route:function(e){this.nowTab=e.meta.title}}},u=i,o=(n("7bd4"),n("5d22")),s=Object(o["a"])(u,r,a,!1,null,"4342f396",null);t["a"]=s.exports},b83a:function(e,t,n){},b8a1:function(e,t,n){"use strict";n.d(t,"q",(function(){return u})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return p})),n.d(t,"n",(function(){return m})),n.d(t,"o",(function(){return b})),n.d(t,"l",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"m",(function(){return w})),n.d(t,"k",(function(){return k})),n.d(t,"e",(function(){return x}));var r=n("82ae"),a=n.n(r);n("379d");function i(e,t){return a.a.post(e,t).then((function(e){var t=e.data;return t}),(function(e){console.info(e)}))}function u(e){var t=headapi+"testSelect";return i(t,e)}function o(e){var t=headapi+"v1/Auth/GenVerifyPic";return i(t,e)}function s(e){var t=headapi+"v1/Auth/GetPhoneVFCode";return i(t,e)}function c(e){var t=headapi+"v1/Auth/PhoneSignIn";return i(t,e)}function d(e){var t=headapi+"v1/Auth/WXBind";return i(t,e)}function f(e){var t=headapi+"v1/Weixin/OderAddByVipUser";return i(t,e)}function h(e){var t=headapi+"v1/Weixin/OderCancelByVipUser";return i(t,e)}function v(e){var t=headapi+"v1/Weixin/OrderListQuery";return i(t,e)}function l(e){var t=headapi+"v1/Weixin/OrderShopQuery";return i(t,e)}function p(e){var t=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return i(t,e)}function m(e){var t=headapi+"v1/Weixin/VipUserConsumeListQuery";return i(t,e)}function b(e){var t=headapi+"v1/Weixin/VipUserSelfQuery";return i(t,e)}function g(e){var t=headapi+"v1/Weixin/SchoolTimeQueryByDate";return i(t,e)}function y(e){var t=headapi+"v1/User/ManagerSelfQuery";return i(t,e)}function w(e){var t=headapi+"v1/Weixin/VipUserCleCkSum";return i(t,e)}function k(e){var t=headapi+"v1/Weixin/QueryNextWeek";return i(t,e)}function x(e){var t=headapi+"v1/Weixin/MyShopQuery";return i(t,e)}},dfe9:function(e,t,n){var r=n("6c52"),a=n("fc7a").f,i=Function.prototype,u=i.toString,o=/^\s*function ([^ (]*)/,s="name";r&&!(s in i)&&a(i,s,{configurable:!0,get:function(){try{return u.call(this).match(o)[1]}catch(e){return""}}})},e83a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pages"},[r("img",{attrs:{src:n("6939"),width:"100%"}}),r("h5",{staticClass:"lessonName"},[e._v(" "+e._s(e.lessonName)+" ")]),r("div",{staticClass:"tabs"},e._l(e.weeks,(function(t,n){return r("div",{class:[{tab:!0},{activeTab:n==e.active}],on:{click:function(t){return e.changeActive(n)}}},[e._v(" "+e._s(t.name)+" "),r("br"),e._v(" "),r("em",[e._v(e._s(t.data))])])})),0),r("bottomTab",{attrs:{curTab:e.thisTab}}),r("div",{staticClass:"context"},[r("ul",{staticClass:"list"},e._l(e.previewDate,(function(t,n){return r("li",{style:{background:t.ClassColor}},[r("em",[e._v(" "+e._s(t.BeginStr)+" - "+e._s(t.EndStr)+" ")]),r("span",[e._v(" "+e._s(t.ClassName)+" ")])])})),0)])],1)},a=[],i=(n("dfe9"),n("82ae"),n("a8da")),u=n("b8a1"),o=(n("379d"),n("fed1")),s={data:function(){return{lessonName:"本周课程表",num:0,thisTab:"预约课程",active:0,sum:0,openAlert:!1,reFresh:!0,list:[],previewDate:[],weeks:[],dialog:{id:"",name:"",timeLong:""}}},mounted:function(){this.getQueryNextWeek()},beforeRouteEnter:function(e,t,n){var r=this;n((function(t){"appoint"==e.name&&r.getQueryNextWeek()}))},watch:{$route:function(e){"lesson"==e.name&&this.getQueryNextWeek()},active:function(){this.getList()}},methods:{changeActive:function(e){this.active=e},getQueryNextWeek:function(){var e=this;console.log(333);var t=this,n={token:localStorage.token,shopId:this.$route.query.shopId},r=o.stringify(n);this.weeks=[],Object(u["k"])(r).then((function(n){var r=n;0==r.Code?(e.HaveDays=r.Rs,e.getFurtherDays(r.Rs)):(t.list=[],t.$message.error(r.Memo))}))},getFurtherDays:function(e){var t=new Date,n=t.getTime(),r=864e5,a="",i=[],u=0,o=0;this.weeks=[];for(var s=0;s<e;s++)a=new Date(n+s*r),u=a.getMonth()+1,o=a.getDate(),u=u<10?"0"+u:u,o=o<10?"0"+o:o,i={name:this.numberToWeek(a.getDay()),data:a.getMonth()+1+"月"+a.getDate()+"日",orderDate:a.getFullYear()+"-"+u+"-"+o},this.weeks.push(i);this.today=this.weeks[0].name,this.getList()},numberToWeek:function(e){switch(parseInt(e)){case 1:return"星期一";case 2:return"星期二";case 3:return"星期三";case 4:return"星期四";case 5:return"星期五";case 6:return"星期六";case 0:return"星期天"}},getList:function(){var e=this,t={token:localStorage.token,shopId:this.$route.query.shopId,queryDate:e.weeks[e.active].orderDate},n=o.stringify(t);e.previewDate=[],Object(u["l"])(n).then((function(t){var n=t;0==n.Code?(e.previewDate=n.Rs,e.previewDate.sort((function(e,t){return e.ClassIndex-t.ClassIndex})),e.previewShow=!0):e.$message.error(n.Memo)}))}},components:{bottomTab:i["a"]}},c=s,d=(n("a7b2"),n("5d22")),f=Object(d["a"])(c,r,a,!1,null,"d0cd06a6",null);t["default"]=f.exports}}]);
- //# sourceMappingURL=chunk-6879e39e.undefined.1619690112201.js.map
|