chunk-2103b221.undefined.1727314329046.js 14 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2103b221"],{"0b8c":function(t,n,e){},"2dc0":function(t,n,e){"use strict";var r=function(){var t=this,n=t._self._c;return n("div",[n("mu-dialog",{attrs:{title:"通知",width:"360",open:t.openSimple},on:{"update:open":function(n){t.openSimple=n}}},[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}}},u=a,s=e("2877"),o=Object(s["a"])(u,r,i,!1,null,"5a3ccfc4",null);n["a"]=o.exports},"466d":function(t,n,e){"use strict";var r=e("c65b"),i=e("d784"),a=e("825a"),u=e("7234"),s=e("50c4"),o=e("577e"),c=e("1d80"),f=e("dc4a"),d=e("8aa5"),l=e("14c3");i("match",(function(t,n,e){return[function(n){var e=c(this),i=u(n)?void 0:f(n,t);return i?r(i,n,e):new RegExp(n)[t](o(e))},function(t){var r=a(this),i=o(t),u=e(n,r,i);if(u.done)return u.value;if(!r.global)return l(r,i);var c=r.unicode;r.lastIndex=0;var f,v=[],p=0;while(null!==(f=l(r,i))){var h=o(f[0]);v[p]=h,""===h&&(r.lastIndex=d(i,s(r.lastIndex),c)),p++}return 0===p?null:v}]}))},6939:function(t,n,e){t.exports=e.p+"img/banner.e70f9803.png"},8418:function(t,n,e){"use strict";var r=e("a04b"),i=e("9bf2"),a=e("5c6c");t.exports=function(t,n,e){var u=r(n);u in t?i.f(t,u,a(0,e)):t[u]=e}},"843d":function(t,n,e){"use strict";e("d0e2")},"99af":function(t,n,e){"use strict";var r=e("23e7"),i=e("d039"),a=e("e8b5"),u=e("861d"),s=e("7b0b"),o=e("07fa"),c=e("3511"),f=e("8418"),d=e("65f0"),l=e("1dde"),v=e("b622"),p=e("2d00"),h=v("isConcatSpreadable"),m=p>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),y=function(t){if(!u(t))return!1;var n=t[h];return void 0!==n?!!n:a(t)},b=!m||!l("concat");r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(t){var n,e,r,i,a,u=s(this),l=d(u,0),v=0;for(n=-1,r=arguments.length;n<r;n++)if(a=-1===n?u:arguments[n],y(a))for(i=o(a),c(v+i),e=0;e<i;e++,v++)e in a&&f(l,v,a[e]);else c(v+1),f(l,v++,a);return l.length=v,l}})},a8da:function(t,n,e){"use strict";e("b0c0");var r=function(){var t=this,n=t._self._c;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}}},u=a,s=(e("843d"),e("2877")),o=Object(s["a"])(u,r,i,!1,null,"2008d39a",null);n["a"]=o.exports},b0c0:function(t,n,e){"use strict";var r=e("83ab"),i=e("5e77").EXISTS,a=e("e330"),u=e("edd0"),s=Function.prototype,o=a(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=a(c.exec),d="name";r&&!i&&u(s,d,{configurable:!0,get:function(){try{return f(c,o(this))[1]}catch(t){return""}}})},b8a1:function(t,n,e){"use strict";e.d(n,"Z",(function(){return u})),e.d(n,"h",(function(){return s})),e.d(n,"k",(function(){return o})),e.d(n,"O",(function(){return c})),e.d(n,"W",(function(){return f})),e.d(n,"z",(function(){return d})),e.d(n,"A",(function(){return l})),e.d(n,"C",(function(){return v})),e.d(n,"D",(function(){return p})),e.d(n,"b",(function(){return h})),e.d(n,"T",(function(){return m})),e.d(n,"V",(function(){return y})),e.d(n,"Q",(function(){return b})),e.d(n,"o",(function(){return g})),e.d(n,"S",(function(){return x})),e.d(n,"P",(function(){return C})),e.d(n,"x",(function(){return _})),e.d(n,"E",(function(){return S})),e.d(n,"H",(function(){return T})),e.d(n,"J",(function(){return W})),e.d(n,"F",(function(){return Q})),e.d(n,"G",(function(){return O})),e.d(n,"K",(function(){return I})),e.d(n,"M",(function(){return L})),e.d(n,"L",(function(){return P})),e.d(n,"r",(function(){return F})),e.d(n,"q",(function(){return w})),e.d(n,"X",(function(){return k})),e.d(n,"Y",(function(){return D})),e.d(n,"I",(function(){return A})),e.d(n,"g",(function(){return M})),e.d(n,"a",(function(){return U})),e.d(n,"R",(function(){return V})),e.d(n,"y",(function(){return B})),e.d(n,"B",(function(){return N})),e.d(n,"f",(function(){return G})),e.d(n,"u",(function(){return R})),e.d(n,"s",(function(){return j})),e.d(n,"t",(function(){return E})),e.d(n,"v",(function(){return H})),e.d(n,"w",(function(){return J})),e.d(n,"j",(function(){return $})),e.d(n,"c",(function(){return X})),e.d(n,"d",(function(){return q})),e.d(n,"n",(function(){return z})),e.d(n,"N",(function(){return K})),e.d(n,"p",(function(){return Y})),e.d(n,"U",(function(){return Z})),e.d(n,"e",(function(){return tt})),e.d(n,"m",(function(){return nt})),e.d(n,"i",(function(){return et})),e.d(n,"l",(function(){return rt}));var r=e("bc3a"),i=e.n(r);e("379d");function a(t,n){return i.a.post(t,n).then((function(t){var n=t.data;return n}),(function(t){console.info(t)}))}function u(t){var n=headapi+"testSelect";return a(n,t)}function s(t){var n=headapi+"v1/Auth/GenVerifyPic";return a(n,t)}function o(t){var n=headapi+"v1/Auth/GetPhoneVFCode";return a(n,t)}function c(t){var n=headapi+"v1/Auth/PhoneSignIn";return a(n,t)}function f(t){var n=headapi+"v1/Auth/WXBind";return a(n,t)}function d(t){var n=headapi+"v1/Weixin/OderAddByVipUser";return a(n,t)}function l(t){var n=headapi+"v1/Weixin/OderCancelByVipUser";return a(n,t)}function v(t){var n=headapi+"v1/Weixin/OrderListQuery";return a(n,t)}function p(t){var n=headapi+"v1/Weixin/OrderShopQuery";return a(n,t)}function h(t){var n=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return a(n,t)}function m(t){var n=headapi+"v1/Weixin/VipUserConsumeListQuery";return a(n,t)}function y(t){var n=headapi+"v1/Weixin/VipUserSelfQuery";return a(n,t)}function b(t){var n=headapi+"v1/Weixin/SchoolTimeQueryByDate";return a(n,t)}function g(t){var n=headapi+"v1/User/ManagerSelfQuery";return a(n,t)}function x(t){var n=headapi+"v1/Weixin/VipUserCleCkSum";return a(n,t)}function C(t){var n=headapi+"v1/Weixin/QueryNextWeek";return a(n,t)}function _(t){var n=headapi+"v1/Weixin/MyShopQuery";return a(n,t)}function S(t){var n=headapi+"v1/Weixin/PersonCardStatistics";return a(n,t)}function T(t){var n=headapi+"v1/Weixin/PersonClassStatistics";return a(n,t)}function W(t){var n=headapi+"v1/Weixin/PersonMonthStatistics";return a(n,t)}function Q(t){var n=headapi+"v1/Weixin/PersonClassDetail";return a(n,t)}function O(t){var n=headapi+"v1/Weixin/PersonClassList";return a(n,t)}function I(t){var n=headapi+"v1/Weixin/PersonScoreClassQuery";return a(n,t)}function L(t){var n=headapi+"v1/Weixin/PersonTtolistQuery";return a(n,t)}function P(t){var n=headapi+"v1/Weixin/PersonTtdStaticsQuery";return a(n,t)}function F(t){var n=headapi+"v1/Weixin/MyDailyTrainOverviewQuery";return a(n,t)}function w(t){var n=headapi+"v1/Weixin/MyDailyTrainDetailListQuery";return a(n,t)}function k(t){var n=headapi+"v1/Weixin/WxTplClassOverDetail";return a(n,t)}function D(t){var n=headapi+"v1/Weixin/WxTplScoreClassQuery";return a(n,t)}function A(t){var n=headapi+"v1/Weixin/PersonFtoList";return a(n,t)}function M(t){var n=headapi+"v1/FitnessTest/FtoDetailQuery";return a(n,t)}function U(t){var n=headapi+"v1/FitnessTest/CanOrderDateQuery";return a(n,t)}function V(t){var n=headapi+"v1/Shop/ShopQueryByUnLoginLoalLoutUser";return a(n,t)}function B(t){var n=headapi+"v1/Auth/NotUserGetPhoneVFCode";return a(n,t)}function N(t){var n=headapi+"v1/FitnessTest/OrderFitnessTestAdd";return a(n,t)}function G(t){var n=headapi+"v1/FitnessTest/FTGroupTypeIsOrderOneQuery";return a(n,t)}function R(t){var n=headapi+"v1/FitnessTest/MyOrderFitnessTestListQuery";return a(n,t)}function j(t){var n=headapi+"v1/FitnessTest/MyOrderFitnessTestCancel";return a(n,t)}function E(t){var n=headapi+"v1/FitnessTest/MyOrderFitnessTestDetailList";return a(n,t)}function H(t){var n=headapi+"v1/FitnessTest/MyOrderFitnessTestListQueryByOpenId";return a(n,t)}function J(t){var n=headapi+"v1/FitnessTest/MyOrderFitnessTestLogOut";return a(n,t)}function $(t){var n=headapi+"v1/FitnessTest/GetOpenIdAndPhoneByCode";return a(n,t)}function X(t){var n=headapi+"v1/WxPay/ChargeInfoQuery";return a(n,t)}function q(t){var n=headapi+"v1/WxPay/CurrentPromotionsQuery";return a(n,t)}function z(t){var n=headapi+"v1/WxPay/JsApiPrepayRequest";return a(n,t)}function K(t){var n=headapi+"v1/WxPay/PhoneRelationShopQuery";return a(n,t)}function Y(t){var n=headapi+"v1/WxPay/MyChargeInfoListQuery";return a(n,t)}function Z(t){var n=headapi+"v1/Weixin/VipUserSelfInviteCodeQuery";return a(n,t)}function tt(t){var n=headapi+"v1/WxPay/CurrentPromotionsTabQuery";return a(n,t)}function nt(t){var n=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(n,t)}function et(t){var n=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(n,t)}function rt(t){var n=headbpi+"v1/OutService/GetSportPercentByDuId";return a(n,t)}},d0e2:function(t,n,e){},e1fc:function(t,n,e){"use strict";e.r(n);e("ac1f"),e("841c"),e("466d");var r=function(){var t=this,n=t._self._c;return n("div",{staticClass:"pages"},[n("img",{attrs:{src:e("6939"),width:"100%"}}),n("div",{staticClass:"context"},[n("span",{staticClass:"num"},[t._v(" 记录共 "+t._s(t.num)+" 条 ")]),n("mu-tabs",{attrs:{value:t.active,color:"#F2F2F2","indicator-color":"#ffffff",center:""},on:{"update:value":function(n){t.active=n}}},[n("mu-tab",[t._v("已预约")]),n("mu-tab",[t._v("预约记录")]),n("mu-tab",[t._v("消费记录")])],1),n("ul",{staticClass:"list"},[n("mu-load-more",{attrs:{refreshing:t.refreshing,loading:t.loading},on:{refresh:t.refresh,load:t.load}},t._l(t.list,(function(e){return n("li",[2!=t.active?n("div",{staticClass:"lt"},[n("h5",[t._v(t._s(e.CurrentDate))]),n("em",[t._v(t._s(t._f("filterWeek")(e.CurrentDate)))]),n("span",[t._v(t._s(e.BeginStr)+"-"+t._s(e.EndStr))])]):t._e(),2==t.active?n("div",{staticClass:"lt"},[n("h5",[t._v(t._s(t._f("filterTime")(e.CreatedAt)))]),n("span",[t._v("剩余课时 "+t._s(e.AfterNormalhour+e.AfterGifthour))])]):t._e(),n("div",{staticClass:"md",staticStyle:{position:"relative",left:"10%"}},[n("em",[-1!=e.ShopName.search("英泓小飞龙")?n("span",{staticClass:"shop"},[t._v(t._s(e.ShopName.match(/英泓小飞龙(\S*)/)[1]))]):-1!=e.ShopName.search("小飞龙")?n("span",{staticClass:"shop"},[t._v(t._s(e.ShopName.match(/小飞龙(\S*)/)[1]))]):n("span",{staticClass:"shop"},[t._v(t._s(e.ShopName))]),n("span",{staticClass:"lessons",style:{color:e.ClassColor,border:"1px solid"+e.ClassColor}},[t._v(" "+t._s(e.ClassName)+" ")])])]),n("div",{staticClass:"rt"},[0==e.Status?n("mu-button",{attrs:{color:"error",flat:""},on:{click:function(n){return t.cancleAppoint(e)}}},[t._v("取消预约")]):t._e(),1==e.Status?n("span",{staticClass:"isFinish"},[n("mu-button",{attrs:{color:"error",flat:""},on:{click:function(n){return t.cancleAppoint(e)}}},[t._v("取消预约")])],1):t._e(),2==e.Status?n("span",{staticClass:"red"},[t._v(" 已取消 ")]):t._e(),3==e.Status?n("span",{staticClass:"red"},[t._v(" 预约未到 ")]):t._e(),4==e.Status?n("span",{staticClass:"green"},[t._v(" 已完成 ")]):t._e(),2==t.active?n("em",[t._v(" - "+t._s(e.NormalHour+e.GiftHour)+"课时 ")]):t._e()],1)])})),0),n("div",{staticClass:"tips"},[0==t.active&&null==t.list?n("p",[t._v(" 暂无已预约 ")]):t._e(),1==t.active&&null==t.list?n("p",[t._v(" 暂无预约记录 ")]):t._e(),2==t.active&&""==t.list?n("p",[t._v(" 暂无消费记录 ")]):t._e()])],1)],1),n("bottomTab",{attrs:{curTab:t.thisTab}}),n("alert",{ref:"alertPart"})],1)},i=[],a=(e("99af"),e("b0c0"),e("bc3a"),e("a8da")),u=e("b8a1"),s=e("2dc0"),o=(e("379d"),e("4328")),c={data:function(){return{num:0,thisTab:"预约记录",active:0,sum:0,openAlert:!1,list:[],dialog:{id:"",name:"",timeLong:""},refreshing:!1,loading:!1,start:1,tableMax:6}},mounted:function(){this.getList()},methods:{alertInfo:function(t){this.$refs.alertPart.openSimpleDialog(t)},refresh:function(){},load:function(){var t=this;if(2!=this.active)return!1;this.loading=!0,setTimeout((function(){t.loading=!1,t.start=t.start+6,t.getVipUserConsumeListQuery()}),2e3)},cancleAppoint:function(t){var n=this,e=this;this.$confirm("是否取消"+t.ClassName+"课程预约?","提示",{type:"warning"}).then((function(r){var i=r.result;if(i){var a={token:localStorage.token,orderId:t.OrderId},s=o.stringify(a);Object(u["A"])(s).then((function(t){var n=t;0==n.Code?(e.alertInfo("当前课程已取消预约","success"),e.getList()):e.alertInfo(n.Memo+" 错误码:"+n.Code)}))}else n.alertInfo("点击了取消")}))},getOrderListQuery:function(t){var n=this,e={token:localStorage.token,statusList:t,start:1,tableMax:299},r=o.stringify(e);0!=parseInt(this.active)&&1!=parseInt(this.active)||Object(u["C"])(r).then((function(t){var e=t;0==e.Code?(n.list=e.Rs,n.list?n.num=e.Rs.length:n.num=0):n.alertInfo(e.Memo+" 错误码:"+e.Code)}))},getVipUserConsumeListQuery:function(){var t=this,n={token:localStorage.token,start:this.start,tableMax:this.tableMax},e=o.stringify(n);Object(u["T"])(e).then((function(n){var e=n;0==e.Code?(t.list=t.list.concat(e.Rs),t.list&&(t.num=e.Rs.length)):t.alertInfo(e.Memo)}))},getList:function(){var t="";switch(this.list=[],parseInt(this.active)){case 0:t=1,this.getOrderListQuery(t);break;case 1:t="2,3,4",this.getOrderListQuery(t);break;case 2:t=1,this.getVipUserConsumeListQuery(t);break}},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"星期天"}}},beforeRouteEnter:function(t,n,e){e((function(n){"record"==t.name&&n.getList()}))},filters:{filterTime:function(t){return t?globalfmtDate(t):0},filterWeek:function(t){if(!t)return!1;var n=new Date(t).getDay();switch(parseInt(n)){case 1:return"星期一";case 2:return"星期二";case 3:return"星期三";case 4:return"星期四";case 5:return"星期五";case 6:return"星期六";case 0:return"星期天"}}},watch:{$route:function(t){"record"==t.name&&this.getList()},active:function(){this.start=1,this.getList()}},components:{bottomTab:a["a"],alert:s["a"]}},f=c,d=(e("e28e"),e("2877")),l=Object(d["a"])(f,r,i,!1,null,"0d2d45f6",null);n["default"]=l.exports},e28e:function(t,n,e){"use strict";e("0b8c")}}]);
  2. //# sourceMappingURL=chunk-2103b221.undefined.1727314329046.js.map