webpackJsonp([65],{"FG/P":function(t,a){},nV1L:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),r=e("Qie6"),o=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),v={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",defaultNavpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navName:{1:"卡券列表",11:"编辑卡券",12:"新增卡券",2:"卡券记录"},navFrontPath:{1:"/cardList",11:"/cardList",12:"/cardList",2:"/cardList"},tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path=a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:r.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(v,h,!1,function(t){e("FG/P")},"data-v-9bc8e98c",null);a.default=u.exports}});