| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6de618bc"],{"053b":function(t,e,n){var r=n("1e2c"),a=n("d910").f,i=Function.prototype,s=i.toString,o=/^\s*function ([^ (]*)/,c="name";r&&!(c in i)&&a(i,c,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(t){return""}}})},"1bbd":function(t,e,n){"use strict";var r=n("9f67"),a=n("d910"),i=n("38b9");t.exports=function(t,e,n){var s=r(e);s in t?a.f(t,s,i(0,n)):t[s]=n}},"1ca1":function(t,e,n){var r=n("a719"),a=n("74e7"),i=n("90fb"),s=i("species");t.exports=function(t,e){var n;return a(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?r(n)&&(n=n[s],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"1ea7":function(t,e,n){var r=n("efe2"),a=n("90fb"),i=n("f594"),s=a("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"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)},a=[],i={data:function(){return{openSimple:!1,text:""}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},s=i,o=n("9ca4"),c=Object(o["a"])(s,r,a,!1,null,"41501c8e",null);e["a"]=c.exports},"463b":function(t,e,n){},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},"74e7":function(t,e,n){var r=n("2118");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"907a":function(t,e,n){"use strict";var r=n("463b"),a=n.n(r);a.a},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)},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(t){this.nowTab=t.meta.title}}},s=i,o=(n("f644"),n("9ca4")),c=Object(o["a"])(s,r,a,!1,null,"0f57b1ae",null);e["a"]=c.exports},b4fb:function(t,e,n){"use strict";var r=n("1c8b"),a=n("efe2"),i=n("74e7"),s=n("a719"),o=n("3553"),c=n("d88d"),u=n("1bbd"),l=n("1ca1"),f=n("1ea7"),d=n("90fb"),v=n("f594"),p=d("isConcatSpreadable"),h=9007199254740991,m="Maximum allowed index exceeded",b=v>=51||!a((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=f("concat"),_=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)},y=!b||!g;r({target:"Array",proto:!0,forced:y},{concat:function(t){var e,n,r,a,i,s=o(this),f=l(s,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?s:arguments[e],_(i)){if(a=c(i.length),d+a>h)throw TypeError(m);for(n=0;n<a;n++,d++)n in i&&u(f,d,i[n])}else{if(d>=h)throw TypeError(m);u(f,d++,i)}return f.length=d,f}})},b87d:function(t,e,n){},b8a1:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"j",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"h",(function(){return v})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return m}));var r=n("82ae"),a=n.n(r);n("379d");function i(t,e){return a.a.post(t,e).then((function(t){var e=t.data;return e}),(function(t){console.info(t)}))}function s(t){var e=headapi+"v1/Weixin/OderAddByVipUser";return i(e,t)}function o(t){var e=headapi+"v1/Weixin/OderCancelByVipUser";return i(e,t)}function c(t){var e=headapi+"v1/Weixin/OrderListQuery";return i(e,t)}function u(t){var e=headapi+"v1/Weixin/OrderShopQuery";return i(e,t)}function l(t){var e=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return i(e,t)}function f(t){var e=headapi+"v1/Weixin/VipUserConsumeListQuery";return i(e,t)}function d(t){var e=headapi+"v1/Weixin/VipUserSelfQuery";return i(e,t)}function v(t){var e=headapi+"v1/Weixin/SchoolTimeQueryByDate";return i(e,t)}function p(t){var e=headapi+"v1/User/ManagerSelfQuery";return i(e,t)}function h(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return i(e,t)}function m(t){var e=headapi+"v1/Weixin/QueryNextWeek";return i(e,t)}},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"),height:"121",width:"414"}}),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))])]):t._e(),r("div",{staticClass:"md"},[r("em",[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)+"课时 ")]):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)},a=[],i=(n("b4fb"),n("053b"),n("82ae"),n("a8da")),s=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(r){var a=r.result;if(a){var i={token:localStorage.token,orderId:t.OrderId},o=c.stringify(i);Object(s["d"])(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},r=c.stringify(n);0!=parseInt(this.active)&&1!=parseInt(this.active)||Object(s["e"])(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=c.stringify(e);Object(s["j"])(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:i["a"],alert:o["a"]}},l=u,f=(n("907a"),n("9ca4")),d=Object(f["a"])(l,r,a,!1,null,"364d079a",null);e["default"]=d.exports},f644:function(t,e,n){"use strict";var r=n("b87d"),a=n.n(r);a.a}}]);
- //# sourceMappingURL=chunk-6de618bc.87d3a7a0.js.map
|