| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f17d882"],{"00ec":function(t,e,n){},1432:function(t,e,n){var r=n("e4e4");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"1cdb":function(t,e,n){"use strict";var r=n("3fad"),i=n("bde6"),a=n("1432"),o=n("1de2"),s=n("1306"),u=n("63ec"),c=n("a787"),f=n("ed3e"),l=n("336f"),d=n("70d4"),v=n("42ad"),p=d("isConcatSpreadable"),h=9007199254740991,m="Maximum allowed index exceeded",b=v>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),_=l("concat"),g=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)},y=!b||!_;r({target:"Array",proto:!0,forced:y},{concat:function(t){var e,n,r,i,a,o=s(this),l=f(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],g(a)){if(i=u(a.length),d+i>h)throw TypeError(m);for(n=0;n<i;n++,d++)n in a&&c(l,d,a[n])}else{if(d>=h)throw TypeError(m);c(l,d++,a)}return l.length=d,l}})},"1f8d":function(t,e,n){"use strict";n("00ec")},"2bd2":function(t,e,n){var r=n("02ba"),i=n("40ac").f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in a)&&i(a,u,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(t){return""}}})},"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},"336f":function(t,e,n){var r=n("bde6"),i=n("70d4"),a=n("42ad"),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}))}},"3bc6":function(t,e,n){},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},a787:function(t,e,n){"use strict";var r=n("0890"),i=n("40ac"),a=n("dcbd");t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,a(0,n)):t[o]=n}},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:"report",src:" ",tabindex:3},{name:"我的运动",class:"mine",src:" ",tabindex:4}]}},props:["curTab"],methods:{},watch:{$route:function(t){this.nowTab=t.meta.title}}},o=a,s=(n("1f8d"),n("cba8")),u=Object(s["a"])(o,r,i,!1,null,"6cd7e7bd",null);e["a"]=u.exports},b738:function(t,e,n){"use strict";n("3bc6")},b8a1:function(t,e,n){"use strict";n.d(e,"z",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"s",(function(){return c})),n.d(e,"y",(function(){return f})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return v})),n.d(e,"l",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"w",(function(){return m})),n.d(e,"x",(function(){return b})),n.d(e,"u",(function(){return _})),n.d(e,"g",(function(){return g})),n.d(e,"v",(function(){return y})),n.d(e,"t",(function(){return S})),n.d(e,"h",(function(){return x})),n.d(e,"m",(function(){return C})),n.d(e,"p",(function(){return w})),n.d(e,"q",(function(){return k})),n.d(e,"n",(function(){return W})),n.d(e,"o",(function(){return T})),n.d(e,"r",(function(){return I})),n.d(e,"f",(function(){return A})),n.d(e,"c",(function(){return L})),n.d(e,"e",(function(){return O}));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 f(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 d(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 _(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 y(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return a(e,t)}function S(t){var e=headapi+"v1/Weixin/QueryNextWeek";return a(e,t)}function x(t){var e=headapi+"v1/Weixin/MyShopQuery";return a(e,t)}function C(t){var e=headapi+"v1/Weixin/PersonCardStatistics";return a(e,t)}function w(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 T(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 A(t){var e=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(e,t)}function L(t){var e=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(e,t)}function O(t){var e=headbpi+"v1/OutService/GetSportPercentByDuId";return a(e,t)}},bc37:function(t,e,n){var r=n("1de2"),i=n("1432"),a=n("70d4"),o=a("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)?r(e)&&(e=e[o],null===e&&(e=void 0)):e=void 0),void 0===e?Array:e}},e1fc: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("img",{attrs:{src:n("6939"),width:"100%"}}),r("div",{staticClass:"context"},[r("span",{staticClass:"num"},[t._v(" 记录共 "+t._s(t.num)+" 条 ")]),r("mu-tabs",{attrs:{value:t.active,color:"#F2F2F2","indicator-color":"#ffffff",center:""},on:{"update:value":function(e){t.active=e}}},[r("mu-tab",[t._v("已预约")]),r("mu-tab",[t._v("预约记录")]),r("mu-tab",[t._v("消费记录")])],1),r("ul",{staticClass:"list"},[r("mu-load-more",{attrs:{refreshing:t.refreshing,loading:t.loading},on:{refresh:t.refresh,load:t.load}},t._l(t.list,(function(e){return r("li",[2!=t.active?r("div",{staticClass:"lt"},[r("h5",[t._v(t._s(e.CurrentDate))]),r("em",[t._v(t._s(t._f("filterWeek")(e.CurrentDate)))]),r("span",[t._v(t._s(e.BeginStr)+"-"+t._s(e.EndStr))])]):t._e(),2==t.active?r("div",{staticClass:"lt"},[r("h5",[t._v(t._s(t._f("filterTime")(e.CreatedAt)))]),r("span",[t._v("剩余课时 "+t._s(e.AfterNormalhour+e.AfterGifthour))])]):t._e(),r("div",{staticClass:"md",staticStyle:{position:"relative",left:"10%"}},[r("em",[-1!=e.ShopName.search("英泓小飞龙")?r("span",{staticClass:"shop"},[t._v(t._s(e.ShopName.match(/英泓小飞龙(\S*)/)[1]))]):-1!=e.ShopName.search("小飞龙")?r("span",{staticClass:"shop"},[t._v(t._s(e.ShopName.match(/小飞龙(\S*)/)[1]))]):r("span",{staticClass:"shop"},[t._v(t._s(e.ShopName))]),r("span",{staticClass:"lessons",style:{background:e.ClassColor}},[t._v(" "+t._s(e.ClassName)+" ")])])]),r("div",{staticClass:"rt"},[0==e.Status?r("mu-button",{attrs:{color:"error",flat:""},on:{click:function(n){return t.cancleAppoint(e)}}},[t._v("取消预约")]):t._e(),1==e.Status?r("span",{staticClass:"isFinish"},[r("mu-button",{attrs:{color:"error",flat:""},on:{click:function(n){return t.cancleAppoint(e)}}},[t._v("取消预约")])],1):t._e(),2==e.Status?r("span",{staticClass:"red"},[t._v(" 已取消 ")]):t._e(),3==e.Status?r("span",{staticClass:"red"},[t._v(" 预约未到 ")]):t._e(),4==e.Status?r("span",{staticClass:"green"},[t._v(" 已完成 ")]):t._e(),2==t.active?r("em",[t._v(" - "+t._s(e.NormalHour+e.GiftHour)+"课时 ")]):t._e()],1)])})),0),r("div",{staticClass:"tips"},[0==t.active&&null==t.list?r("p",[t._v(" 暂无已预约 ")]):t._e(),1==t.active&&null==t.list?r("p",[t._v(" 暂无预约记录 ")]):t._e(),2==t.active&&""==t.list?r("p",[t._v(" 暂无消费记录 ")]):t._e()])],1)],1),r("bottomTab",{attrs:{curTab:t.thisTab}}),r("alert",{ref:"alertPart"})],1)},i=[],a=(n("1cdb"),n("2bd2"),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,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 e=this,n=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=u.stringify(a);Object(o["j"])(s).then((function(t){var e=t;0==e.Code?(n.alertInfo("当前课程已取消预约","success"),n.getList()):n.alertInfo(e.Memo+" 错误码:"+e.Code)}))}else e.alertInfo("点击了取消")}))},getOrderListQuery:function(t){var e=this,n={token:localStorage.token,statusList:t,start:1,tableMax:299},r=u.stringify(n);0!=parseInt(this.active)&&1!=parseInt(this.active)||Object(o["k"])(r).then((function(t){var n=t;0==n.Code?(e.list=n.Rs,e.list?e.num=n.Rs.length:e.num=0):e.alertInfo(n.Memo+" 错误码:"+n.Code)}))},getVipUserConsumeListQuery:function(){var t=this,e={token:localStorage.token,start:this.start,tableMax:this.tableMax},n=u.stringify(e);Object(o["w"])(n).then((function(e){var n=e;0==n.Code?(t.list=t.list.concat(n.Rs),t.list&&(t.num=n.Rs.length)):t.alertInfo(n.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,e,n){n((function(e){"record"==t.name&&e.getList()}))},filters:{filterTime:function(t){return t?globalfmtDate(t):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"星期天"}}},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,l=(n("b738"),n("cba8")),d=Object(l["a"])(f,r,i,!1,null,"330609e1",null);e["default"]=d.exports},ed3e:function(t,e,n){var r=n("bc37");t.exports=function(t,e){return new(r(t))(0===e?0:e)}}}]);
- //# sourceMappingURL=chunk-0f17d882.undefined.1629122440766.js.map
|