| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-07005541"],{"045c":function(t,e,n){t.exports=n.p+"img/shop2.9b179b9e.jpg"},"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("5d22"),u=Object(s["a"])(o,r,i,!1,null,"5a3ccfc4",null);e["a"]=u.exports},"31d9":function(t,e,n){t.exports=n.p+"img/shop6.d0612495.png"},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},"6fd8":function(t,e,n){"use strict";n("f670")},"7bd4":function(t,e,n){"use strict";n("b83a")},"9a4b":function(t,e,n){t.exports=n.p+"img/shop.e2f887d4.jpg"},"9ba7":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",{attrs:{id:"mainPage"}},[r("img",{attrs:{src:n("6939"),width:"100%"}}),r("span",{staticClass:"shopNum"},[t._v(" 俱乐部场馆共 "+t._s(t.list.length)+" 处 ")]),r("ul",{staticClass:"list"},[t._l(t.list,(function(e){return 1==parseInt(e.Status)?r("li",{on:{click:function(n){return t.goAppoint(e)}}},[r("div",{staticClass:"lt"},[r("img",{directives:[{name:"show",rawName:"v-show",value:3==parseInt(e.ShopID),expression:"parseInt(l.ShopID) == 3"}],attrs:{src:n("045c"),width:"100%",height:"100%"}}),r("img",{directives:[{name:"show",rawName:"v-show",value:4==parseInt(e.ShopID),expression:"parseInt(l.ShopID) == 4"}],attrs:{src:n("9a4b"),width:"100%",height:"100%"}}),r("img",{directives:[{name:"show",rawName:"v-show",value:5==parseInt(e.ShopID),expression:"parseInt(l.ShopID) == 5"}],attrs:{src:n("ac30"),width:"100%",height:"100%"}}),r("img",{directives:[{name:"show",rawName:"v-show",value:6==parseInt(e.ShopID),expression:"parseInt(l.ShopID) == 6"}],attrs:{src:n("31d9"),width:"100%",height:"100%"}}),r("img",{directives:[{name:"show",rawName:"v-show",value:7==parseInt(e.ShopID),expression:"parseInt(l.ShopID) == 7"}],attrs:{src:n("a926"),width:"100%",height:"100%"}}),r("img",{directives:[{name:"show",rawName:"v-show",value:8==parseInt(e.ShopID),expression:"parseInt(l.ShopID) == 8"}],attrs:{src:n("a926"),width:"100%",height:"100%"}})]),r("div",{staticClass:"rt"},[3==e.ShopID?r("h4",{staticStyle:{"background-color":"#FFA310"}},[t._v(t._s(e.ShopName.substr(5,12)))]):t._e(),4==e.ShopID?r("h4",{staticStyle:{"background-color":"#37CB00"}},[t._v(t._s(e.ShopName.substr(5,12)))]):t._e(),5==e.ShopID?r("h4",{staticStyle:{"background-color":"#028FE1"}},[t._v(t._s(e.ShopName.substr(5,12)))]):t._e(),6==e.ShopID?r("h4",{staticStyle:{"background-color":"#d624e1"}},[t._v(t._s(e.ShopName))]):t._e(),7==e.ShopID?r("h4",{staticStyle:{"background-color":"#13e15c"}},[t._v(t._s(e.ShopName))]):t._e(),8==e.ShopID?r("h4",{staticStyle:{"background-color":"#4a13e1"}},[t._v(t._s(e.ShopName))]):t._e(),r("span",[t._v("今日预约名额剩余 "),e.RemainOrdernum>0?r("i",[t._v(t._s(e.RemainOrdernum))]):t._e(),0==e.RemainOrdernum?r("i",{staticClass:"red"},[t._v(t._s(e.RemainOrdernum))]):t._e(),t._v(" 人")]),r("span",[t._v("地址:"+t._s(e.Addr))]),1==e.WxStatus&&1==e.IsJoin?r("em",{staticClass:"green"},[t._v("点击预约")]):r("em",{staticClass:"red"},[t._v("不可预约")])])]):t._e()})),""==t.list?r("div",{staticClass:"tips"},[r("p",{staticStyle:{"text-align":"center"}},[t._v(" 暂无可预约的门店 ")])]):t._e()],2),r("bottomTab",{attrs:{curTab:t.thisTab}}),r("alert",{ref:"alertPart"})],1)},i=[],a=(n("dfe9"),n("b8a1")),o=n("a8da"),s=n("2dc0"),u=(n("82ae"),n("379d"),n("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,e=this,n={token:localStorage.token},r=u.stringify(n);Object(a["d"])(r).then((function(n){var r=n;0==r.Code?(t.currShopId=r.Rs.ShopId,t.getList()):(e.alertInfo(r.Memo),1010==r.Code&&(localStorage.clear(),console.log(1010),e.$router.push({path:"/login"})))}))},getList:function(){var t=this,e=this,n={token:localStorage.token},r=u.stringify(n);Object(a["i"])(r).then((function(n){var r=n;0==r.Code?(e.list=r.Rs,e.list&&(e.shopNum=r.Rs.length)):(e.alertInfo(r.Memo),1004==r.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 e=this;return 0==t.IsJoin?(e.alertInfo("您不是该店会员,不可预约"),!1):2==t.Status?(e.alertInfo(t.name+"不可预约"),!1):void this.$router.push({path:"/appoint",query:{shopId:t.ShopID}})}},beforeRouteEnter:function(t,e,n){n((function(e){""==t.name&&e.getList()}))},components:{bottomTab:o["a"],alert:s["a"]}},p=c,h=(n("6fd8"),n("5d22")),l=Object(h["a"])(p,r,i,!1,null,"796f7700",null);e["default"]=l.exports},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:"mine",src:" ",tabindex:3}]}},props:["curTab"],methods:{},watch:{$route:function(t){this.nowTab=t.meta.title}}},o=a,s=(n("7bd4"),n("5d22")),u=Object(s["a"])(o,r,i,!1,null,"4342f396",null);e["a"]=u.exports},a926:function(t,e,n){t.exports=n.p+"img/outdoor.26d4dbdc.png"},ac30:function(t,e,n){t.exports=n.p+"img/shop3.cab9f61e.png"},b83a:function(t,e,n){},b8a1:function(t,e,n){"use strict";n.d(e,"q",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"j",(function(){return c})),n.d(e,"p",(function(){return p})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return f})),n.d(e,"a",(function(){return m})),n.d(e,"n",(function(){return v})),n.d(e,"o",(function(){return g})),n.d(e,"l",(function(){return S})),n.d(e,"d",(function(){return b})),n.d(e,"m",(function(){return _})),n.d(e,"k",(function(){return I})),n.d(e,"e",(function(){return w}));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 p(t){var e=headapi+"v1/Auth/WXBind";return a(e,t)}function h(t){var e=headapi+"v1/Weixin/OderAddByVipUser";return a(e,t)}function l(t){var e=headapi+"v1/Weixin/OderCancelByVipUser";return a(e,t)}function d(t){var e=headapi+"v1/Weixin/OrderListQuery";return a(e,t)}function f(t){var e=headapi+"v1/Weixin/OrderShopQuery";return a(e,t)}function m(t){var e=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return a(e,t)}function v(t){var e=headapi+"v1/Weixin/VipUserConsumeListQuery";return a(e,t)}function g(t){var e=headapi+"v1/Weixin/VipUserSelfQuery";return a(e,t)}function S(t){var e=headapi+"v1/Weixin/SchoolTimeQueryByDate";return a(e,t)}function b(t){var e=headapi+"v1/User/ManagerSelfQuery";return a(e,t)}function _(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return a(e,t)}function I(t){var e=headapi+"v1/Weixin/QueryNextWeek";return a(e,t)}function w(t){var e=headapi+"v1/Weixin/MyShopQuery";return a(e,t)}},dfe9:function(t,e,n){var r=n("6c52"),i=n("fc7a").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""}}})},f670:function(t,e,n){}}]);
- //# sourceMappingURL=chunk-07005541.undefined.1619690112201.js.map
|