| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78befdac"],{"08fe":function(t,e,n){},"29ee":function(t,e,n){"use strict";n("08fe")},"2bd2":function(t,e,n){var i=n("02ba"),r=n("40ac").f,a=Function.prototype,s=a.toString,o=/^\s*function ([^ (]*)/,u="name";i&&!(u in a)&&r(a,u,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(t){return""}}})},"2dc0":function(t,e,n){"use strict";var i=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)},r=[],a={data:function(){return{openSimple:!1,text:""}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},s=a,o=n("cba8"),u=Object(o["a"])(s,i,r,!1,null,"5a3ccfc4",null);e["a"]=u.exports},"3bb5":function(t,e,n){"use strict";n("4550")},4550:function(t,e,n){},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},"8dfc":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pages"},[i("div",{staticClass:"as"},[i("img",{attrs:{src:n("6939"),width:"100%"}}),i("div",{staticClass:"tabs"},t._l(t.weeks,(function(e,n){return i("div",{staticClass:"dayInfo",on:{click:function(i){return t.changeActive(e.disable,n)}}},[i("div",{class:[{disableTab:e.disable}]},[i("div",{class:[{tab:!0},{activeTab:n==t.active}]},[t._v(" 周"+t._s(e.name.substring(2,3))+" ")]),i("div",{staticClass:"dayDate"},[i("span",[t._v(t._s(e.dayDate))]),i("br"),t._v(" "+t._s(e.monthDate)+"月 ")])])])})),0),i("div",{staticClass:"classSelect"},[i("div",{class:[{classTime:!0},{activeClass:""==t.timeSelect}],on:{click:function(e){return t.changeTime("")}}},[t._v("全部课程")]),i("div",{class:[{classTime:!0},{activeClass:1==t.timeSelect}],on:{click:function(e){return t.changeTime(1)}}},[t._v("上午")]),i("div",{class:[{classTime:!0},{activeClass:2==t.timeSelect}],on:{click:function(e){return t.changeTime(2)}}},[t._v("下午")]),i("div",{class:[{classTime:!0},{activeClass:3==t.timeSelect}],on:{click:function(e){return t.changeTime(3)}}},[t._v("晚上")]),i("span",{staticClass:"sum"},[t._v(" 预约名额剩余 "),i("em",{staticClass:"black"},[t._v(t._s(t.num))]),t._v(" 人 ")])])]),i("div",{staticClass:"context"},[i("ul",{staticClass:"list"},[t._l(t.list,(function(e){return i("li",[i("div",{staticClass:"title"},[i("h5",[i("span",{staticClass:"lessons"},[t._v(t._s(e.ClassName))])]),i("span",[t._v(t._s(e.ConsumeHour)+" 课时")])]),i("div",{staticClass:"lessonTime"},[i("span",[t._v(t._s(e.BeginStr))]),i("span",[t._v(" - ")]),i("span",[t._v(t._s(e.EndStr))])]),i("div",{staticClass:"orderLimit"},[i("div",{staticClass:"orderRemind"},[t._v("预约 "),i("span",[t._v(" "+t._s(e.remain)+" ")]),t._v("/ "),i("em",[t._v(t._s(e.OrderToplimit))])]),e.IsAllowSelect>0?i("div",[e.remain>0&&0==e.OrderId&&0!=e.WxOrder?i("mu-button",{staticClass:"appointBtn",on:{click:function(n){return t.appointNow(e)}}},[t._v(" 预约 ")]):t._e(),0==e.remain&&0==e.OrderId?i("mu-button",{staticClass:"appointBtn",on:{click:t.isFulled}},[t._v("满员 ")]):t._e(),0!=e.OrderId?i("mu-button",{staticClass:"appointBtn",on:{click:function(n){return t.isAppointed(e)}}},[t._v("已约")]):t._e(),0==e.WxOrder&&0==e.OrderId?i("mu-button",{staticClass:"appointBtn disableBtn",on:{click:t.isDisable}},[t._v("预约 ")]):t._e()],1):i("div",[0==e.OrderId?i("mu-button",{staticClass:"appointBtn disableBtn",on:{click:t.isDisable}},[t._v("预约")]):t._e()],1)])])})),""==t.list?i("div",{staticClass:"tips"},[i("p",{staticStyle:{"text-align":"center"}},[t._v(" 暂无可预约的课程 ")])]):t._e()],2),i("mu-avatar",{attrs:{color:"rgb(231, 82, 150)"},nativeOn:{click:function(e){return t.goPage("lesson")}}},[i("mu-icon",{attrs:{value:"reorder"}})],1)],1),i("bottomTab",{attrs:{curTab:t.thisTab}}),i("div",{staticClass:"doalog"},[i("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}}},[i("p",[t._v(" 是否预约 课程:"+t._s(t.dialog.ClassName)+" ,时间:"+t._s(t.dialog.BeginStr)+" - "+t._s(t.dialog.EndStr)+" "),i("br")]),i("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.closeAlertDialog},slot:"actions"},[t._v("取消")]),i("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.confirmAppoint},slot:"actions"},[t._v("确定")])],1)],1),i("alert",{ref:"alertPart"})],1)},r=[],a=(n("2bd2"),n("efd4"),n("82ae"),n("a8da")),s=n("b8a1"),o=n("2dc0"),u=(n("379d"),n("fed1")),c={data:function(){return{num:0,thisTab:"预约课程",active:0,timeSelect:"",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,e){t||(this.active=e)},changeTime:function(t){this.timeSelect=t,this.getList()},getIndex:function(t){console.log(t)},getQueryNextWeek:function(){var t=this,e=this,n={token:localStorage.token,shopId:this.$route.query.shopId},i=u.stringify(n);this.weeks=[],Object(s["P"])(i).then((function(n){var i=n;0==i.Code?(t.HaveDays=i.Rs,t.getFurtherDays(t.HaveDays)):(e.list=[],e.$message.error(i.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(),i=864e5,r="",a=[],s=0,o=0,u=!1;this.weeks=[];for(var c=0;c<7;c++)r=new Date(n+c*i),s=r.getMonth()+1,o=r.getDate(),s=s<10?"0"+s:s,o=o<10?"0"+o:o,c>=t&&(u=!0),a={name:this.numberToWeek(r.getDay()),data:r.getMonth()+1+"月"+r.getDate()+"日",orderDate:r.getFullYear()+"-"+s+"-"+o,day:this.numberToWeek(r.getDay()),monthDate:r.getMonth()+1,dayDate:r.getDate(),disable:u},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(s["z"])(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(i){var r=i.result;if(r){var a={token:localStorage.token,orderId:t.OrderId},o=u.stringify(a);Object(s["A"])(o).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,orderTimeType:this.timeSelect},i=u.stringify(n);t.list=[],t.num=0,Object(s["b"])(i).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})))):t.alertInfo(n.Memo+" 错误码:"+n.Code)}))}},components:{bottomTab:a["a"],alert:o["a"]}},d=c,l=(n("3bb5"),n("cba8")),f=Object(l["a"])(d,i,r,!1,null,"62b7313e",null);e["default"]=f.exports},a8da:function(t,e,n){"use strict";var i=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)},r=[],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}}},s=a,o=(n("29ee"),n("cba8")),u=Object(o["a"])(s,i,r,!1,null,"2008d39a",null);e["a"]=u.exports},b8a1:function(t,e,n){"use strict";n.d(e,"Z",(function(){return s})),n.d(e,"h",(function(){return o})),n.d(e,"k",(function(){return u})),n.d(e,"O",(function(){return c})),n.d(e,"W",(function(){return d})),n.d(e,"z",(function(){return l})),n.d(e,"A",(function(){return f})),n.d(e,"C",(function(){return v})),n.d(e,"D",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"T",(function(){return m})),n.d(e,"V",(function(){return y})),n.d(e,"Q",(function(){return b})),n.d(e,"o",(function(){return g})),n.d(e,"S",(function(){return T})),n.d(e,"P",(function(){return C})),n.d(e,"x",(function(){return _})),n.d(e,"E",(function(){return x})),n.d(e,"H",(function(){return S})),n.d(e,"J",(function(){return k})),n.d(e,"F",(function(){return W})),n.d(e,"G",(function(){return D})),n.d(e,"K",(function(){return I})),n.d(e,"M",(function(){return O})),n.d(e,"L",(function(){return w})),n.d(e,"r",(function(){return F})),n.d(e,"q",(function(){return P})),n.d(e,"X",(function(){return Q})),n.d(e,"Y",(function(){return L})),n.d(e,"I",(function(){return A})),n.d(e,"g",(function(){return B})),n.d(e,"a",(function(){return M})),n.d(e,"R",(function(){return $})),n.d(e,"y",(function(){return U})),n.d(e,"B",(function(){return V})),n.d(e,"f",(function(){return N})),n.d(e,"u",(function(){return G})),n.d(e,"s",(function(){return j})),n.d(e,"t",(function(){return E})),n.d(e,"v",(function(){return H})),n.d(e,"w",(function(){return q})),n.d(e,"j",(function(){return R})),n.d(e,"c",(function(){return J})),n.d(e,"d",(function(){return z})),n.d(e,"n",(function(){return X})),n.d(e,"N",(function(){return Y})),n.d(e,"p",(function(){return K})),n.d(e,"U",(function(){return Z})),n.d(e,"e",(function(){return tt})),n.d(e,"m",(function(){return et})),n.d(e,"i",(function(){return nt})),n.d(e,"l",(function(){return it}));var i=n("82ae"),r=n.n(i);n("379d");function a(t,e){return r.a.post(t,e).then((function(t){var e=t.data;return e}),(function(t){console.info(t)}))}function s(t){var e=headapi+"testSelect";return a(e,t)}function o(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 d(t){var e=headapi+"v1/Auth/WXBind";return a(e,t)}function l(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 y(t){var e=headapi+"v1/Weixin/VipUserSelfQuery";return a(e,t)}function b(t){var e=headapi+"v1/Weixin/SchoolTimeQueryByDate";return a(e,t)}function g(t){var e=headapi+"v1/User/ManagerSelfQuery";return a(e,t)}function T(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return a(e,t)}function C(t){var e=headapi+"v1/Weixin/QueryNextWeek";return a(e,t)}function _(t){var e=headapi+"v1/Weixin/MyShopQuery";return a(e,t)}function x(t){var e=headapi+"v1/Weixin/PersonCardStatistics";return a(e,t)}function S(t){var e=headapi+"v1/Weixin/PersonClassStatistics";return a(e,t)}function k(t){var e=headapi+"v1/Weixin/PersonMonthStatistics";return a(e,t)}function W(t){var e=headapi+"v1/Weixin/PersonClassDetail";return a(e,t)}function D(t){var e=headapi+"v1/Weixin/PersonClassList";return a(e,t)}function I(t){var e=headapi+"v1/Weixin/PersonScoreClassQuery";return a(e,t)}function O(t){var e=headapi+"v1/Weixin/PersonTtolistQuery";return a(e,t)}function w(t){var e=headapi+"v1/Weixin/PersonTtdStaticsQuery";return a(e,t)}function F(t){var e=headapi+"v1/Weixin/MyDailyTrainOverviewQuery";return a(e,t)}function P(t){var e=headapi+"v1/Weixin/MyDailyTrainDetailListQuery";return a(e,t)}function Q(t){var e=headapi+"v1/Weixin/WxTplClassOverDetail";return a(e,t)}function L(t){var e=headapi+"v1/Weixin/WxTplScoreClassQuery";return a(e,t)}function A(t){var e=headapi+"v1/Weixin/PersonFtoList";return a(e,t)}function B(t){var e=headapi+"v1/FitnessTest/FtoDetailQuery";return a(e,t)}function M(t){var e=headapi+"v1/FitnessTest/CanOrderDateQuery";return a(e,t)}function $(t){var e=headapi+"v1/Shop/ShopQueryByUnLoginLoalLoutUser";return a(e,t)}function U(t){var e=headapi+"v1/Auth/NotUserGetPhoneVFCode";return a(e,t)}function V(t){var e=headapi+"v1/FitnessTest/OrderFitnessTestAdd";return a(e,t)}function N(t){var e=headapi+"v1/FitnessTest/FTGroupTypeIsOrderOneQuery";return a(e,t)}function G(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestListQuery";return a(e,t)}function j(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestCancel";return a(e,t)}function E(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestDetailList";return a(e,t)}function H(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestListQueryByOpenId";return a(e,t)}function q(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestLogOut";return a(e,t)}function R(t){var e=headapi+"v1/FitnessTest/GetOpenIdAndPhoneByCode";return a(e,t)}function J(t){var e=headapi+"v1/WxPay/ChargeInfoQuery";return a(e,t)}function z(t){var e=headapi+"v1/WxPay/CurrentPromotionsQuery";return a(e,t)}function X(t){var e=headapi+"v1/WxPay/JsApiPrepayRequest";return a(e,t)}function Y(t){var e=headapi+"v1/WxPay/PhoneRelationShopQuery";return a(e,t)}function K(t){var e=headapi+"v1/WxPay/MyChargeInfoListQuery";return a(e,t)}function Z(t){var e=headapi+"v1/Weixin/VipUserSelfInviteCodeQuery";return a(e,t)}function tt(t){var e=headapi+"v1/WxPay/CurrentPromotionsTabQuery";return a(e,t)}function et(t){var e=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(e,t)}function nt(t){var e=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(e,t)}function it(t){var e=headbpi+"v1/OutService/GetSportPercentByDuId";return a(e,t)}}}]);
- //# sourceMappingURL=chunk-78befdac.undefined.1676960993248.js.map
|