| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e85c6e0"],{"045c":function(t,n,e){t.exports=e.p+"img/shop2.9b179b9e.jpg"},"053b":function(t,n,e){var i=e("1e2c"),r=e("d910").f,a=Function.prototype,o=a.toString,u=/^\s*function ([^ (]*)/,s="name";i&&!(s in a)&&r(a,s,{configurable:!0,get:function(){try{return o.call(this).match(u)[1]}catch(t){return""}}})},"2dc0":function(t,n,e){"use strict";var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("mu-dialog",{attrs:{title:"通知",width:"360",open:t.openSimple},on:{"update:open":function(n){t.openSimple=n}}},[t._v(" "+t._s(t.text)+" "),e("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.closeSimpleDialog},slot:"actions"},[t._v("关闭")])],1)],1)},r=[],a={data:function(){return{openSimple:!1,text:""}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},o=a,u=e("9ca4"),s=Object(u["a"])(o,i,r,!1,null,"41501c8e",null);n["a"]=s.exports},6939:function(t,n,e){t.exports=e.p+"img/banner.e70f9803.png"},"79ab":function(t,n,e){"use strict";var i=e("bfe1"),r=e.n(i);r.a},"9a4b":function(t,n,e){t.exports=e.p+"img/shop.e2f887d4.jpg"},"9ba7":function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{attrs:{id:"mainPage"}},[i("img",{attrs:{src:e("6939"),height:"121",width:"414"}}),i("span",{staticClass:"shopNum"},[t._v(" 俱乐部场馆共 "+t._s(t.list.length)+" 处 ")]),i("ul",{staticClass:"list"},[t._l(t.list,(function(n){return 1==n.Status?i("li",{on:{click:function(e){return t.goAppoint(n)}}},[4==n.ShopID?i("img",{attrs:{src:e("9a4b"),width:"130px"}}):i("img",{attrs:{src:e("045c"),width:"130px"}}),i("div",{staticClass:"rt"},[i("h5",[t._v(t._s(n.ShopName))]),i("span",[t._v("今日预约名额剩余 "),n.RemainOrdernum>0?i("i",[t._v(t._s(n.RemainOrdernum))]):t._e(),0==n.RemainOrdernum?i("i",{staticClass:"red"},[t._v(t._s(n.RemainOrdernum))]):t._e(),t._v(" 人")]),i("span",[t._v("地址:"+t._s(n.Addr))]),1==n.WxStatus&&1==n.IsJoin?i("em",{staticClass:"green"},[t._v("点击预约")]):i("em",{staticClass:"red"},[t._v("不可预约")])])]):t._e()})),""==t.list?i("div",{staticClass:"tips"},[i("p",{staticStyle:{"text-align":"center"}},[t._v(" 暂无可预约的门店 ")])]):t._e()],2),i("bottomTab",{attrs:{curTab:t.thisTab}}),i("alert",{ref:"alertPart"})],1)},r=[],a=(e("053b"),e("b8a1")),o=e("a8da"),u=e("2dc0"),s=(e("82ae"),e("379d"),e("fed1")),c={data:function(){return{thisTab:"预约课程",shopNum:0,recordNum:0,Dannum:0,GetHotelCounts:0,GetDetectorNum:0,currShopId:0,list:[]}},mounted:function(){this.getManagerSelfQuery()},destroyed:function(){},watch:{$route:function(t){"main"==t.name&&this.getList()},active:function(){this.getList()}},methods:{alertInfo:function(t){this.$refs.alertPart.openSimpleDialog(t)},getManagerSelfQuery:function(){var t=this,n=this,e={token:localStorage.token},i=s.stringify(e);Object(a["b"])(i).then((function(e){var i=e;0==i.Code?(t.currShopId=i.Rs.ShopId,t.getList()):(n.alertInfo(i.Memo),1010==i.Code&&(localStorage.clear(),console.log(1010),n.$router.push({path:"/login"})))}))},getList:function(){var t=this,n=this,e={token:localStorage.token},i=s.stringify(e);Object(a["f"])(i).then((function(e){var i=e;0==i.Code?(n.list=i.Rs,n.list&&(n.shopNum=i.Rs.length)):(n.alertInfo(i.Memo),1004==i.Code&&(localStorage.clear(),console.log(1010),t.$router.push({path:"/login"})))}))},onGoNewPage:function(t){this.$router.push({path:"/"+t})},goPage:function(t){this.$router.push({path:t})},goAppoint:function(t){var n=this;return 0==t.IsJoin?(n.alertInfo("您不是该店会员,不可预约"),!1):2==t.Status?(n.alertInfo(t.name+"不可预约"),!1):void this.$router.push({path:"/appoint",query:{shopId:t.ShopID}})}},beforeRouteEnter:function(t,n,e){e((function(n){""==t.name&&n.getList()}))},components:{bottomTab:o["a"],alert:u["a"]}},l=c,f=(e("79ab"),e("9ca4")),p=Object(f["a"])(l,i,r,!1,null,"031b4aba",null);n["default"]=p.exports},a8da:function(t,n,e){"use strict";var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"bottomTab"}},[e("mu-container",{staticStyle:{width:"100%"},attrs:{color:"primary"}},[e("mu-bottom-nav",{attrs:{value:t.nowTab,color:"#E75296"}},t._l(t.tabs,(function(t){return e("mu-bottom-nav-item",{key:t.tabindex,attrs:{title:t.name,icon:t.src,to:t.class,value:t.name}})})),1)],1)],1)},r=[],a={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}}},o=a,u=(e("f644"),e("9ca4")),s=Object(u["a"])(o,i,r,!1,null,"0f57b1ae",null);n["a"]=s.exports},b87d:function(t,n,e){},b8a1:function(t,n,e){"use strict";e.d(n,"c",(function(){return o})),e.d(n,"d",(function(){return u})),e.d(n,"e",(function(){return s})),e.d(n,"f",(function(){return c})),e.d(n,"a",(function(){return l})),e.d(n,"j",(function(){return f})),e.d(n,"k",(function(){return p})),e.d(n,"h",(function(){return d})),e.d(n,"b",(function(){return h})),e.d(n,"i",(function(){return m})),e.d(n,"g",(function(){return v}));var i=e("82ae"),r=e.n(i);e("379d");function a(t,n){return r.a.post(t,n).then((function(t){var n=t.data;return n}),(function(t){console.info(t)}))}function o(t){var n=headapi+"v1/Weixin/OderAddByVipUser";return a(n,t)}function u(t){var n=headapi+"v1/Weixin/OderCancelByVipUser";return a(n,t)}function s(t){var n=headapi+"v1/Weixin/OrderListQuery";return a(n,t)}function c(t){var n=headapi+"v1/Weixin/OrderShopQuery";return a(n,t)}function l(t){var n=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return a(n,t)}function f(t){var n=headapi+"v1/Weixin/VipUserConsumeListQuery";return a(n,t)}function p(t){var n=headapi+"v1/Weixin/VipUserSelfQuery";return a(n,t)}function d(t){var n=headapi+"v1/Weixin/SchoolTimeQueryByDate";return a(n,t)}function h(t){var n=headapi+"v1/User/ManagerSelfQuery";return a(n,t)}function m(t){var n=headapi+"v1/Weixin/VipUserCleCkSum";return a(n,t)}function v(t){var n=headapi+"v1/Weixin/QueryNextWeek";return a(n,t)}},bfe1:function(t,n,e){},f644:function(t,n,e){"use strict";var i=e("b87d"),r=e.n(i);r.a}}]);
- //# sourceMappingURL=chunk-1e85c6e0.9e8ce18c.js.map
|