| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5508997e"],{"053b":function(t,e,n){var a=n("1e2c"),r=n("d910").f,s=Function.prototype,i=s.toString,o=/^\s*function ([^ (]*)/,c="name";a&&!(c in s)&&r(s,c,{configurable:!0,get:function(){try{return i.call(this).match(o)[1]}catch(t){return""}}})},"1bbd":function(t,e,n){"use strict";var a=n("9f67"),r=n("d910"),s=n("38b9");t.exports=function(t,e,n){var i=a(e);i in t?r.f(t,i,s(0,n)):t[i]=n}},"1ca1":function(t,e,n){var a=n("a719"),r=n("74e7"),s=n("90fb"),i=s("species");t.exports=function(t,e){var n;return r(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?a(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"1ea7":function(t,e,n){var a=n("efe2"),r=n("90fb"),s=n("f594"),i=r("species");t.exports=function(t){return s>=51||!a((function(){var e=[],n=e.constructor={};return n[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"2dc0":function(t,e,n){"use strict";var a=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=[],s={data:function(){return{openSimple:!1,text:"1111"}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},i=s,o=n("9ca4"),c=Object(o["a"])(i,a,r,!1,null,"12c3e3ca",null);e["a"]=c.exports},"48a3":function(t,e,n){"use strict";var a=n("d8a9"),r=n.n(a);r.a},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},"74e7":function(t,e,n){var a=n("2118");t.exports=Array.isArray||function(t){return"Array"==a(t)}},a8da:function(t,e,n){"use strict";var a=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=[],s={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(t){this.nowTab=t.meta.title}}},i=s,o=(n("f644"),n("9ca4")),c=Object(o["a"])(i,a,r,!1,null,"0f57b1ae",null);e["a"]=c.exports},b4fb:function(t,e,n){"use strict";var a=n("1c8b"),r=n("efe2"),s=n("74e7"),i=n("a719"),o=n("3553"),c=n("d88d"),u=n("1bbd"),l=n("1ca1"),f=n("1ea7"),d=n("90fb"),v=n("f594"),m=d("isConcatSpreadable"),p=9007199254740991,h="Maximum allowed index exceeded",b=v>=51||!r((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),g=f("concat"),_=function(t){if(!i(t))return!1;var e=t[m];return void 0!==e?!!e:s(t)},C=!b||!g;a({target:"Array",proto:!0,forced:C},{concat:function(t){var e,n,a,r,s,i=o(this),f=l(i,0),d=0;for(e=-1,a=arguments.length;e<a;e++)if(s=-1===e?i:arguments[e],_(s)){if(r=c(s.length),d+r>p)throw TypeError(h);for(n=0;n<r;n++,d++)n in s&&u(f,d,s[n])}else{if(d>=p)throw TypeError(h);u(f,d++,s)}return f.length=d,f}})},b87d:function(t,e,n){},d8a9:function(t,e,n){},e1fc:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pages"},[a("img",{attrs:{src:n("6939"),height:"121",width:"414"}}),a("div",{staticClass:"context"},[a("span",{staticClass:"num"},[t._v(" 记录共 "+t._s(t.num)+" 条 ")]),a("mu-tabs",{attrs:{value:t.active,color:"#F2F2F2","indicator-color":"#ffffff",center:""},on:{"update:value":function(e){t.active=e}}},[a("mu-tab",[t._v("已预约")]),a("mu-tab",[t._v("预约记录")]),a("mu-tab",[t._v("消费记录")])],1),a("ul",{staticClass:"list"},[a("mu-load-more",{attrs:{refreshing:t.refreshing,loading:t.loading},on:{refresh:t.refresh,load:t.load}},t._l(t.list,(function(e){return a("li",[2!=t.active?a("div",{staticClass:"lt"},[a("em",[t._v(t._s(t._f("filterWeek")(e.CurrentDate)))]),a("h5",[t._v(t._s(e.CurrentDate))]),a("span",[t._v(t._s(e.BeginStr)+"-"+t._s(e.EndStr))])]):t._e(),2==t.active?a("div",{staticClass:"lt"},[a("h5",[t._v(t._s(t._f("filterTime")(e.CreatedAt)))]),a("span",[t._v("剩余课时 "+t._s(e.AfterNormalhour))])]):t._e(),a("div",{staticClass:"md"},[a("em",[a("span",{staticClass:"lessons",style:{background:e.ClassColor}},[t._v(" "+t._s(e.ClassName)+" ")])]),0==e.Status?a("span",{staticClass:"green"},[t._v(" 预约上课 ")]):t._e(),1==e.Status&&0==t.active?a("span",{staticClass:"green"},[t._v(" 已预约 ")]):t._e()]),a("div",{staticClass:"rt"},[0==e.Status?a("mu-button",{attrs:{color:"error",round:""},on:{click:function(n){return t.cancleAppoint(e)}}},[t._v("取消")]):t._e(),1==e.Status?a("span",{staticClass:"isFinish"},[a("mu-button",{attrs:{color:"error",round:""},on:{click:function(n){return t.cancleAppoint(e)}}},[t._v("取消")])],1):t._e(),2==e.Status?a("span",{staticClass:"red"},[t._v(" 已取消 ")]):t._e(),3==e.Status?a("span",{staticClass:"red"},[t._v(" 预约未到 ")]):t._e(),4==e.Status?a("span",{staticClass:"green"},[t._v(" 已完成 ")]):t._e(),2==t.active?a("em",[t._v(" - "+t._s(e.NormalHour)+"课时 ")]):t._e()],1)])})),0),a("div",{staticClass:"tips"},[0==t.active&&null==t.list?a("p",[t._v(" 暂无已预约 ")]):t._e(),1==t.active&&null==t.list?a("p",[t._v(" 暂无预约记录 ")]):t._e(),2==t.active&&""==t.list?a("p",[t._v(" 暂无消费记录 ")]):t._e()])],1)],1),a("bottomTab",{attrs:{curTab:t.thisTab}}),a("alert",{ref:"alertPart"})],1)},r=[],s=(n("b4fb"),n("053b"),n("82ae"),n("a8da")),i=n("b8a1"),o=n("2dc0"),c=(n("379d"),n("fed1")),u={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(a){var r=a.result;if(r){var s={token:localStorage.token,orderId:t.OrderId},o=c.stringify(s);Object(i["f"])(o).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},a=c.stringify(n);0!=parseInt(this.active)&&1!=parseInt(this.active)||Object(i["g"])(a).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=c.stringify(e);Object(i["l"])(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:s["a"],alert:o["a"]}},l=u,f=(n("48a3"),n("9ca4")),d=Object(f["a"])(l,a,r,!1,null,"483985ea",null);e["default"]=d.exports},f644:function(t,e,n){"use strict";var a=n("b87d"),r=n.n(a);r.a}}]);
- //# sourceMappingURL=chunk-5508997e.3aa905d1.js.map
|