| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4aadb7bd"],{"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("5d22"),c=Object(o["a"])(s,r,a,!1,null,"5a3ccfc4",null);e["a"]=c.exports},"41a2":function(t,e,n){},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},"7bd4":function(t,e,n){"use strict";n("b83a")},"8b79":function(t,e,n){"use strict";var r=n("c194"),a=n("ae56"),i=n("9cb3"),s=n("0d56"),o=n("cb38"),c=n("873d"),u=n("cddd"),l=n("dd98"),f=n("cc64"),d=n("905a"),v=n("edd5"),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})),_=f("concat"),g=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)},y=!b||!_;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],g(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}})},"9cb3":function(t,e,n){var r=n("13ee");t.exports=Array.isArray||function(t){return"Array"==r(t)}},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("7bd4"),n("5d22")),c=Object(o["a"])(s,r,a,!1,null,"4342f396",null);e["a"]=c.exports},b738:function(t,e,n){"use strict";n("41a2")},b83a:function(t,e,n){},b8a1:function(t,e,n){"use strict";n.d(e,"q",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"p",(function(){return l})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"h",(function(){return v})),n.d(e,"i",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"n",(function(){return m})),n.d(e,"o",(function(){return b})),n.d(e,"l",(function(){return _})),n.d(e,"d",(function(){return g})),n.d(e,"m",(function(){return y})),n.d(e,"k",(function(){return C})),n.d(e,"e",(function(){return S}));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+"testSelect";return i(e,t)}function o(t){var e=headapi+"v1/Auth/GenVerifyPic";return i(e,t)}function c(t){var e=headapi+"v1/Auth/GetPhoneVFCode";return i(e,t)}function u(t){var e=headapi+"v1/Auth/PhoneSignIn";return i(e,t)}function l(t){var e=headapi+"v1/Auth/WXBind";return i(e,t)}function f(t){var e=headapi+"v1/Weixin/OderAddByVipUser";return i(e,t)}function d(t){var e=headapi+"v1/Weixin/OderCancelByVipUser";return i(e,t)}function v(t){var e=headapi+"v1/Weixin/OrderListQuery";return i(e,t)}function p(t){var e=headapi+"v1/Weixin/OrderShopQuery";return i(e,t)}function h(t){var e=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return i(e,t)}function m(t){var e=headapi+"v1/Weixin/VipUserConsumeListQuery";return i(e,t)}function b(t){var e=headapi+"v1/Weixin/VipUserSelfQuery";return i(e,t)}function _(t){var e=headapi+"v1/Weixin/SchoolTimeQueryByDate";return i(e,t)}function g(t){var e=headapi+"v1/User/ManagerSelfQuery";return i(e,t)}function y(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return i(e,t)}function C(t){var e=headapi+"v1/Weixin/QueryNextWeek";return i(e,t)}function S(t){var e=headapi+"v1/Weixin/MyShopQuery";return i(e,t)}},cc64:function(t,e,n){var r=n("ae56"),a=n("905a"),i=n("edd5"),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}))}},cddd:function(t,e,n){"use strict";var r=n("46c3"),a=n("fc7a"),i=n("495c");t.exports=function(t,e,n){var s=r(e);s in t?a.f(t,s,i(0,n)):t[s]=n}},dd98:function(t,e,n){var r=n("0d56"),a=n("9cb3"),i=n("905a"),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)}},dfe9:function(t,e,n){var r=n("6c52"),a=n("fc7a").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""}}})},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)},a=[],i=(n("8b79"),n("dfe9"),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["g"])(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["h"])(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["n"])(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("b738"),n("5d22")),d=Object(f["a"])(l,r,a,!1,null,"330609e1",null);e["default"]=d.exports}}]);
- //# sourceMappingURL=chunk-4aadb7bd.undefined.1619690112201.js.map
|