From 0a767c5bbd0c3abf1b3e7fa97f5df93a838fda4b Mon Sep 17 00:00:00 2001 From: bob Date: Sun, 4 Jun 2023 16:40:02 +0800 Subject: [PATCH] =?UTF-8?q?update:=20sync=20v2board-v1.7.4=20&&=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C=E9=A1=B5=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 6148 bytes .idea/.gitignore | 8 -------- .idea/Bob-Theme-Argon.iml | 9 --------- .idea/misc.xml | 6 ------ .idea/modules.xml | 8 -------- .idea/php.xml | 12 ------------ .idea/vcs.xml | 6 ------ README.md | 10 +++++++++- config.json | 2 +- css/app.0c02214a.css | 0 css/chunk-vendors.dba84911.css | 0 dashboard.blade.php | 4 ++-- fonts/fa-brands-400.088a34f7.eot | Bin fonts/fa-brands-400.273dc9bf.ttf | Bin fonts/fa-brands-400.822d94f1.woff2 | Bin fonts/fa-brands-400.f4920c94.woff | Bin fonts/fa-regular-400.3ac49cb3.eot | Bin fonts/fa-regular-400.9efb8697.woff2 | Bin fonts/fa-regular-400.a57bcf76.woff | Bin fonts/fa-regular-400.ece54318.ttf | Bin fonts/fa-solid-900.2aa6edf8.ttf | Bin fonts/fa-solid-900.7fb1cdd9.eot | Bin fonts/fa-solid-900.93f28454.woff | Bin fonts/fa-solid-900.f6121be5.woff2 | Bin fonts/nucleo-icons.2569aaea.woff | Bin fonts/nucleo-icons.42643978.woff2 | Bin fonts/nucleo-icons.c1733565.eot | Bin fonts/nucleo-icons.f82ec6ba.ttf | Bin img/fa-brands-400.d7229311.svg | 0 img/fa-regular-400.d2e53334.svg | 0 img/fa-solid-900.7a5de9b0.svg | 0 img/nucleo-icons.0b8a30b1.svg | 0 img/pay-success.5f5f21d8.svg | 0 js/app.bc245e09.js | 1 + js/app.e69d27cd.js | 1 - js/chunk-vendors.dac02230.js | 0 36 files changed, 13 insertions(+), 54 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/Bob-Theme-Argon.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/php.xml delete mode 100644 .idea/vcs.xml mode change 100644 => 100755 css/app.0c02214a.css mode change 100644 => 100755 css/chunk-vendors.dba84911.css mode change 100644 => 100755 fonts/fa-brands-400.088a34f7.eot mode change 100644 => 100755 fonts/fa-brands-400.273dc9bf.ttf mode change 100644 => 100755 fonts/fa-brands-400.822d94f1.woff2 mode change 100644 => 100755 fonts/fa-brands-400.f4920c94.woff mode change 100644 => 100755 fonts/fa-regular-400.3ac49cb3.eot mode change 100644 => 100755 fonts/fa-regular-400.9efb8697.woff2 mode change 100644 => 100755 fonts/fa-regular-400.a57bcf76.woff mode change 100644 => 100755 fonts/fa-regular-400.ece54318.ttf mode change 100644 => 100755 fonts/fa-solid-900.2aa6edf8.ttf mode change 100644 => 100755 fonts/fa-solid-900.7fb1cdd9.eot mode change 100644 => 100755 fonts/fa-solid-900.93f28454.woff mode change 100644 => 100755 fonts/fa-solid-900.f6121be5.woff2 mode change 100644 => 100755 fonts/nucleo-icons.2569aaea.woff mode change 100644 => 100755 fonts/nucleo-icons.42643978.woff2 mode change 100644 => 100755 fonts/nucleo-icons.c1733565.eot mode change 100644 => 100755 fonts/nucleo-icons.f82ec6ba.ttf mode change 100644 => 100755 img/fa-brands-400.d7229311.svg mode change 100644 => 100755 img/fa-regular-400.d2e53334.svg mode change 100644 => 100755 img/fa-solid-900.7a5de9b0.svg mode change 100644 => 100755 img/nucleo-icons.0b8a30b1.svg mode change 100644 => 100755 img/pay-success.5f5f21d8.svg create mode 100755 js/app.bc245e09.js delete mode 100644 js/app.e69d27cd.js mode change 100644 => 100755 js/chunk-vendors.dac02230.js diff --git a/.DS_Store b/.DS_Store index a77ba3f6cacff5f153c273d0638c7c09d9832eb0..37f58207d42b01ab2cee04b2c3e87cc07a7a3add 100644 GIT binary patch delta 85 zcmZoMXfc@JFUrQiz`)4BAi&_6lb@WFlb;0S3v5 - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index e208459..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index aed0d73..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml deleted file mode 100644 index f5f2744..0000000 --- a/.idea/php.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index 2b039bd..121d8ff 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,20 @@ # Bob-Theme-Argon -适配 V2Board v1.5.1/v1.5.4/v1.6.0/v1.7.0/v1.7.2/v1.7.3 版本的前端主题 +适配 V2Board v1.5.1/v1.5.4/v1.6.0/v1.7.0/v1.7.2/v1.7.3/v1.7.4 版本的前端主题 +### 介绍 本主题由@BobS9开发并维护。 ### 安装 下载到`theme`目录过后要修改当前文件夹名为`Bob-Theme-Argon`,然后在后台选择主题 【Bob-Theme-Argon】 就行了 +### 感谢 +`Bob-Theme-Argon` 基于以下组件: ++ [V2board](https://github.com/v2board/v2board) ++ [Ant Design Vue](https://antdv.com/components/overview) ++ [Vue Argon Design System](https://demos.creative-tim.com/vue-argon-design-system) + +### 产品展示 ![](https://shige.group/such/pic.php/forum/pic/item/cb8065380cd79123d9a3a4ccba345982b3b780c2/mlike.jpg) ![](https://shige.group/such/pic.php/forum/pic/item/060828381f30e924a46941875b086e061c95f7b3/mlike.jpg) diff --git a/config.json b/config.json index 4f7e77c..d1e5e2c 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "name": "Bob-Theme-Argon", "description": "Bob`s Theme Argon", - "version": "1.7.3", + "version": "1.7.4", "images": "https://images.unsplash.com/photo-1515405295579-ba7b45403062?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2160&q=80", "configs": [ { diff --git a/css/app.0c02214a.css b/css/app.0c02214a.css old mode 100644 new mode 100755 diff --git a/css/chunk-vendors.dba84911.css b/css/chunk-vendors.dba84911.css old mode 100644 new mode 100755 diff --git a/dashboard.blade.php b/dashboard.blade.php index 79500cb..f48e43b 100755 --- a/dashboard.blade.php +++ b/dashboard.blade.php @@ -9,7 +9,7 @@ - + @@ -31,6 +31,6 @@ {!! $theme_config['custom_html'] !!} - + diff --git a/fonts/fa-brands-400.088a34f7.eot b/fonts/fa-brands-400.088a34f7.eot old mode 100644 new mode 100755 diff --git a/fonts/fa-brands-400.273dc9bf.ttf b/fonts/fa-brands-400.273dc9bf.ttf old mode 100644 new mode 100755 diff --git a/fonts/fa-brands-400.822d94f1.woff2 b/fonts/fa-brands-400.822d94f1.woff2 old mode 100644 new mode 100755 diff --git a/fonts/fa-brands-400.f4920c94.woff b/fonts/fa-brands-400.f4920c94.woff old mode 100644 new mode 100755 diff --git a/fonts/fa-regular-400.3ac49cb3.eot b/fonts/fa-regular-400.3ac49cb3.eot old mode 100644 new mode 100755 diff --git a/fonts/fa-regular-400.9efb8697.woff2 b/fonts/fa-regular-400.9efb8697.woff2 old mode 100644 new mode 100755 diff --git a/fonts/fa-regular-400.a57bcf76.woff b/fonts/fa-regular-400.a57bcf76.woff old mode 100644 new mode 100755 diff --git a/fonts/fa-regular-400.ece54318.ttf b/fonts/fa-regular-400.ece54318.ttf old mode 100644 new mode 100755 diff --git a/fonts/fa-solid-900.2aa6edf8.ttf b/fonts/fa-solid-900.2aa6edf8.ttf old mode 100644 new mode 100755 diff --git a/fonts/fa-solid-900.7fb1cdd9.eot b/fonts/fa-solid-900.7fb1cdd9.eot old mode 100644 new mode 100755 diff --git a/fonts/fa-solid-900.93f28454.woff b/fonts/fa-solid-900.93f28454.woff old mode 100644 new mode 100755 diff --git a/fonts/fa-solid-900.f6121be5.woff2 b/fonts/fa-solid-900.f6121be5.woff2 old mode 100644 new mode 100755 diff --git a/fonts/nucleo-icons.2569aaea.woff b/fonts/nucleo-icons.2569aaea.woff old mode 100644 new mode 100755 diff --git a/fonts/nucleo-icons.42643978.woff2 b/fonts/nucleo-icons.42643978.woff2 old mode 100644 new mode 100755 diff --git a/fonts/nucleo-icons.c1733565.eot b/fonts/nucleo-icons.c1733565.eot old mode 100644 new mode 100755 diff --git a/fonts/nucleo-icons.f82ec6ba.ttf b/fonts/nucleo-icons.f82ec6ba.ttf old mode 100644 new mode 100755 diff --git a/img/fa-brands-400.d7229311.svg b/img/fa-brands-400.d7229311.svg old mode 100644 new mode 100755 diff --git a/img/fa-regular-400.d2e53334.svg b/img/fa-regular-400.d2e53334.svg old mode 100644 new mode 100755 diff --git a/img/fa-solid-900.7a5de9b0.svg b/img/fa-solid-900.7a5de9b0.svg old mode 100644 new mode 100755 diff --git a/img/nucleo-icons.0b8a30b1.svg b/img/nucleo-icons.0b8a30b1.svg old mode 100644 new mode 100755 diff --git a/img/pay-success.5f5f21d8.svg b/img/pay-success.5f5f21d8.svg old mode 100644 new mode 100755 diff --git a/js/app.bc245e09.js b/js/app.bc245e09.js new file mode 100755 index 0000000..bc6602f --- /dev/null +++ b/js/app.bc245e09.js @@ -0,0 +1 @@ +(function(t){function e(e){for(var s,o,r=e[0],l=e[1],c=e[2],p=0,u=[];pt,t=>{if(t.response)switch(t.response.status){case 401:window.sessionStorage.clear(),window.location.clear(),za.push({name:"login"});break;case 400:3===t.response.data.code&&za.push({name:"error_401"});break;case 403:var e=location.href;-1===e.indexOf("login")&&(location.href="/#/login");break;case 422:var a=t.response.data.errors;if(a){let t=Object.keys(a);v["a"].error(a[t[0]])}else v["a"].error(t.response.data.message);break;case 500:v["a"].error(t.response.data.message);break;default:v["a"].error(t.response.data.message);break}return Promise.reject(t.response.data)});var A={get(t,e){return g.a.defaults.headers.common={Authorization:O.getters.getToken},g.a.defaults.headers["Content-Type"]="application/json;charset=utf-8",new Promise((a,s)=>{g.a.get(t,{params:e}).then((function(t){a(t)})).catch(t=>{s(t),console.log("请求失败:"+t)})})},post(t,e){return g.a.defaults.headers.common={Authorization:O.getters.getToken},g.a.defaults.headers["Content-Type"]="application/x-www-form-urlencoded",new Promise((a,s)=>{g.a.post(t,_.a.stringify(e)).then((function(t){a(t)})).catch(t=>{s(t),console.log("请求失败:"+t)})})}};const P=t=>A.get("/api/v1/guest/comm/config",t).then(t=>t.data),B=t=>A.post("/api/v1/passport/auth/login",t).then(t=>t.data),N=t=>A.post("/api/v1/passport/comm/sendEmailVerify",t).then(t=>t.data),I=t=>A.post("/api/v1/passport/auth/register",t).then(t=>t.data),z=t=>A.post("/api/v1/passport/auth/forget",t).then(t=>t.data);var M={data(){return{activeNotifications:!1,showMenu:!1,searchQuery:""}},props:{user:{type:Object}},mounted(){},methods:{toggleSidebar(){this.$sidebar.displaySidebar(!this.$sidebar.showSidebar)},hideSidebar(){this.$sidebar.displaySidebar(!1)},toggleMenu(){this.showMenu=!this.showMenu},logout(){sessionStorage.clear(),localStorage.clear(),this.$store.commit("setToken",null),setTimeout(()=>{this.$router.push({path:"/login"})},1e3)}}},R=M,L=Object(o["a"])(R,m,h,!1,null,null,null),W=L.exports,E=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"navbar navbar-vertical fixed-left navbar-expand-md navbar-light bg-white",attrs:{id:"sidenav-main"}},[e("div",{staticClass:"container-fluid"},[e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","aria-label":"Toggle navigation"},on:{click:function(e){return t.showSidebarTab()}}},[t._t("default",(function(){return[e("span",{staticClass:"navbar-toggler-icon"})]}))],2),e("router-link",{staticClass:"navbar-brand",attrs:{to:"/dashboard"}},[e("h2",[t._v(t._s(t.app_name))])]),t._t("mobile-right",(function(){return[e("ul",{staticClass:"nav align-items-center d-md-none"},[e("base-dropdown",{staticClass:"nav-item",attrs:{position:"right"},scopedSlots:t._u([{key:"title",fn:function(){return[e("a",{staticClass:"nav-link nav-link-icon",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"ni ni-bell-55"})])]},proxy:!0}])},[e("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("Action")]),e("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("Another action")]),e("div",{staticClass:"dropdown-divider"}),e("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("Something else here")])]),e("base-dropdown",{staticClass:"nav-item",attrs:{position:"right"},scopedSlots:t._u([{key:"title",fn:function(){return[e("a",{staticClass:"nav-link",attrs:{href:"#",role:"button"}},[e("div",{staticClass:"media align-items-center"},[e("span",{staticClass:"avatar avatar-sm rounded-circle"},[e("img",{attrs:{alt:"Image placeholder",src:t.user.avatar_url}})])])])]},proxy:!0}])},[e("div",{staticClass:"dropdown-header noti-title"},[e("h6",{staticClass:"text-overflow m-0"},[t._v("Welcome!")])]),e("router-link",{staticClass:"dropdown-item",attrs:{to:"/profile"}},[e("i",{staticClass:"ni ni-single-02"}),e("span",[t._v("个人中心")])]),e("div",{staticClass:"dropdown-divider"}),e("a",{staticClass:"dropdown-item",on:{click:t.logout}},[e("i",{staticClass:"ni ni-user-run"}),e("span",[t._v("退出登录")])])],1)],1)]})),t._t("default"),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showSidebar,expression:"showSidebar"}],staticClass:"navbar-collapse collapse show",attrs:{id:"sidenav-collapse-main"}},[e("div",{staticClass:"navbar-collapse-header d-md-none"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6 collapse-brand"},[e("span",[t._v(" "+t._s(t.user.email))])]),e("div",{staticClass:"col-6 collapse-close"},[e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","aria-label":"Toggle navigation"},on:{click:t.closeSidebar}},[t._t("default",(function(){return[e("span"),e("span")]}))],2)])])]),e("ul",{staticClass:"navbar-nav"},[t._t("links")],2),e("hr",{staticClass:"my-3"}),e("h6",{staticClass:"navbar-heading text-muted"},[t._v("订阅")]),e("ul",{staticClass:"navbar-nav"},[t._t("links-2")],2),e("hr",{staticClass:"my-3"}),e("h6",{staticClass:"navbar-heading text-muted"},[t._v("财务")]),e("ul",{staticClass:"navbar-nav"},[t._t("links-3")],2),e("hr",{staticClass:"my-3"}),e("h6",{staticClass:"navbar-heading text-muted"},[t._v("用户")]),e("ul",{staticClass:"navbar-nav"},[t._t("links-4")],2)])],2)])},q=[],F=new s["a"],V={name:"sidebar",components:{},data(){return{showSidebar:!1,app_name:window.APP_NAME}},props:{logo:{type:String,default:"img/brand/green.png",description:"Sidebar app logo"},autoClose:{type:Boolean,default:!0,description:"Whether sidebar should autoclose on mobile when clicking an item"},config:{type:Object},user:{type:Object}},mounted(){let t=this;F.$on("sidebar",(function(){t.showSidebar&&(t.showSidebar=!1)})),F.$on("LoginSidebar",(function(){t.showSidebar=!0}))},provide(){return{autoClose:this.autoClose}},methods:{closeSidebar(){this.showSidebar=!1},showSidebarTab(){this.showSidebar?this.showSidebar=!1:this.showSidebar=!0},logout(){sessionStorage.clear(),localStorage.clear(),this.$store.commit("setToken",null),setTimeout(()=>{this.$router.push({path:"/login"})},1e3)}},beforeUnmount(){this.showSidebar&&(this.showSidebar=!1)}},Y=V,H=Object(o["a"])(Y,E,q,!1,null,null,null),U=H.exports,Q=function(){var t=this,e=t._self._c;return e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{to:t.link.path,target:t.link.target,href:"#"+t.link.path},on:{click:function(e){return t.linkClick()}}},[e("i",{class:t.link.icon}),e("span",{staticClass:"nav-link-text"},[t._v(t._s(t.link.name))])])])},J=[],Z={name:"sidebar-item",props:{link:{type:Object,default:()=>({name:"",path:"",children:[]}),description:"Sidebar link. Can contain name, path, icon and other attributes. See examples for more info"}},inject:{autoClose:{default:!0}},data(){return{children:[],collapsed:!0}},methods:{linkClick(){this.autoClose&&F.$emit("sidebar")}}},K=Z,G=Object(o["a"])(K,Q,J,!1,null,null,null),X=G.exports,tt=function(){var t=this,e=t._self._c;return e("footer",{staticClass:"footer px-4"},[e("div",{staticClass:"row align-items-center justify-content-lg-between"},[e("div",{staticClass:"col-lg-6"},[e("div",{staticClass:"copyright text-center text-lg-left text-muted"},[t._v(" © "+t._s(t.year)+" "),e("a",{staticClass:"font-weight-bold ml-1",attrs:{href:"https://github.com/BobCoderS9/Bob-Theme-Argon",target:"_blank"}},[t._v("Argon")])])]),t._m(0)])])},et=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-lg-6"},[e("ul",{staticClass:"nav nav-footer justify-content-center justify-content-lg-end"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"https://github.com/v2board/v2board",target:"_blank"}},[t._v("V2board")])])])])}],at={data(){return{year:(new Date).getFullYear()}}},st=at,it=Object(o["a"])(st,tt,et,!1,null,null,null),nt=it.exports;const ot=t=>A.get("/api/v1/user/info",t).then(t=>t.data),rt=t=>A.get("/api/v1/user/notice/fetch",t).then(t=>t.data),lt=t=>A.get("/api/v1/user/getSubscribe",t).then(t=>t.data),ct=t=>A.get("/api/v1/user/getStat",t).then(t=>t.data),dt=t=>A.get("/api/v1/user/knowledge/fetch",t).then(t=>t.data),pt=t=>A.get("/api/v1/user/server/fetch",t).then(t=>t.data),ut=t=>A.get("/api/v1/user/plan/fetch",t).then(t=>t.data),mt=t=>A.get("/api/v1/user/order/detail",t).then(t=>t.data),ht=t=>A.get("/api/v1/user/order/getPaymentMethod",t).then(t=>t.data),ft=t=>A.get("/api/v1/user/order/check",t).then(t=>t.data),gt=t=>A.post("/api/v1/user/coupon/check",t).then(t=>t.data),vt=t=>A.post("/api/v1/user/order/save",t).then(t=>t.data),bt=t=>A.post("/api/v1/user/order/checkout",t).then(t=>t.data),_t=t=>A.get("/api/v1/user/order/fetch",t).then(t=>t.data),yt=t=>A.get("/api/v1/user/invite/fetch",t).then(t=>t.data),Ct=t=>A.get("/api/v1/user/invite/save",t).then(t=>t.data),wt=t=>A.get("/api/v1/user/invite/details",t).then(t=>t.data),xt=t=>A.get("/api/v1/user/resetSecurity",t).then(t=>t.data),kt=t=>A.get("/api/v1/user/comm/config",t).then(t=>t.data),St=t=>A.post("/api/v1/user/transfer",t).then(t=>t.data),jt=t=>A.post("/api/v1/user/ticket/withdraw",t).then(t=>t.data),$t=t=>A.post("/api/v1/user/changePassword",t).then(t=>t.data),Dt=t=>A.post("/api/v1/user/update",t).then(t=>t.data),Tt=t=>A.get("/api/v1/user/telegram/getBotInfo",t).then(t=>t.data),Ot=t=>A.get("/api/v1/user/ticket/fetch",t).then(t=>t.data),At=t=>A.post("/api/v1/user/ticket/save",t).then(t=>t.data),Pt=t=>A.post("/api/v1/user/ticket/close",t).then(t=>t.data),Bt=t=>A.post("/api/v1/user/ticket/reply",t).then(t=>t.data),Nt=t=>A.get("/api/v1/user/ticket/fetch",t).then(t=>t.data),It=t=>A.get("/api/v1/user/stat/getTrafficLog",t).then(t=>t.data),zt=t=>A.post("/api/v1/user/order/cancel",t).then(t=>t.data);var Mt={components:{DashboardNavbar:W,ContentFooter:nt,SideBar:U,SidebarItem:X},data(){return{sidebarBackground:"vue",user:{},config:{},sub:{},showNoPay:!1,showNoPay2:!0}},mounted(){let t=this;F.$on("haveNoPay",(function(){t.showNoPay=!0})),t.getData()},methods:{toggleSidebar(){F.$emit("sidebar")},getData(){ot().then(t=>{this.user=t.data}),P().then(t=>{this.config=t.data})}}},Rt=Mt,Lt=(a("d0b6"),Object(o["a"])(Rt,p,u,!1,null,null,null)),Wt=Lt.exports,Et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content bg-default"},[e("div",{staticClass:"header bg-gradient-primary py-7 py-lg-6"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-body text-center mb-7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-6"},[e("h1",{staticClass:"text-white"},[t._v(t._s(t.app_name))]),e("p",{staticClass:"text-lead text-white"},[t._v(" "+t._s(t.app_description)+" ")])])])])]),e("div",{staticClass:"separator separator-bottom separator-skew zindex-100"},[e("svg",{attrs:{x:"0",y:"0",viewBox:"0 0 2560 100",preserveAspectRatio:"none",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[e("polygon",{staticClass:"fill-default",attrs:{points:"2560 0 2560 100 0 100"}})])])]),e("div",{staticClass:"container mt--8 pb-5"},[e("router-view")],1),e("footer",{staticClass:"py-5 mt-6"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row align-items-center justify-content-xl-between"},[e("div",{staticClass:"col-xl-6"},[e("div",{staticClass:"copyright text-center text-xl-left text-muted"},[t._v(" © "+t._s(t.year)+" "),e("a",{staticClass:"font-weight-bold ml-1",attrs:{href:"https://github.com/BobCoderS9/Bob-Theme-Argon",target:"_blank"}},[t._v("Argon")])])]),t._m(0)])])])])},qt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-xl-6"},[e("ul",{staticClass:"nav nav-footer justify-content-center justify-content-xl-end"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"https://github.com/v2board/v2board",target:"_blank"}},[t._v("V2board")])])])])}],Ft={name:"auth-layout",data(){return{year:(new Date).getFullYear(),showMenu:!1,config:{},app_description:window.APP_DESCRIPTION,app_name:window.APP_NAME}},mounted(){this.getConfig()},methods:{getConfig(){P().then(t=>{this.config=t.data,localStorage.setItem("config",JSON.stringify(t.data))})}}},Vt=Ft,Yt=Object(o["a"])(Vt,Et,qt,!1,null,null,null),Ht=Yt.exports,Ut=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"会员到期",type:"gradient-red","sub-title":t._f("formatDate")(t.sub.expired_at),icon:"ni ni-circle-08"},scopedSlots:t._u([{key:"footer",fn:function(){return[t.sub.reset_day?e("span",{staticClass:"text-nowrap"},[t._v("距离重置流量还有 "+t._s(t.sub.reset_day)+" 天")]):e("span",{staticClass:"text-nowrap"},[t._v("暂无数据")])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"使用流量",type:"gradient-orange","sub-title":t._f("bytesToSize")(t.sub.u+t.sub.d),icon:"ni ni-chart-bar-32"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("总计 "+t._s(t._f("bytesToSize")(t.sub.transfer_enable)))])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"钱包余额",type:"gradient-green","sub-title":t._f("money")(t.user.balance),icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("可用佣金 "+t._s(t._f("money")(t.user.commission_balance)))])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"待办工单",type:"gradient-info","sub-title":t.stat[1]>0?t.stat[1]:"0",icon:"ni ni-chart-pie-35"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("已关闭工单:0")])]},proxy:!0}])})],1)])]),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row mb-4"},[e("div",{staticClass:"col-xl-6"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("我的订阅")])]),t.sub.plan?e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-8"},[e("strong",[t._v(" "+t._s(t.sub.plan.name)+" ")]),t.sub.expired_at?e("p",[t._v(" 于 "+t._s(t._f("formatDate")(t.sub.expired_at))+" 到期,距离到期还有 "+t._s(t._f("intervalDay")(t.sub.expired_at))+" 天,"+t._s(t.sub.reset_day)+" 日后重置流量 ")]):e("p",[t._v("该订阅长期有效")]),e("base-progress",{attrs:{"show-label":"",type:"primary",height:8,value:Math.ceil((t.sub.u+t.sub.d)/t.sub.transfer_enable*100),label:"已用流量"}}),e("p",[t._v(" 已用 "+t._s(t._f("bytesToSize")(t.sub.u+t.sub.d))+" / 总计 "+t._s(t._f("bytesToSize")(t.sub.transfer_enable))+" ")])],1),e("div",{staticClass:"col-lg-4 text-center",staticStyle:{padding:"4rem"}},[e("base-dropdown2",{attrs:{"title-classes":"btn btn-primary"},scopedSlots:t._u([{key:"title",fn:function(){return[e("i",{staticClass:"ni ni-atom"}),t._v(" 操作 ")]},proxy:!0}],null,!1,2538436264)},[e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id}})}}},[e("i",{staticClass:"ni ni-money-coins"}),t._v(" 续费订阅 ")])]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal3=!0}}},[e("a-icon",{attrs:{type:"reload"}}),t._v(" 重置当月流量 ")],1)]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal2=!0}}},[e("i",{staticClass:"ni ni-atom"}),t._v(" 重置订阅信息 ")])])])],1)])]):e("div",{staticClass:"card-body text-center"},[e("a-empty",{attrs:{image:"https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original","image-style":{height:"60px"}}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅 ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/plan"})}}},[t._v(" 添加订阅 ")])],1)],1)]),e("card",{staticStyle:{width:"100%"},attrs:{"header-classes":"bg-transparent"},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" 我的订阅 ")]),e("h5",{staticClass:"h3 mb-0"},[t._v("订阅链接")])])])]},proxy:!0}])},[t.sub.plan_id?e("div",{staticClass:"chart-body"},[t.show_client.SSR?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle"},[t._v(" SSR 订阅 ")])]},proxy:!0}],null,!1,3478043667)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=shadowsocks",expression:"sub.subscribe_url + '&flag=shadowsocks'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 SSR 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("ssr")}}},[t._v("一键导入 SSR")])]):t._e(),t.show_client.Clash?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle",attrs:{type:"primary"}},[t._v(" Clash 订阅 ")])]},proxy:!0}],null,!1,2653774506)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=clash",expression:"sub.subscribe_url + '&flag=clash'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 Clash 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("clash")}}},[t._v("一键导入 Clash")])]):t._e(),t.show_client.Shadowrocket?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle",attrs:{type:"info"}},[t._v(" Shadowrocket 订阅 ")])]},proxy:!0}],null,!1,2395143647)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=shadowrocket",expression:"sub.subscribe_url + '&flag=shadowrocket'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 Shadowrocket 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("shadowrocket")}}},[t._v("一键导入 Shadowrocket")])]):t._e(),t.show_client.Surge?e("base-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=surge",expression:"sub.subscribe_url + '&flag=surge'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"sub-button",attrs:{type:"secondary"}},[t._v("Surge 订阅")]):t._e(),t.show_client.V2Ray?e("base-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=v2ray",expression:"sub.subscribe_url + '&flag=v2ray'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"sub-button",attrs:{type:"danger"}},[t._v(" 复制 V2Ray 订阅")]):t._e(),t.show_client.Surfboard?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle",attrs:{type:"warning"}},[t._v(" Surfboard 订阅 ")])]},proxy:!0}],null,!1,3643416049)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=surfboard",expression:"sub.subscribe_url + '&flag=surfboard'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 Surfboard 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("surfboard")}}},[t._v("一键导入 Surfboard")])]):t._e()],1):e("div",{staticClass:"card-body text-center"},[e("a-empty",{attrs:{image:"https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original","image-style":{height:"60px"}}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅 ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/plan"})}}},[t._v(" 添加订阅 ")])],1)],1)])],1),e("div",{staticClass:"col-xl-6"},[e("card",{scopedSlots:t._u([{key:"image",fn:function(){return[e("a-carousel",{attrs:{autoplay:!0,afterChange:t.setNotice,"dot-position":"top"}},t._l(t.noticeList,(function(t,a){return e("div",{key:a},[e("img",{staticClass:"card-img-top",attrs:{src:t.img_url,alt:"Card image cap"}})])})),0)]},proxy:!0}])},[e("div",[e("h5",{staticClass:"card-title"},[t._v(t._s(t.noticeDetail.title))]),e("p",{staticClass:"card-text",domProps:{innerHTML:t._s(t.noticeDetail.content)}}),e("p",{staticClass:"card-text"},[e("small",{staticClass:"text-muted"},[t._v(t._s(t._f("formatDate")(t.noticeDetail.updated_at)))])])])])],1)])])],1),e("modal",{attrs:{show:t.modal2,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.resetSublink}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置订阅信息?")]),e("p",[t._v("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。")])])]),e("modal",{attrs:{show:t.modal3,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification2"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal3=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id,cycle:"reset_price"}})}}},[t._v("确定 ")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置当月流量?")]),e("p",[t._v("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。")])])])],1)},Qt=[],Jt=(a("b7ef"),{components:{},data(){return{salesChartID:"salesChart",ordersChartID:"ordersChart",bigLineChart:{allData:[0,20,5,25,10,30,15,40,40],activeIndex:0},noticeList:[],activeKey:[0],sub:{},config:{},noticeDetail:{title:"暂无公告",content:"暂无公告"},stat:[],loading:!0,modal2:!1,modal3:!1,show_client:window.CLIENT}},props:{user:{type:Object}},methods:{setNotice(t){this.noticeList&&(this.noticeDetail=this.noticeList[t])},importSublink(t){let e=this.sub.subscribe_url+"&flag="+t,a={};a["surfboard"]="surfboard:///install-config?url="+encodeURIComponent(e),a["shadowrocket"]="shadowrocket://add/sub://"+window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")+"?remarks="+window.APP_NAME,a["surge"]="surge:///install-config?url="+encodeURIComponent(e),a["surge3"]="surge3:///install-config?url="+encodeURIComponent(e),a["clash"]="clash://install-config?url="+encodeURIComponent(e),a["ssr"]="sub://"+btoa(e),window.location.href=a[t]},copySublink(){const t=this.$createElement;this.$notification.open({message:"复制成功",icon:t("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"})})},getData(){rt().then(t=>{this.noticeList=t.data,t.data.length>0&&(this.noticeDetail=t.data[0]),this.loading=!1}),lt().then(t=>{this.sub=t.data,this.loading=!1}),ct().then(t=>{this.stat=t.data,this.stat[0]>0&&F.$emit("haveNoPay",!0),this.loading=!1})},resetSublink(){xt().then(t=>{this.modal2=!1,t.data&&this.$message.success("重置订阅连接成功")})}},mounted(){let t=this;F.$on("close",(function(){t.modal3=!1,t.modal2=!1})),this.config=JSON.parse(localStorage.getItem("config")),this.getData()},filters:{formatDate:function(t){if(!t)return"暂无数据";10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},bytesToSize(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toPrecision(4)+" "+a[s]},money(t){return"¥"+(t/100).toFixed(2)},intervalDay:function(t){let e=Date.parse(new Date)/1e3,a=t-e;return Math.floor(a/86400)}}}),Zt=Jt,Kt=(a("ac88"),Object(o["a"])(Zt,Ut,Qt,!1,null,null,null)),Gt=Kt.exports,Xt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-7"},[e("div",{staticClass:"card bg-secondary shadow border-0"},[t._m(0),e("div",{staticClass:"card-body px-lg-5 py-lg-5"},[t._m(1),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group input-group input-group-alternative mb-3"},[t._m(2),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"邮箱"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative mb-3"},[t._m(3),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"密码",type:"password",accept:"",alt:""},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),e("base-checkbox",{staticClass:"custom-control-alternative"},[e("span",{staticClass:"text-muted"},[t._v("记住我")])]),e("div",{staticClass:"text-center"},[e("base-button",{staticClass:"my-4",attrs:{icon:"ni ni-spaceship",type:"primary"},on:{click:t.onSubmit}},[t._v("登录")])],1)],1)])]),e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-6"},[e("a",{staticClass:"text-light",on:{click:function(e){return t.$router.push({path:"forgetPassword"})}}},[e("small",[t._v("忘记密码?")])])]),e("div",{staticClass:"col-6 text-right"},[e("router-link",{staticClass:"text-light",attrs:{to:"/register"}},[e("small",[t._v("注册账号")])])],1)])])])},te=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header bg-transparent pb-5"},[e("div",{staticClass:"text-muted text-center mt-2 mb-3"},[e("h2",{staticStyle:{color:"#909399"}},[t._v("用户登陆")])]),e("div",{staticClass:"btn-wrapper text-center"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted mb-4"},[e("small",[t._v("Or sign in with credentials")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])}],ee={name:"login",data(){return{form:{email:"",password:""}}},mounted(){ot().then(t=>{t.data&&this.$router.push({path:"/dashboard"})})},methods:{onSubmit(){B({email:this.form.email,password:this.form.password}).then(t=>{t.data&&(this.$message.success("登录成功"),this.$store.commit("setToken",t.data.auth_data),F.$emit("LoginSidebar"),setTimeout(()=>{this.$router.push({path:"/dashboard"})},1e3))})}}},ae=ee,se=Object(o["a"])(ae,Xt,te,!1,null,null,null),ie=se.exports,ne=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-7"},[e("div",{staticClass:"card bg-secondary shadow border-0"},[t._m(0),e("div",{staticClass:"card-body px-lg-5 py-lg-5"},[t._m(1),e("form",{attrs:{role:"form"}},[t.config.email_whitelist_suffix?e("div",{staticClass:"form-group input-group input-group-alternative"},[e("div",{staticClass:"input-group"},[t._m(2),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"text",placeholder:"邮箱"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}}),e("div",{staticClass:"input-group-append"},[e("span",{staticClass:"input-group-text",staticStyle:{padding:"0px"}},[e("a-select",{staticStyle:{width:"150px"},model:{value:t.email_suffix,callback:function(e){t.email_suffix=e},expression:"email_suffix"}},t._l(t.config.email_whitelist_suffix,(function(a,s){return e("a-select-option",{key:s,attrs:{value:a}},[t._v(" @"+t._s(a)+" ")])})),1)],1)])])]):e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(3),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"邮箱",focused:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t.config.is_email_verify?e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(4),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email_code,expression:"form.email_code"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"验证码"},domProps:{value:t.form.email_code},on:{input:function(e){e.target.composing||t.$set(t.form,"email_code",e.target.value)}}}),e("base-button",{attrs:{type:"primary"}},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],on:{click:function(e){return t.sendMail(!0)}}},[t._v("发送验证码")]),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!show"}],staticClass:"count"},[t._v(t._s(t.count)+" s")])])],1):t._e(),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(5),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"密码",type:"password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(6),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_password,expression:"form.auth_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"确认密码",type:"password"},domProps:{value:t.form.auth_password},on:{input:function(e){e.target.composing||t.$set(t.form,"auth_password",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(7),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.invite_code,expression:"form.invite_code"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:t.invite_text},domProps:{value:t.form.invite_code},on:{input:function(e){e.target.composing||t.$set(t.form,"invite_code",e.target.value)}}})]),e("div",{staticClass:"row my-4"},[e("div",{staticClass:"col-12"},[e("base-checkbox",{staticClass:"custom-control-alternative"},[e("span",{staticClass:"text-muted"},[t._v(" 我已阅读并同意 "),e("a",{attrs:{href:t.config.tos_url}},[t._v("服务条款")])])])],1)]),1===t.config.is_recaptcha?e("div",[e("reCaptcha",{attrs:{sitekey:t.config.recaptcha_site_key},on:{getValidateCode:t.getValidateCode}})],1):t._e(),e("a-modal",{attrs:{title:"验证",visible:t.visible}},[e("reCaptcha",{attrs:{sitekey:t.config.recaptcha_site_key},on:{getValidateCode:t.getValidateCode2}})],1),e("div",{staticClass:"text-center"},[e("base-button",{staticClass:"my-4",attrs:{type:"primary",icon:"ni ni-active-40"},on:{click:t.onSubmit}},[t._v("注册")])],1)],1)])]),e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-6"},[e("router-link",{staticClass:"text-light",attrs:{to:"/forgetPassword"}},[e("small",[t._v("忘记密码")])])],1),e("div",{staticClass:"col-6 text-right"},[e("router-link",{staticClass:"text-light",attrs:{to:"/login"}},[e("small",[t._v("已有账号?请登录")])])],1)])])])},oe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"text-muted text-center mt-2 mb-3"},[e("h2",{staticStyle:{color:"#909399"}},[t._v("用户注册")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted mb-4"},[e("small",[t._v("Or sign up with credentials")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-hat-3"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-air-baloon"})])])}],re=function(){var t=this,e=t._self._c;return e("div",{ref:"grecaptcha"})},le=[],ce={props:["sitekey"],methods:{loaded(){window.grecaptcha.render(this.$refs.grecaptcha,{sitekey:this.sitekey,callback:t=>{this.$emit("getValidateCode",t)}})}},mounted(){window.ReCaptchaLoaded=this.loaded;var t=document.createElement("script");t.src="https://recaptcha.net/recaptcha/api.js?onload=ReCaptchaLoaded&render=explicit",document.head.appendChild(t)}},de=ce,pe=Object(o["a"])(de,re,le,!1,null,null,null),ue=pe.exports,me={name:"register",components:{reCaptcha:ue},data(){return{form:{invite_code:"",email_code:"",email:"",password:"",auth_password:"",recaptcha_data:""},config:{},invite_text:"",email_suffix:"",recaptcha_data:"",key:"",show:!0,visible:!1,count:60}},mounted(){this.$route.query.code&&(this.form.invite_code=this.$route.query.code),this.getConfig(),this.$on("getValidateCode",(function(t){this.form.recaptcha_data=t}))},methods:{getConfig(){P().then(t=>{this.config=t.data,t.data.email_whitelist_suffix&&(this.email_suffix=t.data.email_whitelist_suffix[0]),t.data.is_invite_force?this.invite_text="邀请码(必填)":this.invite_text="邀请码(选填)"})},sendMail(t){if(!this.form.email)return this.$message.warning("请先输入邮箱"),!1;let e=this.form.email;this.email_suffix&&(e=this.form.email+"@"+this.email_suffix);let a=new RegExp("^[A-Za-z\\d]+([-_.][A-Za-z\\d]+)*@([A-Za-z\\d]+[-.])+[A-Za-z\\d]{2,4}$");if(!a.test(e))return this.$message.warning("邮箱格式不正确"),!1;if(1===this.config.is_recaptcha&&t)return this.visible=!0,!1;const s=60;let i={email:e};this.recaptcha_data&&(i.recaptcha_data=this.recaptcha_data),N(i).then(t=>{t.data&&(this.$message.success("发送成功"),this.count=s,this.show=!1,this.timer=setInterval(()=>{this.count>0&&this.count<=s?this.count--:(this.show=!0,clearInterval(this.timer),this.timer=null)},1e3))})},onSubmit(){return this.form.email?this.form.password?this.form.auth_password!==this.form.password?(this.$message.warning("两次密码输入不一致"),!1):this.config.is_invite_force&&!this.form.invite_code?(this.$message.warning("请输入邀请码"),!1):this.config.is_email_verify&&!this.form.email_code?(this.$message.warning("请输入邮箱验证码"),!1):(this.email_suffix&&(this.form.email=this.form.email+"@"+this.email_suffix),void I(this.form).then(t=>{t.data&&(this.$message.success("注册成功"),setTimeout(()=>{this.$router.push({path:"/dashboard"})},1e3))})):(this.$message.warning("请输入密码"),!1):(this.$message.warning("请先输入邮箱"),!1)},getValidateCode(t){this.form.recaptcha_data=t},getValidateCode2(t){this.recaptcha_data=t,this.recaptcha_data&&(this.visible=!1,this.sendMail(!1))}}},he=me,fe=(a("40f9"),Object(o["a"])(he,ne,oe,!1,null,null,null)),ge=fe.exports,ve=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-7"},[e("div",{staticClass:"card bg-secondary shadow border-0"},[t._m(0),e("div",{staticClass:"card-body px-lg-5 py-lg-5"},[t._m(1),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(2),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"邮箱",focused:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(3),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email_code,expression:"form.email_code"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"验证码"},domProps:{value:t.form.email_code},on:{input:function(e){e.target.composing||t.$set(t.form,"email_code",e.target.value)}}}),e("base-button",{attrs:{type:"primary"}},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],on:{click:function(e){return t.sendMail(!0)}}},[t._v("发送验证码")]),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!show"}],staticClass:"count"},[t._v(t._s(t.count)+" s")])])],1),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(4),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"密码",type:"password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(5),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_password,expression:"form.auth_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"确认密码",type:"password"},domProps:{value:t.form.auth_password},on:{input:function(e){e.target.composing||t.$set(t.form,"auth_password",e.target.value)}}})]),e("a-modal",{attrs:{title:"验证",visible:t.visible}},[e("reCaptcha",{attrs:{sitekey:t.config.recaptcha_site_key},on:{getValidateCode:t.getValidateCode2}})],1),e("div",{staticClass:"text-center"},[e("base-button",{staticClass:"my-4",attrs:{type:"primary",icon:"ni ni-active-40"},on:{click:t.onSubmit}},[t._v(" 重置密码 ")])],1)],1)])]),e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-8 text-right"},[e("router-link",{staticClass:"text-light",attrs:{to:"/login"}},[e("small",[t._v("已有账号?请登录")])])],1)])])])},be=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"text-muted text-center mt-2 mb-3"},[e("h2",{staticStyle:{color:"#909399"}},[t._v("忘记密码")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted mb-4"},[e("small",[t._v("Or sign up with credentials")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-hat-3"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])}],_e={name:"register",components:{reCaptcha:ue},data(){return{form:{email_code:"",email:"",password:"",auth_password:""},config:{},show:!0,recaptcha_data:"",visible:!1,count:60}},mounted(){this.getConfig()},methods:{getConfig(){P().then(t=>{this.config=t.data,t.data.is_invite_force?this.invite_text="邀请码(必填)":this.invite_text="邀请码(选填)"})},sendMail(t){if(!this.form.email)return this.$message.warning("请先输入邮箱"),!1;let e=new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$");if(!e.test(this.form.email))return this.$message.warning("邮箱格式不正确"),!1;if(1===this.config.is_recaptcha&&t)return this.visible=!0,!1;const a=60;let s={email:this.form.email};this.recaptcha_data&&(s.recaptcha_data=this.recaptcha_data),N(s).then(t=>{t.data&&(this.$message.success("发送成功"),this.count=a,this.show=!1,this.timer=setInterval(()=>{this.count>0&&this.count<=a?this.count--:(this.show=!0,clearInterval(this.timer),this.timer=null)},1e3))})},onSubmit(){return this.form.email?this.form.password?this.form.auth_password!==this.form.password?(this.$message.warning("两次密码输入不一致"),!1):this.config.is_email_verify&&!this.form.email_code?(this.$message.warning("请输入邮箱验证码"),!1):void z(this.form).then(t=>{t.data&&(this.$message.success("重置成功"),setTimeout(()=>{this.$router.push({name:"login"})},1e3))}):(this.$message.warning("请输入密码"),!1):(this.$message.warning("请先输入邮箱"),!1)},getValidateCode2(t){this.recaptcha_data=t,this.recaptcha_data&&(this.visible=!1,this.sendMail(!1))}}},ye=_e,Ce=Object(o["a"])(ye,ve,be,!1,null,null,null),we=Ce.exports,xe=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("a-input-search",{attrs:{size:"large",placeholder:"请输入关键字"},on:{search:t.searchKey}})],1),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[t.list?t._e():e("a-empty",{staticStyle:{"margin-top":"15%","margin-bottom":"15%"}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无数据 ")])]),e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},t._l(t.list,(function(a,s){return e("div",{key:s,staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header border-0"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v(t._s(s))])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("ul",{staticClass:"list-group list-group-flush list my--3"},t._l(a,(function(a,s){return e("li",{key:s,staticClass:"list-group-item px-0"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-auto"},[e("i",{staticClass:"ni ni-books"})]),e("div",{staticClass:"col ml--2"},[e("h4",{staticClass:"mb-0"},[e("a",{on:{click:function(e){return t.showDrawer(a.id)}}},[t._v(t._s(a.title))])]),e("small",[t._v("更新时间: "+t._s(t._f("formatDate")(a.updated_at)))])]),e("div",{staticClass:"col-auto"},[e("button",{staticClass:"btn btn-sm btn-primary",attrs:{type:"button"},on:{click:function(e){return t.showDrawer(a.id)}}},[t._v("查看详情")])])])])})),0)])])})),0)],1)])],1),e("a-drawer",{attrs:{width:"70%",placement:"right",title:t.knowledge.title,visible:t.visible},on:{close:t.onClose}},[e("div",{staticClass:"markdown-body"},[e("VueMarkdown",{directives:[{name:"highlight",rawName:"v-highlight"}],attrs:{source:t.knowledge.body}})],1)])],1)},ke=[],Se=(a("e4cb"),a("9ce6")),je=a.n(Se),$e={name:"knowledge",components:{VueMarkdown:je.a},data(){return{list:[],knowledge:{},loading:!0,visible:!1,value:"",domain:"",pStyle:{fontSize:"16px",color:"rgba(0,0,0,0.85)",lineHeight:"24px",display:"block",marginBottom:"16px"},pStyle2:{marginBottom:"24px"}}},mounted(){this.getData()},created(){this.domain=window.location.protocol+"//"+window.location.hostname,window.copy=this.copy},methods:{showDrawer(t){dt({language:"zh-CN",id:t}).then(t=>{this.knowledge=t.data,this.visible=!0})},onClose(){this.visible=!1},searchKey(t){this.getData(t)},getData(t){this.loading=!0,dt({language:"zh-CN",value:t}).then(t=>{this.loading=!1,this.list=t.data})},copy:function(t,e){let a=null;if(t){if(a=document.createElement("div"),a.id="tempTarget",a.style.opacity="0",e){let s=document.querySelector("#"+e);a.innerText=s[t]}else a.innerText=t;document.body.appendChild(a)}else a=document.querySelector("#"+e);try{let t=document.createRange();t.selectNode(a),window.getSelection().removeAllRanges(),window.getSelection().addRange(t),document.execCommand("copy"),window.getSelection().removeAllRanges(),this.$message.success("复制成功")}catch(s){this.$message.error("复制失败")}t&&a.parentElement.removeChild(a)}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i}}},De=$e,Te=Object(o["a"])(De,xe,ke,!1,null,"ead19264",null),Oe=Te.exports,Ae=function(){var t=this,e=t._self._c;return e("div",[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("div",{staticClass:"row justify-content-center"})]),e("div",{staticClass:"container-fluid mt--9"},[e("a-spin",{attrs:{spinning:t.loading}},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-10 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("我的订阅")])]),t.sub.plan?e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-8"},[e("strong",[t._v(" "+t._s(t.sub.plan.name)+" ")]),t.sub.expired_at?e("p",[t._v(" 于 "+t._s(t._f("formatDate")(t.sub.expired_at))+" 到期,距离到期还有 "+t._s(t._f("intervalDay")(t.sub.expired_at))+" 天,"+t._s(t.sub.reset_day)+" 日后重置流量 ")]):e("p",[t._v("该订阅长期有效")]),e("base-progress",{attrs:{"show-label":"",type:"primary",height:8,value:Math.ceil((t.sub.u+t.sub.d)/t.sub.transfer_enable*100),label:"已用流量"}}),e("p",[t._v(" 已用 "+t._s(t._f("bytesToSize")(t.sub.u+t.sub.d))+" / 总计 "+t._s(t._f("bytesToSize")(t.sub.transfer_enable))+" ")])],1),e("div",{staticClass:"col-lg-4 text-center",staticStyle:{padding:"4rem"}},[e("base-dropdown2",{attrs:{"title-classes":"btn btn-primary"},scopedSlots:t._u([{key:"title",fn:function(){return[e("i",{staticClass:"ni ni-atom"}),t._v(" 操作 ")]},proxy:!0}],null,!1,2538436264)},[e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id}})}}},[e("i",{staticClass:"ni ni-money-coins"}),t._v(" 续费订阅 ")])]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal3=!0}}},[e("a-icon",{attrs:{type:"reload"}}),t._v(" 重置当月流量 ")],1)]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal2=!0}}},[e("i",{staticClass:"ni ni-atom"}),t._v(" 重置订阅信息 ")])])])],1)])]):e("div",{staticClass:"card-body text-center"},[e("a-empty",{attrs:{image:"https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original","image-style":{height:"60px"}}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅 ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/plan"})}}},[t._v(" 添加订阅 ")])],1)],1)]),e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("节点状态")])]),e("div",{staticClass:"card-body text-center"},[0===t.serveList.length?e("div",[e("a-empty",[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无数据 ")])])],1):t._e(),t.serveList?e("div",{staticClass:"row"},t._l(t.serveList,(function(a,s){return e("div",{key:s,staticClass:"col-sm-12 col-xl-6 mb-3",staticStyle:{cursor:"pointer"}},[e("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:a.link,expression:"item.link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"card card-custom cursor_onclick rounded-lg shadow"},[e("div",{staticClass:"card-body pl-4"},[e("ul",{staticClass:"list-unstyled user-details list-unstyled-border list-unstyled-noborder"},[e("li",{staticClass:"media"},[e("img",{staticClass:"mr-3 rounded-circle",attrs:{alt:"image",width:"50",src:`https://cdn.jsdelivr.net/gh/BobCoders/metron-assets@3.0.2/metron/media/flags/${a.flag}.svg`}}),e("div",{staticClass:"media-body"},[e("div",{staticClass:"media-title"},[e("span",{staticClass:"label label-dot label-xl",class:a.last_check_at?"label-success":"label-danger"}),t._v(" "+t._s(a.name)+" ")]),e("div",{staticClass:"text-job text-muted"},t._l(a.tags,(function(a,s){return e("a-tag",{key:s,attrs:{color:"cyan"}},[t._v(" "+t._s(a)+" ")])})),1)]),e("div",{staticClass:"media-items"},[e("div",{staticClass:"media-item"},[e("div",{staticClass:"media-value"},[t._v("x "+t._s(a.rate))]),e("div",{staticClass:"media-label"},[t._v("倍率")])])])])])])])])})),0):t._e()])])])])])],1),e("modal",{attrs:{show:t.modal2,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.resetSublink}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置订阅信息?")]),e("p",[t._v("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。")])])]),e("modal",{attrs:{show:t.modal3,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification2"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal3=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id,cycle:"reset_price"}})}}},[t._v("确定 ")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置当月流量?")]),e("p",[t._v("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。")])])])],1)},Pe=[],Be={name:"knowledge",components:{},data(){return{serveList:[],loading:!0,modal2:!1,modal3:!1,sub:{},reg:/[^A-Za-z]/}},mounted(){let t=this;F.$on("close",(function(){t.modal3=!1,t.modal2=!1})),t.getData()},methods:{getData(){lt().then(t=>{this.sub=t.data,this.loading=!1}),pt().then(t=>{let e=[],a=["香港","美国","日本","中国","俄罗斯","韩国","英国","新加坡","马来西亚","台湾","加拿大","菲律宾","德国","印度","南非","卢森堡","巴西","意大利","法国","泰国","爱尔兰"];t.data.forEach((function(t){for(let e=0;e-1){t.flag="1x1_zh_cn/"+a[e];break}t.flag="1x1_zh_cn/un"}"json"==typeof t.tags&&obj&&(t.tags=JSON.parse(t.tags)),e.push(t)})),this.serveList=e})},copySublink(){const t=this.$createElement;this.$notification.open({message:"链接复制成功",icon:t("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"})})},resetSublink(){xt().then(t=>{this.modal2=!1,t.data&&this.$message.success("重置订阅连接成功")})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},intervalDay:function(t){let e=Date.parse(new Date)/1e3,a=t-e;return Math.floor(a/86400)},bytesToSize(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toPrecision(4)+" "+a[s]}}},Ne=Be,Ie=(a("74a8"),Object(o["a"])(Ne,Ae,Pe,!1,null,"889ddab4",null)),ze=Ie.exports,Me=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[0===t.list.length?e("a-empty",{staticStyle:{"margin-top":"15%","margin-bottom":"15%"}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅商品 ")])]):t._l(t.list,(function(a,s){return e("div",{key:s,staticClass:"card card-pricing border-0 text-center mb-4",staticStyle:{"margin-right":"1.5rem"}},[e("div",{staticClass:"card-header bg-transparent"},[e("h2",{staticClass:"text-uppercase ls-1 text-primary py-3 mb-0"},[t._v(t._s(a.name))])]),e("div",{staticClass:"card-body px-lg-7"},[a.month_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.month_price)))]):a.quarter_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.quarter_price)))]):a.half_year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.half_year_price)))]):a.year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.year_price)))]):a.two_year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.two_year_price)))]):a.three_year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.three_year_price)))]):a.onetime_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.onetime_price)))]):t._e(),a.month_price?e("span",{staticClass:"text-muted"},[t._v("月付")]):a.quarter_price?e("span",{staticClass:"text-muted"},[t._v("季付")]):a.half_year_price?e("span",{staticClass:"text-muted"},[t._v("半年付")]):a.year_price?e("span",{staticClass:"text-muted"},[t._v("年付")]):a.two_year_price?e("span",{staticClass:"text-muted"},[t._v("两年付")]):a.three_year_price?e("span",{staticClass:"text-muted"},[t._v("三年付")]):a.onetime_price?e("span",{staticClass:"text-muted"},[t._v("一次性")]):t._e(),e("p",{staticStyle:{width:"250px"},domProps:{innerHTML:t._s(a.content)}})]),e("div",{staticClass:"card-footer"},[e("base-button",{staticClass:"mb-3",attrs:{icon:"ni ni-cart",type:"primary"},on:{click:function(e){return t.purchase(a.id)}}},[t._v("立即订阅")])],1)])}))],2)])],1)],1)},Re=[],Le={name:"knowledge",data(){return{list:[],loading:!0}},mounted(){this.getData()},methods:{getData(){ut().then(t=>{this.loading=!1,this.list=t.data})},purchase(t){this.$router.push({name:"订阅详情",params:{id:t}})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},money(t){return"¥"+(t/100).toFixed(2)}}},We=Le,Ee=Object(o["a"])(We,Me,Re,!1,null,"1229a100",null),qe=Ee.exports,Fe=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("配置订阅")])]),e("div",{staticClass:"card-body"},[e("h3",[t._v(t._s(t.data.name))]),e("p",{domProps:{innerHTML:t._s(t.data.content)}})])])]),e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("订单金额")])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6"},[e("a-radio-group",{on:{change:t.changeperiod},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}},[t.data.month_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"month_price"}},[e("h3",[t._v("月付")]),e("span",[t._v(t._s(t._f("money")(t.data.month_price)))])]):t._e(),t.data.quarter_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"quarter_price"}},[e("h3",[t._v("季付")]),e("span",[t._v(t._s(t._f("money")(t.data.quarter_price)))])]):t._e(),t.data.half_year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"half_year_price"}},[e("h3",[t._v("半年付")]),e("span",[t._v(t._s(t._f("money")(t.data.half_year_price)))])]):t._e(),t.data.year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"year_price"}},[e("h3",[t._v("年付")]),e("span",[t._v(t._s(t._f("money")(t.data.year_price)))])]):t._e(),t.data.two_year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"two_year_price"}},[e("h3",[t._v("两年付")]),e("span",[t._v(t._s(t._f("money")(t.data.two_year_price)))])]):t._e(),t.data.three_year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"three_year_price"}},[e("h3",[t._v("三年付")]),e("span",[t._v(t._s(t._f("money")(t.data.three_year_price)))])]):t._e(),t.data.onetime_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"onetime_price"}},[e("h3",[t._v("一次性")]),e("span",[t._v(t._s(t._f("money")(t.data.onetime_price)))])]):t._e(),t.data.reset_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"reset_price"}},[e("h3",[t._v("重置流量包")]),e("span",[t._v(t._s(t._f("money")(t.data.reset_price)))])]):t._e()],1)],1),e("div",{staticClass:"col-lg-6"},[e("a-input-search",{attrs:{placeholder:"输入优惠卷","enter-button":"验证",size:"large",allowClear:!0},on:{search:t.onCheck}},[e("a-icon",{attrs:{slot:"prefix",type:"account-book"},slot:"prefix"})],1),e("div",{staticStyle:{"margin-top":"2rem"}},[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v(t._s(t.data.name)+" x "+t._s(t.period_text))]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.total)))])]),t.discount_price?e("div",[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v("抵扣金额:"+t._s(t._f("money")(t.discount_price)))]),e("hr",{staticClass:"my-3"})]):t._e(),e("div",{staticStyle:{"margin-top":"1rem"}},[e("h2",[t._v("总计:"+t._s(t._f("money")(t.total)))])])],1)])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-icon btn-primary",staticStyle:{float:"right"},attrs:{type:"button"},on:{click:t.onSubmit}},[e("span",{staticClass:"btn-inner--icon"},[e("i",{staticClass:"ni ni-bag-17"})]),e("span",{staticClass:"btn-inner--text"},[t._v("提交订单")])])])])])])],1)],1)},Ve=[],Ye={name:"knowledge",data(){return{data:{},loading:!0,period:"month_price",period_text:"月付",periodList:{month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"重置流量包"},discount_price:0,price:0,total:0,plan_id:0,coupon_code:""}},mounted(){this.plan_id=this.$route.params.id,this.getData(this.plan_id)},methods:{getData(t){ut({id:t}).then(t=>{if(this.loading=!1,this.data=t.data,this.$route.params.period)return this.period=this.$route.params.period,this.period_text=this.periodList[this.period],this.total=t.data[this.period],!1;t.data.month_price?(this.price=t.data.month_price,this.total=t.data.month_price,this.period_text="月付",this.period="month_price"):t.data.quarter_price?(this.price=t.data.quarter_price,this.total=t.data.quarter_price,this.period_text="季付",this.period="quarter_price"):t.data.half_year_price?(this.price=t.data.half_year_price,this.total=t.data.half_year_price,this.period_text="半年付",this.period="half_year_price"):t.data.year_price?(this.price=t.data.year_price,this.total=t.data.year_price,this.period_text="年付",this.period="year_price"):t.data.two_year_price?(this.price=t.data.two_year_price,this.total=t.data.two_year_price,this.period_text="两年付",this.period="two_year_price"):t.data.two_year_price?(this.price=t.data.three_year_price,this.total=t.data.three_year_price,this.period_text="三年付",this.period="three_year_price"):t.data.onetime_price?(this.price=t.data.onetime_price,this.total=t.data.onetime_price,this.period_text="一次性",this.period="onetime_price"):t.data.reset_price&&(this.price=t.data.reset_price,this.total=t.data.reset_price,this.period_text="重置流量包",this.period="reset_price")})},onCheck(t){gt({code:t,plan_id:this.plan_id}).then(t=>{if(this.coupon_code=t.data.code,1===t.data.type)this.total=(this.price-t.data.value).toFixed(2),this.discount_price=-t.data.value;else{let e=parseFloat((100-t.data.value)/100);this.total=(this.price*e).toFixed(2),this.discount_price=(this.total-this.price).toFixed(2)}})},onSubmit(){let t={period:this.period,plan_id:this.plan_id};this.coupon_code&&(t["coupon_code"]=this.coupon_code),vt(t).then(t=>{t.data&&this.$router.push({name:"订单详情",params:{id:t.data}})})},changeperiod(){this.period_text=this.periodList[this.period],this.total=this.data[this.period],this.price=this.data[this.period]}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},money(t){return"¥"+(t/100).toFixed(2)}}},He=Ye,Ue=(a("c38a"),Object(o["a"])(He,Fe,Ve,!1,null,"0c1eb0b3",null)),Qe=Ue.exports,Je=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("商品详情")])]),e("div",{staticClass:"card-body"},[e("h3",[t._v(t._s(t.data.plan.name))]),e("p",[t._v("流量:"+t._s(t.data.plan.transfer_enable)+" GB")]),e("p",{domProps:{innerHTML:t._s(t.data.plan.content)}})])])]),t.showResult?t._e():e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-8"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"col-4 text-right"},[e("base-button",{attrs:{icon:"ni ni-fat-remove",type:"warning"},on:{click:function(e){return t.cancelOrder(t.data.trade_no)}}},[t._v("取消订单")])],1)])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-6"},[e("div",[e("span",{staticStyle:{"font-size":"large"}},[t._v(t._s(t.data.plan.name)+" x "+t._s(t.periodList[t.data.period]))]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.data.plan[t.data.period])))])]),t.data.discount_amount?e("div",[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v("抵扣金额")]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.data.discount_amount)))])]):t._e(),t.data.balance_amount?e("div",[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v("抵扣金额")]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.data.balance_amount)))])]):t._e(),e("div",{staticStyle:{"margin-top":"1rem"}},[e("hr",{staticClass:"my-3"}),e("h2",{staticStyle:{"font-size":"large",float:"right"}},[t._v("总计:"+t._s(t._f("money")(t.data.total_amount)))])])]),e("div",{staticClass:"col-xl-6"},[t.payment_method?e("p",[t._v("支付方式:")]):t._e(),e("a-radio-group",{model:{value:t.payment,callback:function(e){t.payment=e},expression:"payment"}},t._l(t.payment_method,(function(a,s){return e("a-radio-button",{key:s,staticClass:"shop-button",attrs:{value:a.id}},[e("h3",[t._v(t._s(a.name))])])})),1)],1)])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-icon btn-primary",staticStyle:{float:"right"},attrs:{type:"button"},on:{click:t.pay}},[e("span",{staticClass:"btn-inner--icon"},[e("i",{staticClass:"ni ni-bag-17"})]),e("span",{staticClass:"btn-inner--text"},[t._v("立即支付")])])])])]),1===t.showResult?e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"card-body text-center"},[e("img",{staticStyle:{margin:"1rem 0"},attrs:{src:a("d0a5"),width:"84"}}),e("p",{staticStyle:{"font-size":"2rem","font-weight":"400"}},[t._v("开通中")]),e("p",[t._v("订单系统正在进行处理,请稍等1-3分钟。")])])])]):t._e(),2===t.showResult?e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"card-body text-center"},[2===t.showResult?e("a-result",{attrs:{status:"warning",title:"已取消","sub-title":"订单由于超时支付已被取消。"}}):t._e()],1)])]):t._e(),3===t.showResult?e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"card-body text-center"},[e("a-result",{attrs:{status:"success",title:"已完成","sub-title":"订单已支付并开通。"}})],1)])]):t._e()])],1),e("modal",{attrs:{show:t.showQrCode},scopedSlots:t._u([{key:"header",fn:function(){return[e("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("请扫描二维码支付")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{attrs:{type:"secondary"},on:{click:function(e){t.showQrCode=!1}}},[t._v("关闭")])]},proxy:!0}])},[e("div",{ref:"qrCodeDiv",staticClass:"qrCode",attrs:{id:"qrCode"}}),e("div",{staticClass:"text-center mt-3"},[t._v(" 支付金额:"+t._s(t._f("money")(t.data.total_amount))+" ")])])],1)},Ze=[],Ke=a("d044"),Ge=a.n(Ke),Xe={name:"knowledge",data(){return{data:{},loading:!0,showQrCode:!1,period:"month_price",period_text:"月付",periodList:{month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性"},discount_price:0,price:0,total:0,order_id:0,coupon_code:"",payment:"",showResult:0,payment_method:[]}},mounted(){let t=this;F.$on("close",(function(){t.showQrCode=!1})),t.order_id=this.$route.params.id,t.getData(this.order_id),window.clearInterval()},methods:{getData(t){let e=this;mt({trade_no:t}).then(t=>{if(e.loading=!1,e.data=t.data,e.showResult=t.data.status,0===t.data.status){var a=this.order_id;window.setInterval((function(){a&&ft({trade_no:a}).then(t=>{t.data&&(e.showResult=t.data,window.clearInterval())})}),3e3,a)}}),ht().then(t=>{this.payment_method=t.data,t.data&&(this.payment=t.data[0]["id"])})},pay(){bt({trade_no:this.order_id,method:this.payment}).then(t=>{t.data&&1===t.type?(window.clearInterval(),window.location.href=t.data):t.data&&0===t.type?(this.showQrCode=!0,document.getElementById("qrCode").innerHTML="",new Ge.a(this.$refs.qrCodeDiv,{text:t.data,width:250,height:250,colorDark:"#333333",colorLight:"#ffffff",correctLevel:Ge.a.CorrectLevel.L})):t.data&&-1===t.type&&(this.showResult=!0,window.clearInterval())})},cancelOrder(t){zt({trade_no:t}).then(t=>{t.data&&(this.$message.success("取消成功"),this.getData())})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},money(t){return"¥"+(t/100).toFixed(2)}}},ta=Xe,ea=(a("afde"),Object(o["a"])(ta,Je,Ze,!1,null,null,null)),aa=ea.exports,sa=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-9 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("订单列表")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns,"data-source":t.list,loading:t.loading},scopedSlots:t._u([{key:"plan",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(a.name))])])}},{key:"period",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t.periodList[a]))])])}},{key:"total_amount",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("money")(a))+" ")])}},{key:"status",fn:function(a){return e("span",{staticClass:"badge badge-dot"},[e("i",{class:t.statusLabel[a]}),t._v(" "+t._s(t.statusText[a])+" ")])}},{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"action",fn:function(a,s){return e("span",{},[e("div",{staticClass:"editable-row-operations"},[2!==s.status?e("a",{staticClass:"text-primary",on:{click:function(e){return t.$router.push({name:"订单详情",params:{id:s.trade_no}})}}},[t._v("查看详情")]):t._e(),e("br"),0===s.status?e("a",{staticClass:"text-primary mt-4",on:{click:function(e){return t.cancelOrder(s.trade_no)}}},[t._v("取消订单")]):t._e()])])}}])})],1)])])])])],1)],1)},ia=[],na={name:"knowledge",components:{},data(){return{list:[],columns:[{title:"订单号",dataIndex:"trade_no",scopedSlots:{customRender:"trade_no"}},{title:"购买商品",dataIndex:"plan",scopedSlots:{customRender:"plan"}},{title:"周期",dataIndex:"period",scopedSlots:{customRender:"period"}},{title:"订单金额",dataIndex:"total_amount",scopedSlots:{customRender:"total_amount"}},{title:"订单状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"创建时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}},{title:"操作",dataIndex:"action",fixed:"right",scopedSlots:{customRender:"action"}}],loading:!0,periodList:{month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"重置流量包"},statusText:["待支付","开通中","已取消","已完成","已折抵"],statusLabel:["bg-default","bg-primary","bg-danger","bg-info","bg-success","bg-warning"]}},mounted(){this.getData()},methods:{getData(){_t().then(t=>{this.loading=!1,this.list=t.data})},cancelOrder(t){zt({trade_no:t}).then(t=>{t.data&&(this.$message.success("取消成功"),this.getData())})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return"¥"+(t/100).toFixed(2)}}},oa=na,ra=(a("f160"),Object(o["a"])(oa,sa,ia,!1,null,null,null)),la=ra.exports,ca=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"用户",type:"gradient-red","sub-title":t.stat[0]>0?t.stat[0]:"0",icon:"ni ni-circle-08"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("已注册用户数")])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"比例",type:"gradient-orange","sub-title":t.stat[3]+"%",icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("佣金比例")])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"确认中佣金",type:"gradient-green","sub-title":t._f("money")(t.stat[2]),icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v(" 确认中的佣金 "),e("a-tooltip",{attrs:{placement:"bottom"}},[e("template",{slot:"title"},[t._v(" 佣金将会在确认后会到达你的佣金账户。 ")]),e("a-icon",{attrs:{type:"question-circle"}})],2)],1)]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"可用佣金",type:"gradient-info","sub-title":t._f("money")(t.stat[4]),icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("可用佣金")])]},proxy:!0}])})],1)])]),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-8"},[e("h5",{staticClass:"h3 mb-0"},[t._v("邀请码管理")])]),e("div",{staticClass:"col-4 text-right"},[e("a",{staticClass:"btn btn-primary",on:{click:t.createInviteCode}},[t._v("生成邀请码")])])])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns_1,"data-source":t.code,pagination:!1,loading:t.loading},scopedSlots:t._u([{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"action",fn:function(a,s){return e("span",{},[e("div",{staticClass:"editable-row-operations"},[e("span",[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.domain+"/#/register?code="+s.code,expression:"domain + '/#/register?code=' + record.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copyInviteUrl,expression:"copyInviteUrl",arg:"success"}],staticClass:"text-primary"},[t._v(" 复制链接 ")])])])])}}])})],1)])])]),e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("邀请明细")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns_2,"data-source":t.list,pagination:!1,loading:t.loading},scopedSlots:t._u([{key:"trade_no",fn:function(a){return e("span",{},[t._v(" "+t._s(a)+" ")])}},{key:"get_amount",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("money")(a))+" ")])}},{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}}])})],1)])])])])],1)],1)},da=[],pa={name:"knowledge",data(){return{stat:[],code:[],loading:!0,list:[],config:{},domain:"",status:["待确认","发放中","已发送","无效"],columns_1:[{title:"邀请码",dataIndex:"code",scopedSlots:{customRender:"code"}},{title:"创建时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],columns_2:[{title:"#",dataIndex:"id",scopedSlots:{customRender:"id"}},{title:"订单号",dataIndex:"trade_no",scopedSlots:{customRender:"trade_no"}},{title:"佣金",dataIndex:"get_amount",scopedSlots:{customRender:"get_amount"}},{title:"完成时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}}]}},mounted(){this.domain=window.location.protocol+"//"+window.location.hostname,this.config=JSON.parse(localStorage.getItem("config")),this.getData()},methods:{getData(){yt().then(t=>{this.loading=!1,this.stat=t.data.stat,this.code=t.data.codes}),wt().then(t=>{this.list=t.data})},copyInviteUrl(){const t=this.$createElement;this.$notification.open({message:"复制成功",icon:t("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"})})},createInviteCode(){Ct().then(t=>{t.data&&(this.$message.success("生成邀请码成功"),window.location.reload())})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return"¥"+(t/100).toFixed(2)}}},ua=pa,ma=Object(o["a"])(ua,ca,da,!1,null,"7a5aede6",null),ha=ma.exports,fa=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("我的钱包")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-6"},[e("a-statistic",{attrs:{title:"余额 (CNY)",precision:2,value:t._f("money")(t.user.balance),valueStyle:"font-size: 3rem"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-6"},[e("a-statistic",{attrs:{title:"可用佣金 (CNY)",precision:2,value:t._f("money")(t.user.commission_balance)}})],1),e("div",{staticClass:"col-xl-6"},[t.config.withdraw_close?t._e():e("base-button",{attrs:{type:"info",outline:"",icon:"ni ni-money-coins"},on:{click:function(e){t.modal2=!0}}},[t._v("佣金提现 ")]),e("base-button",{attrs:{type:"primary",outline:"",icon:"ni ni-bag-17"},on:{click:function(e){t.modal1=!0}}},[t._v("佣金划转")])],1)])])]),e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("通知")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"mt-3"},[e("strong",[t._v("到期邮件提醒:")]),e("a-switch",{staticClass:"float-right",attrs:{"default-checked":""},on:{change:function(e){return t.onChange("remind_expire")}},model:{value:t.notice.remind_expire,callback:function(e){t.$set(t.notice,"remind_expire",e)},expression:"notice.remind_expire"}})],1),e("div",{staticClass:"mt-3"},[e("strong",[t._v("流量邮件提醒:")]),e("a-switch",{staticClass:"float-right",attrs:{"default-checked":""},on:{change:function(e){return t.onChange("remind_traffic")}},model:{value:t.notice.remind_traffic,callback:function(e){t.$set(t.notice,"remind_traffic",e)},expression:"notice.remind_traffic"}})],1),t.config.is_telegram?e("div",{staticClass:"mt-3"},[e("hr"),e("strong",[t._v("绑定Telegram")]),e("base-button",{staticClass:"float-right",attrs:{type:"primary",size:"sm"},on:{click:t.bindTelegram}},[t._v("立即绑定")])],1):t._e()])])]),e("div",{staticClass:"col-lg-6 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("修改密码")])]),e("div",{staticClass:"col text-right"},[e("base-button",{attrs:{type:"primary"},on:{click:t.savePassword}},[t._v("保存")])],1)])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 旧密码 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.old_password,expression:"form.old_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",type:"password",placeholder:"请输入旧密码"},domProps:{value:t.form.old_password},on:{input:function(e){e.target.composing||t.$set(t.form,"old_password",e.target.value)}}})]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 新密码 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.new_password,expression:"form.new_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",type:"password",placeholder:"请输入新密码"},domProps:{value:t.form.new_password},on:{input:function(e){e.target.composing||t.$set(t.form,"new_password",e.target.value)}}})]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 确认新密码 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.new_password_2,expression:"form.new_password_2"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",type:"password",placeholder:"请输入确认新密码"},domProps:{value:t.form.new_password_2},on:{input:function(e){e.target.composing||t.$set(t.form,"new_password_2",e.target.value)}}})])])])])])])],1),e("modal",{attrs:{show:t.modal1,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("推广佣金划转至余额")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal1=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.onSubmit1}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("base-alert",{attrs:{type:"primary"}},[e("span",{staticClass:"alert-inner--icon"},[e("i",{staticClass:"ni ni-like-2"})]),e("span",{staticClass:"alert-inner--text ml-2"},[t._v("划转后的余额仅用于消费使用")])]),e("div",[e("base-input",{attrs:{label:"当前推广佣金余额",value:t._f("money")(t.user.commission_balance),placeholder:"Default input",disabled:""}}),e("div",{staticClass:"form-group has-label",attrs:{"data-v-352d3bff":""}},[e("label",{staticClass:"form-control-label"},[t._v(" 划转金额 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.transfer_amount,expression:"transfer_amount"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入需要划转到余额的金额"},domProps:{value:t.transfer_amount},on:{input:function(e){e.target.composing||(t.transfer_amount=e.target.value)}}})])],1)],1)]),e("modal",{attrs:{show:t.modal2,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title"},[t._v("申请提现")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.onSubmit2}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("div",[e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-control-label"},[t._v("提现方式")]),e("div",{staticClass:"has-label"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.withdraw_method,expression:"withdraw_method"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.withdraw_method=e.target.multiple?a:a[0]}}},t._l(t.withdraw_methods,(function(a,s){return e("option",{key:s,domProps:{value:a}},[t._v(t._s(a))])})),0)])]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 提现账号 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.withdraw_account,expression:"withdraw_account"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入需要划转到余额的金额"},domProps:{value:t.withdraw_account},on:{input:function(e){e.target.composing||(t.withdraw_account=e.target.value)}}})])])])]),e("modal",{attrs:{show:t.modal3,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title"},[t._v("绑定Telegram")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{attrs:{type:"primary"},on:{click:function(e){t.modal3=!1}}},[t._v("知道了")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("a-timeline",[e("a-timeline-item",[e("h3",[t._v("第一步")]),e("p",[t._v("打开Telegram搜索@"+t._s(t.tg_name))])]),e("a-timeline-item",[e("h3",[t._v("第二步")]),e("p",[t._v("向机器人发送 /bind "+t._s(t.sub.subscribe_url)+" 命令")])])],1)],1)])],1)},ga=[],va={name:"profile",components:{},data(){return{current:0,user:{},config:{},form:{old_password:"",new_password:"",new_password_2:""},notice:{remind_expire:1,remind_traffic:1},loading:!0,modal1:!1,modal2:!1,modal3:!1,transfer_amount:0,withdraw_methods:[],withdraw_method:"",withdraw_account:"",tg_name:"",sub:{}}},mounted(){this.getData()},methods:{getData(){ot().then(t=>{this.loading=!1,this.user=t.data,this.notice={remind_expire:t.data.remind_expire,remind_traffic:t.data.remind_traffic}}),kt().then(t=>{this.config=t.data,t.data.withdraw_methods&&(this.withdraw_methods=t.data.withdraw_methods,this.withdraw_method=t.data.withdraw_methods[0])}),lt().then(t=>{this.sub=t.data})},onSubmit1(){let t=100*this.transfer_amount;St({transfer_amount:t}).then(t=>{t.data&&(this.$message.success("划转成功"),this.modal1=!1,this.getData())})},onSubmit2(){return this.withdraw_method?this.withdraw_account?void jt({withdraw_method:this.withdraw_method,withdraw_account:this.withdraw_account}).then(t=>{t.data&&(this.$message.success("提现成功"),this.modal2=!1,this.getData())}):(this.$message.warning("请输入提现账号"),!1):(this.$message.warning("请选择提现方式"),!1)},savePassword(){return this.form.old_password?this.form.new_password?this.form.new_password!==this.form.new_password_2?(this.$notification.warning({message:"两次密码输入不一致"}),!1):void $t(this.form).then(t=>{t.data&&this.$message.success("修改成功")}):(this.$notification.warning({message:"请输入新密码"}),!1):(this.$notification.warning({message:"请输入旧密码"}),!1)},onChange(t){let e={};e="remind_expire"===t?{remind_expire:this.notice.remind_expire?1:0}:{remind_traffic:this.notice.remind_traffic?1:0},Dt(e).then(t=>{t.data&&this.$message.success("修改成功")})},bindTelegram(){this.modal3=!0,Tt().then(t=>{t.data&&(this.tg_name=t.data.username,this.modal3=!0)})},onChangeCurrent(t){this.current=t}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return t/100}}},ba=va,_a=Object(o["a"])(ba,fa,ga,!1,null,"50204db1",null),ya=_a.exports,Ca=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("工单列表")])]),e("div",{staticClass:"col text-right"},[e("base-button",{attrs:{icon:"ni ni-air-baloon",type:"primary"},on:{click:function(e){t.modal1=!0}}},[t._v("新建工单")])],1)])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns,"data-source":t.list,loading:t.loading},scopedSlots:t._u([{key:"level",fn:function(a){return e("span",{},[0===a?e("badge",{attrs:{rounded:"",type:"primary"}},[t._v("低级")]):1===a?e("badge",{attrs:{rounded:"",type:"warning"}},[t._v("中级")]):2===a?e("badge",{attrs:{rounded:"",type:"danger"}},[t._v("高级")]):t._e()],1)}},{key:"status",fn:function(a){return e("span",{staticClass:"badge badge-dot"},[e("i",{class:t.statusLabel[a]}),t._v(" "+t._s(t.statusText[a])+" ")])}},{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"updated_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"action",fn:function(a,s){return e("span",{},[e("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return t.showTicket(s.id)}}},[t._v("查看")]),0===s.status?e("a-divider",{attrs:{type:"vertical"}}):t._e(),0===s.status?e("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return t.closeTicket(s.id)}}},[t._v("关闭")]):t._e()],1)}}])})],1)])])])])],1),e("modal",{attrs:{show:t.modal1,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("新建工单")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal1=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.onSubmit1}},[t._v("提交")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 主题 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.subject,expression:"form.subject"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入工单主题"},domProps:{value:t.form.subject},on:{input:function(e){e.target.composing||t.$set(t.form,"subject",e.target.value)}}})]),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-control-label"},[t._v("工单等级")]),e("div",{staticClass:"has-label"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.level,expression:"form.level"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.form,"level",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"0"}},[t._v("低级")]),e("option",{attrs:{value:"1"}},[t._v("中级")]),e("option",{attrs:{value:"2"}},[t._v("高级")])])])]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 消息 ")]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.message,expression:"form.message"}],staticClass:"form-control",attrs:{id:"exampleFormControlTextarea3",rows:"3",placeholder:"请描述你遇到的问题"},domProps:{value:t.form.message},on:{input:function(e){e.target.composing||t.$set(t.form,"message",e.target.value)}}})])])]),e("modal",{attrs:{show:t.modal2,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title"},[t._v("工单回复")])]},proxy:!0},{key:"footer",fn:function(){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.reply_text,expression:"reply_text"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入内容回复工单..."},domProps:{value:t.reply_text},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.replyTicket.apply(null,arguments)},input:function(e){e.target.composing||(t.reply_text=e.target.value)}}}),e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 关闭 ")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("a-timeline",t._l(t.messageList,(function(a,s){return e("a-timeline-item",{key:s,attrs:{color:s%2===0||0===s?"green":"blue"}},[t._v(t._s(a.message)+" ")])})),1)],1)])],1)},wa=[],xa={name:"knowledge",components:{},data(){return{list:[],messageList:[],columns:[{title:"#",dataIndex:"id",scopedSlots:{customRender:"id"}},{title:"主题",dataIndex:"subject",scopedSlots:{customRender:"subject"}},{title:"工单级别",dataIndex:"level",scopedSlots:{customRender:"level"}},{title:"工单状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"创建时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}},{title:"最后回复",dataIndex:"updated_at",scopedSlots:{customRender:"updated_at"}},{title:"操作",dataIndex:"action",fixed:"right",width:110,scopedSlots:{customRender:"action"}}],modal1:!1,modal2:!1,loading:!0,form:{subject:"",level:0,message:""},reply_text:"",reply_id:"",statusText:["待回复","已关闭","已取消","已完成","已折抵"],statusLabel:["bg-danger","bg-success","bg-danger","bg-info","bg-success","bg-warning"]}},mounted(){this.getData()},methods:{getData(){Ot().then(t=>{this.loading=!1,this.list=t.data})},onSubmit1(){return this.form.subject?this.form.message?void At(this.form).then(t=>{t.data&&(this.modal1=!1,this.$message.success("提交成功,请等待~"))}):(this.$notification.warning({message:"请输入消息主题内容"}),!1):(this.$notification.warning({message:"请输入主题名称"}),!1)},closeTicket(t){Pt({id:t}).then(t=>{t.data&&(this.$message.success("关闭成功~"),this.getData())})},replyTicket(){Bt({id:this.reply_id,message:this.reply_text}).then(t=>{t.data&&(this.$message.success("回复成功~"),this.getData())})},showTicket(t){this.reply_id=t,this.modal2=!0,Nt({id:t}).then(t=>{t.data&&(this.messageList=t.data.message)})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return"¥"+(t/100).toFixed(2)}}},ka=xa,Sa=(a("fc36"),Object(o["a"])(ka,Ca,wa,!1,null,null,null)),ja=Sa.exports,$a=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("订单列表")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("base-alert",{attrs:{type:"primary"}},[e("strong",[t._v("流量明细仅保留近一个月数据以供查询。")])]),e("a-table",{attrs:{columns:t.columns,"data-source":t.list,pagination:!1,loading:t.loading2},scopedSlots:t._u([{key:"u",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t._f("bytesToSize")(a)))])])}},{key:"d",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t._f("bytesToSize")(a)))])])}},{key:"total",fn:function(a,s){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t._f("bytesToSize")(parseInt(s.u)+parseInt(s.d))))])])}},{key:"server_rate",fn:function(a){return e("span",{},[e("a-tag",[t._v(t._s(a+" x"))])],1)}},{key:"record_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}}])}),e("div",{staticClass:"mt-3"},[e("a-pagination",{staticStyle:{float:"right"},attrs:{"default-current":t.param.current,total:t.param.total},on:{change:t.currentPage}})],1)],1)])])])])],1)],1)},Da=[],Ta={name:"knowledge",components:{},data(){return{list:[],columns:[{title:"记录时间",dataIndex:"record_at",scopedSlots:{customRender:"record_at"}},{title:"实际上行",dataIndex:"u",scopedSlots:{customRender:"u"}},{title:"实际下行",dataIndex:"d",scopedSlots:{customRender:"d"}},{title:"倍率",dataIndex:"server_rate",scopedSlots:{customRender:"server_rate"}},{title:"合计",dataIndex:"total",scopedSlots:{customRender:"total"}}],loading:!0,loading2:!0,param:{current:1,pageSize:10,total:0}}},mounted(){this.getData()},methods:{getData(){this.loading2=!0,It(this.param).then(t=>{this.loading2=!1,this.loading=!1,this.list=t.data,this.param.total=t.total})},currentPage(t,e){this.param.current=t,this.param.pageSize=e,this.getData()},handleSizeChange(){this.getData()}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},bytesToSize(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toPrecision(4)+" "+a[s]}}},Oa=Ta,Aa=Object(o["a"])(Oa,$a,Da,!1,null,"69b51d7c",null),Pa=Aa.exports;s["a"].use(d["a"]);const Ba=[{path:"/",redirect:"login",component:Ht,children:[{path:"/login",name:"用户登录",components:{default:ie}},{path:"/register",name:"用户注册",components:{default:ge}},{path:"/forgetPassword",name:"忘记密码",components:{default:we}}]},{path:"/",redirect:"/dashboard",component:Wt,children:[{path:"/dashboard",name:"首页",components:{default:Gt}},{path:"/knowledge",name:"使用文档",components:{default:Oe}},{path:"/subscribe",name:"节点列表",components:{default:ze}},{path:"/plan",name:"购买订阅",components:{default:qe}},{path:"/plan/:id",name:"订阅详情",props:!0,components:{default:Qe}},{path:"/order/:id",name:"订单详情",props:!0,components:{default:aa}},{path:"/order",name:"订单列表",components:{default:la}},{path:"/invite",name:"我的邀请",components:{default:ha}},{path:"/profile",name:"个人中心",components:{default:ya}},{path:"/ticket",name:"工单列表",components:{default:ja}},{path:"/traffic",name:"流量明细",components:{default:Pa}}]}],Na=new d["a"]({linkActiveClass:"active",routes:Ba}),Ia="undefined"!=localStorage.getItem("config")?JSON.parse(localStorage.getItem("config")):[];Na.beforeEach((t,e,a)=>{document.title=Ia?`${t.name} | ${window.APP_NAME}`:""+t.name,a({query:t.query})}),Na.afterEach((t,e,a)=>{document.querySelector("body").setAttribute("style","overflow: auto !important;")});var za=Na,Ma=a("f23d"),Ra=(a("202f"),function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"badge",class:["badge-"+t.type,t.rounded?"badge-pill":"",t.circle&&"badge-circle"]},[t._t("default",(function(){return[t.icon?e("i",{class:t.icon}):t._e()]}))],2)}),La=[],Wa={name:"badge",props:{tag:{type:String,default:"span",description:"Html tag to use for the badge."},rounded:{type:Boolean,default:!1,description:"Whether badge is of pill type"},circle:{type:Boolean,default:!1,description:"Whether badge is circle"},icon:{type:String,default:"",description:"Icon name. Will be overwritten by slot if slot is used"},type:{type:String,default:"default",description:"Badge type (primary|info|danger|default|warning|success)"}}},Ea=Wa,qa=Object(o["a"])(Ea,Ra,La,!1,null,null,null),Fa=qa.exports,Va=function(){var t=this,e=t._self._c;return t.visible?e("div",{staticClass:"alert",class:["alert-"+t.type,{"alert-dismissible":t.dismissible}],attrs:{role:"alert"}},[t.dismissible?[t._t("default",(function(){return[t.icon?e("span",{staticClass:"alert-inner--icon"},[e("i",{class:t.icon})]):t._e(),t.$slots.text?e("span",{staticClass:"alert-inner--text"},[t._t("text")],2):t._e()]})),t._t("dismiss-icon",(function(){return[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":"Close"},on:{click:t.dismissAlert}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]}))]:t._t("default",(function(){return[t.icon?e("span",{staticClass:"alert-inner--icon"},[e("i",{class:t.icon})]):t._e(),t.$slots.text?e("span",{staticClass:"alert-inner--text"},[t._t("text")],2):t._e()]}))],2):t._e()},Ya=[],Ha={name:"base-alert",props:{type:{type:String,default:"default",description:"Alert type"},icon:{type:String,default:"",description:"Alert icon. Will be overwritten by default slot"},dismissible:{type:Boolean,default:!1,description:"Whether alert is closes when clicking"}},data(){return{visible:!0}},methods:{dismissAlert(){this.visible=!1}}},Ua=Ha,Qa=Object(o["a"])(Ua,Va,Ya,!1,null,null,null),Ja=Qa.exports,Za=function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"btn",class:t.classes,attrs:{type:"button"===t.tag?t.nativeType:""},on:{click:t.handleClick}},[t.$slots.icon||t.icon&&t.$slots.default?e("span",{staticClass:"btn-inner--icon"},[t._t("icon",(function(){return[e("i",{class:t.icon})]}))],2):t._e(),t.$slots.default?t._e():e("i",{class:t.icon}),t.$slots.icon||t.icon&&t.$slots.default?e("span",{staticClass:"btn-inner--text"},[t._t("default",(function(){return[t._v(" "+t._s(t.text)+" ")]}))],2):t._e(),t.$slots.icon||t.icon?t._e():t._t("default")],2)},Ka=[],Ga={name:"base-button",props:{tag:{type:String,default:"button",description:"Button tag (default -> button)"},type:{type:String,default:"default",description:"Button type (e,g primary, danger etc)"},size:{type:String,default:"",description:"Button size lg|sm"},textColor:{type:String,default:"",description:"Button text color (e.g primary, danger etc)"},nativeType:{type:String,default:"button",description:"Button native type (e.g submit,button etc)"},icon:{type:String,default:"",description:"Button icon"},text:{type:String,default:"",description:"Button text in case not provided via default slot"},outline:{type:Boolean,default:!1,description:"Whether button style is outline"},rounded:{type:Boolean,default:!1,description:"Whether button style is rounded"},iconOnly:{type:Boolean,default:!1,description:"Whether button contains only an icon"},block:{type:Boolean,default:!1,description:"Whether button is of block type"}},computed:{classes(){let t=[{"btn-block":this.block},{"rounded-circle":this.rounded},{"btn-icon-only":this.iconOnly},{["text-"+this.textColor]:this.textColor},{"btn-icon":this.icon||this.$slots.icon},this.type&&!this.outline?"btn-"+this.type:"",this.outline?"btn-outline-"+this.type:""];return this.size&&t.push("btn-"+this.size),t}},methods:{handleClick(t){this.$emit("click",t)}}},Xa=Ga,ts=Object(o["a"])(Xa,Za,Ka,!1,null,null,null),es=ts.exports,as=function(){var t=this,e=t._self._c;return e("div",{staticClass:"custom-control custom-checkbox",class:{disabled:t.disabled,"form-check-inline":t.inline}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"custom-control-input",attrs:{id:t.cbId,type:"checkbox",disabled:t.disabled},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{change:function(e){var a=t.model,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=null,o=t._i(a,n);s.checked?o<0&&(t.model=a.concat([n])):o>-1&&(t.model=a.slice(0,o).concat(a.slice(o+1)))}else t.model=i}}}),e("label",{staticClass:"custom-control-label",attrs:{for:t.cbId}},[t._t("default",(function(){return[t.inline?e("span",[t._v(" ")]):t._e()]}))],2)])},ss=[];function is(t=7){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let a="";for(let s=0;s0?this.pageCount:this.total>0?Math.ceil(this.total/this.perPage):1},pagesToDisplay(){return this.totalPages>0&&this.totalPages=this.pagesToDisplay){const t=Math.floor(this.pagesToDisplay/2),e=t+this.value;return e>this.totalPages?this.totalPages-this.pagesToDisplay+1:this.value-t}return 1},maxPage(){if(this.value>=this.pagesToDisplay){const t=Math.floor(this.pagesToDisplay/2),e=t+this.value;return e1&&this.$emit("input",this.value-1)}},watch:{perPage(){this.$emit("input",1)},total(){this.$emit("input",1)}}},Qs=Us,Js=Object(o["a"])(Qs,Ys,Hs,!1,null,null,null),Zs=Js.exports,Ks=function(){var t=this,e=t._self._c;return e("div",{staticClass:"progress-wrapper"},[t.$slots.label||t.label||t.$slots.percentage||t.showPercentage?e("div",{staticClass:"progress-info"},[t.$slots.label||t.label?e("div",{staticClass:"progress-label"},[e("span",[t._t("label",(function(){return[t._v(" "+t._s(t.label)+" ")]}))],2)]):t._e(),t.$slots.percentage||t.showPercentage?e("div",{staticClass:"progress-percentage"},[t._t("percentage",(function(){return[t._v(" "+t._s(t.value)+" % ")]}))],2):t._e()]):t._e(),e("div",{staticClass:"progress",style:`height: ${t.height}px`},[e("div",{staticClass:"progress-bar",class:t.computedClasses,style:`width: ${t.value}%;`,attrs:{role:"progressbar","aria-valuenow":t.value,"aria-valuemin":"0","aria-valuemax":"100"}})])])},Gs=[],Xs={name:"base-progress",props:{striped:{type:Boolean,description:"Whether progress is striped"},animated:{type:Boolean,description:"Whether progress is animated (works only with `striped` prop together)"},showPercentage:{type:Boolean,default:!0,description:"Whether progress bar should show percentage value"},height:{type:Number,default:3,description:"Progress line height"},label:{type:String,default:"",description:"Progress label"},type:{type:String,default:"default",description:"Progress type (e.g danger, primary etc)"},value:{type:Number,default:0,validator:t=>t>=0&&t<=100,description:"Progress value"}},computed:{computedClasses(){return[{"progress-bar-striped":this.striped},{"progress-bar-animated":this.animated},{["bg-"+this.type]:this.type}]}}},ti=Xs,ei=Object(o["a"])(ti,Ks,Gs,!1,null,null,null),ai=ei.exports,si=function(){var t=this,e=t._self._c;return e("label",{staticClass:"custom-toggle"},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{change:function(e){var a=t.model,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=null,o=t._i(a,n);s.checked?o<0&&(t.model=a.concat([n])):o>-1&&(t.model=a.slice(0,o).concat(a.slice(o+1)))}else t.model=i}}},"input",t.$attrs,!1)),e("span",{staticClass:"custom-toggle-slider rounded-circle"})])},ii=[],ni={name:"base-switch",inheritAttrs:!1,props:{value:{type:Boolean,default:!1,description:"Switch value"}},computed:{model:{get(){return this.value},set(t){this.$emit("input",t)}}}},oi=ni,ri=Object(o["a"])(oi,si,ii,!1,null,null,null),li=ri.exports,ci=function(){var t=this,e=t._self._c;return e("div",{staticClass:"custom-control custom-radio",class:[t.inlineClass,{disabled:t.disabled}]},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"custom-control-input",attrs:{id:t.cbId,type:"radio",disabled:t.disabled},domProps:{value:t.name,checked:t._q(t.model,t.name)},on:{change:function(e){t.model=t.name}}}),e("label",{staticClass:"custom-control-label",attrs:{for:t.cbId}},[t._t("default")],2)])},di=[],pi={name:"base-radio",props:{name:{type:[String,Number],description:"Radio label"},disabled:{type:Boolean,description:"Whether radio is disabled"},value:{type:[String,Boolean],description:"Radio value"},inline:{type:Boolean,description:"Whether radio is inline"}},data(){return{cbId:""}},computed:{model:{get(){return this.value},set(t){this.$emit("input",t)}},inlineClass(){return this.inline?"form-check-inline":""}},mounted(){this.cbId=is()}},ui=pi,mi=Object(o["a"])(ui,ci,di,!1,null,null,null),hi=mi.exports,fi=function(){var t=this,e=t._self._c;return e("table",{staticClass:"table tablesorter",class:t.tableClass},[e("thead",{class:t.theadClasses},[e("tr",[t._t("columns",(function(){return t._l(t.columns,(function(a){return e("th",{key:a},[t._v(t._s(a))])}))}),{columns:t.columns})],2)]),e("tbody",{class:t.tbodyClasses},t._l(t.data,(function(a,s){return e("tr",{key:s},[t._t("default",(function(){return t._l(t.columns,(function(s){return e("td",{key:s},[t.hasValue(a,s)?[t._v(" "+t._s(t.itemValue(a,s))+" ")]:t._e()],2)}))}),{item:a})],2)})),0)])},gi=[],vi={name:"base-table",props:{columns:{type:Array,default:()=>[],description:"Table columns"},data:{type:Array,default:()=>[],description:"Table data"},type:{type:String,default:"",description:"Whether table is striped or hover type"},theadClasses:{type:String,default:"",description:" css classes"},tbodyClasses:{type:String,default:"",description:" css classes"}},computed:{tableClass(){return this.type&&"table-"+this.type},colsWithValue(){return t=>this.columns.filter(e=>this.hasValue(t,e))}},methods:{hasValue(t,e){return"undefined"!==t[e.toLowerCase()]},itemValue(t,e){return t[e.toLowerCase()]}}},bi=vi,_i=Object(o["a"])(bi,fi,gi,!1,null,null,null),yi=_i.exports,Ci=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card",class:[{"card-lift--hover":t.hover},{shadow:t.shadow},{["shadow-"+t.shadowSize]:t.shadowSize},{["bg-gradient-"+t.gradient]:t.gradient},{["bg-"+t.type]:t.type}]},[t._t("image"),t.$slots.header?e("div",{staticClass:"card-header",class:t.headerClasses},[t._t("header")],2):t._e(),t.noBody?t._e():e("div",{staticClass:"card-body",class:t.bodyClasses},[t._t("default")],2),t.noBody?t._t("default"):t._e(),t.$slots.footer?e("div",{staticClass:"card-footer",class:t.footerClasses},[t._t("footer")],2):t._e()],2)},wi=[],xi={name:"card",props:{type:{type:String,description:"Card type"},gradient:{type:String,description:"Card background gradient type (warning,danger etc)"},hover:{type:Boolean,description:"Whether card should move on hover"},shadow:{type:Boolean,description:"Whether card has shadow"},shadowSize:{type:String,description:"Card shadow size"},noBody:{type:Boolean,default:!1,description:"Whether card should have wrapper body class"},bodyClasses:{type:[String,Object,Array],description:"Card body css classes"},headerClasses:{type:[String,Object,Array],description:"Card header css classes"},footerClasses:{type:[String,Object,Array],description:"Card footer css classes"}}},ki=xi,Si=Object(o["a"])(ki,Ci,wi,!1,null,null,null),ji=Si.exports,$i=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"modal fade",class:[{"show d-block":t.show},{"d-none":!t.show},{"modal-mini":"mini"===t.type}],attrs:{tabindex:"-1",role:"dialog","aria-hidden":!t.show},on:{mousedown:function(e){return e.target!==e.currentTarget?null:t.closeModal.apply(null,arguments)}}},[e("div",{staticClass:"modal-dialog modal-dialog-centered",class:[{"modal-notice":"notice"===t.type,["modal-"+t.size]:t.size},t.modalClasses]},[e("div",{staticClass:"modal-content",class:[t.gradient?"bg-gradient-"+t.gradient:"",t.modalContentClasses]},[t.$slots.header?e("div",{staticClass:"modal-header",class:[t.headerClasses]},[t._t("header"),t._t("close-button",(function(){return[t.showClose?e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"},on:{click:t.closeModal}},[e("span",{attrs:{"aria-hidden":!t.show}},[t._v("×")])]):t._e()]}))],2):t._e(),e("div",{staticClass:"modal-body",class:t.bodyClasses},[t._t("default")],2),t.$slots.footer?e("div",{staticClass:"modal-footer",class:t.footerClasses},[t._t("footer")],2):t._e()])])])},Di=[],Ti={name:"modal",props:{show:Boolean,showClose:{type:Boolean,default:!0},type:{type:String,default:"",validator(t){let e=["","notice","mini"];return-1!==e.indexOf(t)},description:'Modal type (notice|mini|"") '},modalClasses:{type:[Object,String],description:"Modal dialog css classes"},size:{type:String,description:"Modal size",validator(t){let e=["","sm","lg"];return-1!==e.indexOf(t)}},modalContentClasses:{type:[Object,String],description:"Modal dialog content css classes"},gradient:{type:String,description:"Modal gradient type (danger, primary etc)"},headerClasses:{type:[Object,String],description:"Modal Header css classes"},bodyClasses:{type:[Object,String],description:"Modal Body css classes"},footerClasses:{type:[Object,String],description:"Modal Footer css classes"},animationDuration:{type:Number,default:500,description:"Modal transition duration"}},methods:{closeModal(){this.$emit("update:show",!1),F.$emit("close")}},watch:{show(t){let e=document.body.classList;t?e.add("modal-open"):e.remove("modal-open")}}},Oi=Ti,Ai=(a("7fda"),Object(o["a"])(Oi,$i,Di,!1,null,null,null)),Pi=Ai.exports,Bi=function(){var t=this,e=t._self._c;return e("card",{staticClass:"card-stats",attrs:{"show-footer-line":!0}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[t._t("default",(function(){return[t.title?e("h5",{staticClass:"card-title text-uppercase text-muted mb-0"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.subTitle?e("span",{staticClass:"h2 font-weight-bold mb-0"},[t._v(t._s(t.subTitle))]):t._e()]}))],2),t.$slots.icon||t.icon?e("div",{staticClass:"col-auto"},[t._t("icon",(function(){return[e("div",{staticClass:"icon icon-shape text-white rounded-circle shadow",class:["bg-"+t.type,t.iconClasses]},[e("i",{class:t.icon})])]}))],2):t._e()]),e("p",{staticClass:"mt-3 mb-0 text-sm"},[t._t("footer")],2)])},Ni=[],Ii={name:"stats-card",components:{Card:ji},props:{type:{type:String,default:"primary"},icon:String,title:String,subTitle:[String,Number,Boolean],iconClasses:[String,Array]}},zi=Ii,Mi=Object(o["a"])(zi,Bi,Ni,!1,null,null,null),Ri=Mi.exports,Li=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"tab-pane fade",class:{"active show":t.active},attrs:{id:t.id||t.label,"aria-expanded":t.active}},[t._t("default")],2)},Wi=[],Ei={name:"tab-pane",props:["label","id","title","icon"],inject:["addTab","removeTab"],data(){return{active:!1}},mounted(){this.addTab(this)},unmounted(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.removeTab(this)}},qi=Ei,Fi=Object(o["a"])(qi,Li,Wi,!1,null,null,null),Vi=Fi.exports,Yi=function(){var t=this,e=t._self._c;return e(t.layoutComponent,{tag:"component",scopedSlots:t._u([{key:"nav",fn:function(){return[e("div",{staticClass:"nav-wrapper"},[e("ul",{staticClass:"nav",class:[t.type?"nav-pills-"+t.type:"",t.pills?"nav-pills":"nav-tabs",{"nav-pills-icons":t.icons},{"nav-fill":t.fill},{"nav-pills-circle":t.circle},{"justify-content-center":t.centered},t.tabNavClasses],attrs:{role:"tablist"}},t._l(t.tabs,(function(a){return e("li",{key:a.id||a.title,staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:a.active},attrs:{"data-toggle":"tab",role:"tab",href:"#"+(a.id||a.title),"aria-selected":a.active},on:{click:function(e){return e.preventDefault(),t.activateTab(a)}}},[a.icon?e("i",{class:a.icon}):t._e(),e("tab-item-content",{attrs:{tab:a}})],1)])})),0)])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"tab-content",class:[t.tabContentClasses]},[t._t("default",null,null,t.slotData)],2)]},proxy:!0}],null,!0)})},Hi=[],Ui=function(){var t=this,e=t._self._c;return e("div",[t._t("nav"),t._t("content")],2)},Qi=[],Ji={},Zi=Object(o["a"])(Ji,Ui,Qi,!1,null,null,null),Ki=Zi.exports,Gi=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"nav-tabs-navigation"},[e("div",{staticClass:"nav-tabs-wrapper"},[t._t("nav")],2)]),e("div",[t._t("content")],2)])},Xi=[],tn={name:"tabs-layout"},en=tn,an=Object(o["a"])(en,Gi,Xi,!1,null,null,null),sn=an.exports,nn={name:"tabs",components:{TabsLayout:sn,PillsLayout:Ki,TabItemContent:{props:["tab"],render(){return s["a"].h("div",[this.tab.$slots.title||this.tab.title])}}},props:{type:{type:String,default:"",validator:t=>{let e=["","primary","info","success","warning","danger"];return-1!==e.indexOf(t)},description:"Tabs type (primary|info|danger|default|warning|success)"},pills:{type:Boolean,default:!0,description:"Whether tabs are pills"},circle:{type:Boolean,default:!1,description:"Whether tabs are circle"},fill:{type:Boolean,default:!0,description:"Whether to fill each tab"},activeTab:{type:String,default:"",description:"Default active tab name"},tabNavWrapperClasses:{type:[String,Object],default:"",description:"Tab Nav wrapper (div) css classes"},tabNavClasses:{type:[String,Object],default:"",description:"Tab Nav (ul) css classes"},tabContentClasses:{type:[String,Object],default:"",description:"Tab content css classes"},icons:{type:Boolean,description:"Whether tabs should be of icon type (small no text)"},centered:{type:Boolean,description:"Whether tabs are centered"},value:{type:String,description:"Initial value (active tab)"}},provide(){return{addTab:this.addTab,removeTab:this.removeTab}},data(){return{tabs:[],activeTabIndex:0}},computed:{layoutComponent(){return this.pills?"pills-layout":"tabs-layout"},slotData(){return{activeTabIndex:this.activeTabIndex,tabs:this.tabs}}},methods:{findAndActivateTab(t){let e=this.tabs.find(e=>e.title===t);e&&this.activateTab(e)},activateTab(t){this.handleClick&&this.handleClick(t),this.deactivateTabs(),t.active=!0,this.activeTabIndex=this.tabs.findIndex(t=>t.active)},deactivateTabs(){this.tabs.forEach(t=>{t.active=!1})},addTab(t){this.activeTab===t.name&&(t.active=!0),this.tabs.push(t)},removeTab(t){const e=this.tabs,a=e.indexOf(t);a>-1&&e.splice(a,1)}},mounted(){this.$nextTick(()=>{this.value?this.findAndActivateTab(this.value):this.tabs.length>0&&this.activateTab(this.tabs[0])})},watch:{value(t){this.findAndActivateTab(t)}}},on=nn,rn=Object(o["a"])(on,Yi,Hi,!1,null,null,null),ln=rn.exports;const cn={install(t){t.component("badge",Fa),t.component("base-alert",Ja),t.component("base-button",es),t.component("base-checkbox",ls),t.component("base-dropdown",hs),t.component("base-dropdown2",ys),t.component("base-header",js),t.component("base-input",Ps),t.component("base-nav",Vs),t.component("base-pagination",Zs),t.component("base-progress",ai),t.component("base-switch",li),t.component("base-radio",hi),t.component("base-table",yi),t.component("card",ji),t.component("modal",Pi),t.component("stats-card",Ri),t.component("tab-pane",Vi),t.component("tabs",ln)}};var dn=cn,pn={bind:function(t,e,a){t.clickOutsideEvent=function(s){t==s.target||t.contains(s.target)||a.context[e.expression](s)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}};const un={install(t){t.directive("click-outside",pn)}};var mn=un,hn=(a("4d1c"),a("797e"),a("a4d4"),{install(t){t.use(dn),t.use(mn)}}),fn=a("4eb5"),gn=a.n(fn),vn=a("1487"),bn=a.n(vn);s["a"].directive("highlight",(function(t){const e=t.querySelectorAll("pre code");e.forEach(t=>{bn.a.highlightBlock(t)})})),s["a"].use(gn.a),s["a"].config.productionTip=!1,s["a"].use(Ma["a"]),s["a"].use(hn),new s["a"]({router:za,store:O,render:t=>t(c)}).$mount("#app")},"74a8":function(t,e,a){"use strict";a("07b5")},"797e":function(t,e,a){},"7ae2":function(t,e,a){},"7fda":function(t,e,a){"use strict";a("bbb6")},a4d4:function(t,e,a){},aa2b:function(t,e,a){"use strict";a("1ed2")},ac88:function(t,e,a){"use strict";a("bc65")},afde:function(t,e,a){"use strict";a("2f82")},bbb6:function(t,e,a){},bc65:function(t,e,a){},c38a:function(t,e,a){"use strict";a("cc00")},c5b5:function(t,e,a){},cb76:function(t,e,a){},cc00:function(t,e,a){},d06d:function(t,e,a){},d0a5:function(t,e,a){t.exports=a.p+"theme/Bob-Theme-Argon/img/pay-success.5f5f21d8.svg"},d0b6:function(t,e,a){"use strict";a("00fb")},f160:function(t,e,a){"use strict";a("d06d")},fc36:function(t,e,a){"use strict";a("7ae2")}}); \ No newline at end of file diff --git a/js/app.e69d27cd.js b/js/app.e69d27cd.js deleted file mode 100644 index 2058e7e..0000000 --- a/js/app.e69d27cd.js +++ /dev/null @@ -1 +0,0 @@ -(function(t){function e(e){for(var s,o,r=e[0],l=e[1],c=e[2],p=0,u=[];pt,t=>{if(t.response)switch(t.response.status){case 401:window.sessionStorage.clear(),window.location.clear(),za.push({name:"login"});break;case 400:3===t.response.data.code&&za.push({name:"error_401"});break;case 403:var e=location.href;-1===e.indexOf("login")&&(location.href="/#/login");break;case 422:var a=t.response.data.errors;if(a){let t=Object.keys(a);v["a"].error(a[t[0]])}else v["a"].error(t.response.data.message);break;case 500:v["a"].error(t.response.data.message);break;default:v["a"].error(t.response.data.message);break}return Promise.reject(t.response.data)});var A={get(t,e){return g.a.defaults.headers.common={Authorization:O.getters.getToken},g.a.defaults.headers["Content-Type"]="application/json;charset=utf-8",new Promise((a,s)=>{g.a.get(t,{params:e}).then((function(t){a(t)})).catch(t=>{s(t),console.log("请求失败:"+t)})})},post(t,e){return g.a.defaults.headers.common={Authorization:O.getters.getToken},g.a.defaults.headers["Content-Type"]="application/x-www-form-urlencoded",new Promise((a,s)=>{g.a.post(t,_.a.stringify(e)).then((function(t){a(t)})).catch(t=>{s(t),console.log("请求失败:"+t)})})}};const P=t=>A.get("/api/v1/guest/comm/config",t).then(t=>t.data),B=t=>A.post("/api/v1/passport/auth/login",t).then(t=>t.data),N=t=>A.post("/api/v1/passport/comm/sendEmailVerify",t).then(t=>t.data),I=t=>A.post("/api/v1/passport/auth/register",t).then(t=>t.data),z=t=>A.post("/api/v1/passport/auth/forget",t).then(t=>t.data);var M={data(){return{activeNotifications:!1,showMenu:!1,searchQuery:""}},props:{user:{type:Object}},mounted(){},methods:{toggleSidebar(){this.$sidebar.displaySidebar(!this.$sidebar.showSidebar)},hideSidebar(){this.$sidebar.displaySidebar(!1)},toggleMenu(){this.showMenu=!this.showMenu},logout(){sessionStorage.clear(),localStorage.clear(),this.$store.commit("setToken",null),setTimeout(()=>{this.$router.push({path:"/login"})},1e3)}}},R=M,L=Object(o["a"])(R,m,h,!1,null,null,null),W=L.exports,E=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"navbar navbar-vertical fixed-left navbar-expand-md navbar-light bg-white",attrs:{id:"sidenav-main"}},[e("div",{staticClass:"container-fluid"},[e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","aria-label":"Toggle navigation"},on:{click:function(e){return t.showSidebarTab()}}},[t._t("default",(function(){return[e("span",{staticClass:"navbar-toggler-icon"})]}))],2),e("router-link",{staticClass:"navbar-brand",attrs:{to:"/dashboard"}},[e("h2",[t._v(t._s(t.app_name))])]),t._t("mobile-right",(function(){return[e("ul",{staticClass:"nav align-items-center d-md-none"},[e("base-dropdown",{staticClass:"nav-item",attrs:{position:"right"},scopedSlots:t._u([{key:"title",fn:function(){return[e("a",{staticClass:"nav-link nav-link-icon",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"ni ni-bell-55"})])]},proxy:!0}])},[e("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("Action")]),e("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("Another action")]),e("div",{staticClass:"dropdown-divider"}),e("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t._v("Something else here")])]),e("base-dropdown",{staticClass:"nav-item",attrs:{position:"right"},scopedSlots:t._u([{key:"title",fn:function(){return[e("a",{staticClass:"nav-link",attrs:{href:"#",role:"button"}},[e("div",{staticClass:"media align-items-center"},[e("span",{staticClass:"avatar avatar-sm rounded-circle"},[e("img",{attrs:{alt:"Image placeholder",src:t.user.avatar_url}})])])])]},proxy:!0}])},[e("div",{staticClass:"dropdown-header noti-title"},[e("h6",{staticClass:"text-overflow m-0"},[t._v("Welcome!")])]),e("router-link",{staticClass:"dropdown-item",attrs:{to:"/profile"}},[e("i",{staticClass:"ni ni-single-02"}),e("span",[t._v("个人中心")])]),e("div",{staticClass:"dropdown-divider"}),e("a",{staticClass:"dropdown-item",on:{click:t.logout}},[e("i",{staticClass:"ni ni-user-run"}),e("span",[t._v("退出登录")])])],1)],1)]})),t._t("default"),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showSidebar,expression:"showSidebar"}],staticClass:"navbar-collapse collapse show",attrs:{id:"sidenav-collapse-main"}},[e("div",{staticClass:"navbar-collapse-header d-md-none"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6 collapse-brand"},[e("span",[t._v(" "+t._s(t.user.email))])]),e("div",{staticClass:"col-6 collapse-close"},[e("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","aria-label":"Toggle navigation"},on:{click:t.closeSidebar}},[t._t("default",(function(){return[e("span"),e("span")]}))],2)])])]),e("ul",{staticClass:"navbar-nav"},[t._t("links")],2),e("hr",{staticClass:"my-3"}),e("h6",{staticClass:"navbar-heading text-muted"},[t._v("订阅")]),e("ul",{staticClass:"navbar-nav"},[t._t("links-2")],2),e("hr",{staticClass:"my-3"}),e("h6",{staticClass:"navbar-heading text-muted"},[t._v("财务")]),e("ul",{staticClass:"navbar-nav"},[t._t("links-3")],2),e("hr",{staticClass:"my-3"}),e("h6",{staticClass:"navbar-heading text-muted"},[t._v("用户")]),e("ul",{staticClass:"navbar-nav"},[t._t("links-4")],2)])],2)])},q=[],F=new s["a"],V={name:"sidebar",components:{},data(){return{showSidebar:!1,app_name:window.APP_NAME}},props:{logo:{type:String,default:"img/brand/green.png",description:"Sidebar app logo"},autoClose:{type:Boolean,default:!0,description:"Whether sidebar should autoclose on mobile when clicking an item"},config:{type:Object},user:{type:Object}},mounted(){let t=this;F.$on("sidebar",(function(){t.showSidebar&&(t.showSidebar=!1)})),F.$on("LoginSidebar",(function(){t.showSidebar=!0}))},provide(){return{autoClose:this.autoClose}},methods:{closeSidebar(){this.showSidebar=!1},showSidebarTab(){this.showSidebar?this.showSidebar=!1:this.showSidebar=!0},logout(){sessionStorage.clear(),localStorage.clear(),this.$store.commit("setToken",null),setTimeout(()=>{this.$router.push({path:"/login"})},1e3)}},beforeUnmount(){this.showSidebar&&(this.showSidebar=!1)}},Y=V,H=Object(o["a"])(Y,E,q,!1,null,null,null),U=H.exports,Q=function(){var t=this,e=t._self._c;return e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{to:t.link.path,target:t.link.target,href:"#"+t.link.path},on:{click:function(e){return t.linkClick()}}},[e("i",{class:t.link.icon}),e("span",{staticClass:"nav-link-text"},[t._v(t._s(t.link.name))])])])},J=[],Z={name:"sidebar-item",props:{link:{type:Object,default:()=>({name:"",path:"",children:[]}),description:"Sidebar link. Can contain name, path, icon and other attributes. See examples for more info"}},inject:{autoClose:{default:!0}},data(){return{children:[],collapsed:!0}},methods:{linkClick(){this.autoClose&&F.$emit("sidebar")}}},K=Z,G=Object(o["a"])(K,Q,J,!1,null,null,null),X=G.exports,tt=function(){var t=this,e=t._self._c;return e("footer",{staticClass:"footer px-4"},[e("div",{staticClass:"row align-items-center justify-content-lg-between"},[e("div",{staticClass:"col-lg-6"},[e("div",{staticClass:"copyright text-center text-lg-left text-muted"},[t._v(" © "+t._s(t.year)+" "),e("a",{staticClass:"font-weight-bold ml-1",attrs:{href:"https://github.com/BobCoderS9/Bob-Theme-Argon",target:"_blank"}},[t._v("Argon")])])]),t._m(0)])])},et=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-lg-6"},[e("ul",{staticClass:"nav nav-footer justify-content-center justify-content-lg-end"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"https://github.com/v2board/v2board",target:"_blank"}},[t._v("V2board")])])])])}],at={data(){return{year:(new Date).getFullYear()}}},st=at,it=Object(o["a"])(st,tt,et,!1,null,null,null),nt=it.exports;const ot=t=>A.get("/api/v1/user/info",t).then(t=>t.data),rt=t=>A.get("/api/v1/user/notice/fetch",t).then(t=>t.data),lt=t=>A.get("/api/v1/user/getSubscribe",t).then(t=>t.data),ct=t=>A.get("/api/v1/user/getStat",t).then(t=>t.data),dt=t=>A.get("/api/v1/user/knowledge/fetch",t).then(t=>t.data),pt=t=>A.get("/api/v1/user/server/fetch",t).then(t=>t.data),ut=t=>A.get("/api/v1/user/plan/fetch",t).then(t=>t.data),mt=t=>A.get("/api/v1/user/order/detail",t).then(t=>t.data),ht=t=>A.get("/api/v1/user/order/getPaymentMethod",t).then(t=>t.data),ft=t=>A.get("/api/v1/user/order/check",t).then(t=>t.data),gt=t=>A.post("/api/v1/user/coupon/check",t).then(t=>t.data),vt=t=>A.post("/api/v1/user/order/save",t).then(t=>t.data),bt=t=>A.post("/api/v1/user/order/checkout",t).then(t=>t.data),_t=t=>A.get("/api/v1/user/order/fetch",t).then(t=>t.data),yt=t=>A.get("/api/v1/user/invite/fetch",t).then(t=>t.data),Ct=t=>A.get("/api/v1/user/invite/save",t).then(t=>t.data),wt=t=>A.get("/api/v1/user/invite/details",t).then(t=>t.data),xt=t=>A.get("/api/v1/user/resetSecurity",t).then(t=>t.data),kt=t=>A.get("/api/v1/user/comm/config",t).then(t=>t.data),St=t=>A.post("/api/v1/user/transfer",t).then(t=>t.data),jt=t=>A.post("/api/v1/user/ticket/withdraw",t).then(t=>t.data),$t=t=>A.post("/api/v1/user/changePassword",t).then(t=>t.data),Dt=t=>A.post("/api/v1/user/update",t).then(t=>t.data),Tt=t=>A.get("/api/v1/user/telegram/getBotInfo",t).then(t=>t.data),Ot=t=>A.get("/api/v1/user/ticket/fetch",t).then(t=>t.data),At=t=>A.post("/api/v1/user/ticket/save",t).then(t=>t.data),Pt=t=>A.post("/api/v1/user/ticket/close",t).then(t=>t.data),Bt=t=>A.post("/api/v1/user/ticket/reply",t).then(t=>t.data),Nt=t=>A.get("/api/v1/user/ticket/fetch",t).then(t=>t.data),It=t=>A.get("/api/v1/user/stat/getTrafficLog",t).then(t=>t.data),zt=t=>A.post("/api/v1/user/order/cancel",t).then(t=>t.data);var Mt={components:{DashboardNavbar:W,ContentFooter:nt,SideBar:U,SidebarItem:X},data(){return{sidebarBackground:"vue",user:{},config:{},sub:{},showNoPay:!1,showNoPay2:!0}},mounted(){let t=this;F.$on("haveNoPay",(function(){t.showNoPay=!0})),t.getData()},methods:{toggleSidebar(){F.$emit("sidebar")},getData(){ot().then(t=>{this.user=t.data}),P().then(t=>{this.config=t.data})}}},Rt=Mt,Lt=(a("d0b6"),Object(o["a"])(Rt,p,u,!1,null,null,null)),Wt=Lt.exports,Et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content bg-default"},[e("div",{staticClass:"header bg-gradient-primary py-7 py-lg-6"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-body text-center mb-7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-6"},[e("h1",{staticClass:"text-white"},[t._v(t._s(t.app_name))]),e("p",{staticClass:"text-lead text-white"},[t._v(" "+t._s(t.app_description)+" ")])])])])]),e("div",{staticClass:"separator separator-bottom separator-skew zindex-100"},[e("svg",{attrs:{x:"0",y:"0",viewBox:"0 0 2560 100",preserveAspectRatio:"none",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[e("polygon",{staticClass:"fill-default",attrs:{points:"2560 0 2560 100 0 100"}})])])]),e("div",{staticClass:"container mt--8 pb-5"},[e("router-view")],1),e("footer",{staticClass:"py-5 mt-6"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row align-items-center justify-content-xl-between"},[e("div",{staticClass:"col-xl-6"},[e("div",{staticClass:"copyright text-center text-xl-left text-muted"},[t._v(" © "+t._s(t.year)+" "),e("a",{staticClass:"font-weight-bold ml-1",attrs:{href:"https://github.com/BobCoderS9/Bob-Theme-Argon",target:"_blank"}},[t._v("Argon")])])]),t._m(0)])])])])},qt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-xl-6"},[e("ul",{staticClass:"nav nav-footer justify-content-center justify-content-xl-end"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"https://github.com/v2board/v2board",target:"_blank"}},[t._v("V2board")])])])])}],Ft={name:"auth-layout",data(){return{year:(new Date).getFullYear(),showMenu:!1,config:{},app_description:window.APP_DESCRIPTION,app_name:window.APP_NAME}},mounted(){this.getConfig()},methods:{getConfig(){P().then(t=>{this.config=t.data,localStorage.setItem("config",JSON.stringify(t.data))})}}},Vt=Ft,Yt=Object(o["a"])(Vt,Et,qt,!1,null,null,null),Ht=Yt.exports,Ut=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"会员到期",type:"gradient-red","sub-title":t._f("formatDate")(t.sub.expired_at),icon:"ni ni-circle-08"},scopedSlots:t._u([{key:"footer",fn:function(){return[t.sub.reset_day?e("span",{staticClass:"text-nowrap"},[t._v("距离重置流量还有 "+t._s(t.sub.reset_day)+" 天")]):e("span",{staticClass:"text-nowrap"},[t._v("暂无数据")])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"使用流量",type:"gradient-orange","sub-title":t._f("bytesToSize")(t.sub.u+t.sub.d),icon:"ni ni-chart-bar-32"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("总计 "+t._s(t._f("bytesToSize")(t.sub.transfer_enable)))])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"钱包余额",type:"gradient-green","sub-title":t._f("money")(t.user.balance),icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("可用佣金 "+t._s(t._f("money")(t.user.commission_balance)))])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"待办工单",type:"gradient-info","sub-title":t.stat[1]>0?t.stat[1]:"0",icon:"ni ni-chart-pie-35"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("已关闭工单:0")])]},proxy:!0}])})],1)])]),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row mb-4"},[e("div",{staticClass:"col-xl-6"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("我的订阅")])]),t.sub.plan?e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-8"},[e("strong",[t._v(" "+t._s(t.sub.plan.name)+" ")]),t.sub.expired_at?e("p",[t._v(" 于 "+t._s(t._f("formatDate")(t.sub.expired_at))+" 到期,距离到期还有 "+t._s(t._f("intervalDay")(t.sub.expired_at))+" 天,"+t._s(t.sub.reset_day)+" 日后重置流量 ")]):e("p",[t._v("该订阅长期有效")]),e("base-progress",{attrs:{"show-label":"",type:"primary",height:8,value:Math.ceil((t.sub.u+t.sub.d)/t.sub.transfer_enable*100),label:"已用流量"}}),e("p",[t._v(" 已用 "+t._s(t._f("bytesToSize")(t.sub.u+t.sub.d))+" / 总计 "+t._s(t._f("bytesToSize")(t.sub.transfer_enable))+" ")])],1),e("div",{staticClass:"col-lg-4 text-center",staticStyle:{padding:"4rem"}},[e("base-dropdown2",{attrs:{"title-classes":"btn btn-primary"},scopedSlots:t._u([{key:"title",fn:function(){return[e("i",{staticClass:"ni ni-atom"}),t._v(" 操作 ")]},proxy:!0}],null,!1,2538436264)},[e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id}})}}},[e("i",{staticClass:"ni ni-money-coins"}),t._v(" 续费订阅 ")])]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal3=!0}}},[e("a-icon",{attrs:{type:"reload"}}),t._v(" 重置当月流量 ")],1)]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal2=!0}}},[e("i",{staticClass:"ni ni-atom"}),t._v(" 重置订阅信息 ")])])])],1)])]):e("div",{staticClass:"card-body text-center"},[e("a-empty",{attrs:{image:"https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original","image-style":{height:"60px"}}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅 ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/plan"})}}},[t._v(" 添加订阅 ")])],1)],1)]),e("card",{staticStyle:{width:"100%"},attrs:{"header-classes":"bg-transparent"},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" 我的订阅 ")]),e("h5",{staticClass:"h3 mb-0"},[t._v("订阅链接")])])])]},proxy:!0}])},[t.sub.plan_id?e("div",{staticClass:"chart-body"},[t.show_client.SSR?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle"},[t._v(" SSR 订阅 ")])]},proxy:!0}],null,!1,3478043667)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=shadowsocks",expression:"sub.subscribe_url + '&flag=shadowsocks'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 SSR 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("ssr")}}},[t._v("一键导入 SSR")])]):t._e(),t.show_client.Clash?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle",attrs:{type:"primary"}},[t._v(" Clash 订阅 ")])]},proxy:!0}],null,!1,2653774506)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=clash",expression:"sub.subscribe_url + '&flag=clash'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 Clash 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("clash")}}},[t._v("一键导入 Clash")])]):t._e(),t.show_client.Shadowrocket?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle",attrs:{type:"info"}},[t._v(" Shadowrocket 订阅 ")])]},proxy:!0}],null,!1,2395143647)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=shadowrocket",expression:"sub.subscribe_url + '&flag=shadowrocket'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 Shadowrocket 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("shadowrocket")}}},[t._v("一键导入 Shadowrocket")])]):t._e(),t.show_client.Surge?e("base-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=surge",expression:"sub.subscribe_url + '&flag=surge'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"sub-button",attrs:{type:"secondary"}},[t._v("Surge 订阅")]):t._e(),t.show_client.V2Ray?e("base-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=v2ray",expression:"sub.subscribe_url + '&flag=v2ray'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"sub-button",attrs:{type:"danger"}},[t._v(" 复制 V2Ray 订阅")]):t._e(),t.show_client.Surfboard?e("base-dropdown",{staticClass:"sub-button",scopedSlots:t._u([{key:"title",fn:function(){return[e("base-button",{staticClass:"dropdown-toggle",attrs:{type:"warning"}},[t._v(" Surfboard 订阅 ")])]},proxy:!0}],null,!1,3643416049)},[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.sub.subscribe_url+"&flag=surfboard",expression:"sub.subscribe_url + '&flag=surfboard'",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"dropdown-item"},[t._v("复制 Surfboard 订阅")]),e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.importSublink("surfboard")}}},[t._v("一键导入 Surfboard")])]):t._e()],1):e("div",{staticClass:"card-body text-center"},[e("a-empty",{attrs:{image:"https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original","image-style":{height:"60px"}}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅 ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/plan"})}}},[t._v(" 添加订阅 ")])],1)],1)])],1),e("div",{staticClass:"col-xl-6"},[e("card",{scopedSlots:t._u([{key:"image",fn:function(){return[e("a-carousel",{attrs:{autoplay:!0,afterChange:t.setNotice,"dot-position":"top"}},t._l(t.noticeList,(function(t,a){return e("div",{key:a},[e("img",{staticClass:"card-img-top",attrs:{src:t.img_url,alt:"Card image cap"}})])})),0)]},proxy:!0}])},[e("div",[e("h5",{staticClass:"card-title"},[t._v(t._s(t.noticeDetail.title))]),e("p",{staticClass:"card-text",domProps:{innerHTML:t._s(t.noticeDetail.content)}}),e("p",{staticClass:"card-text"},[e("small",{staticClass:"text-muted"},[t._v(t._s(t._f("formatDate")(t.noticeDetail.updated_at)))])])])])],1)])])],1),e("modal",{attrs:{show:t.modal2,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.resetSublink}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置订阅信息?")]),e("p",[t._v("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。")])])]),e("modal",{attrs:{show:t.modal3,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification2"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal3=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id,cycle:"reset_price"}})}}},[t._v("确定 ")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置当月流量?")]),e("p",[t._v("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。")])])])],1)},Qt=[],Jt=(a("b7ef"),{components:{},data(){return{salesChartID:"salesChart",ordersChartID:"ordersChart",bigLineChart:{allData:[0,20,5,25,10,30,15,40,40],activeIndex:0},noticeList:[],activeKey:[0],sub:{},config:{},noticeDetail:{title:"暂无公告",content:"暂无公告"},stat:[],loading:!0,modal2:!1,modal3:!1,show_client:window.CLIENT}},props:{user:{type:Object}},methods:{setNotice(t){this.noticeList&&(this.noticeDetail=this.noticeList[t])},importSublink(t){let e=this.sub.subscribe_url+"&flag="+t,a={};a["surfboard"]="surfboard:///install-config?url="+encodeURIComponent(e),a["shadowrocket"]="shadowrocket://add/sub://"+window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")+"?remarks="+window.APP_NAME,a["surge"]="surge:///install-config?url="+encodeURIComponent(e),a["surge3"]="surge3:///install-config?url="+encodeURIComponent(e),a["clash"]="clash://install-config?url="+encodeURIComponent(e),a["ssr"]="sub://"+btoa(e),window.location.href=a[t]},copySublink(){const t=this.$createElement;this.$notification.open({message:"复制成功",icon:t("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"})})},getData(){rt().then(t=>{this.noticeList=t.data,t.data.length>0&&(this.noticeDetail=t.data[0]),this.loading=!1}),lt().then(t=>{this.sub=t.data,this.loading=!1}),ct().then(t=>{this.stat=t.data,this.stat[0]>0&&F.$emit("haveNoPay",!0),this.loading=!1})},resetSublink(){xt().then(t=>{this.modal2=!1,t.data&&this.$message.success("重置订阅连接成功")})}},mounted(){let t=this;F.$on("close",(function(){t.modal3=!1,t.modal2=!1})),this.config=JSON.parse(localStorage.getItem("config")),this.getData()},filters:{formatDate:function(t){if(!t)return"暂无数据";10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},bytesToSize(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toPrecision(4)+" "+a[s]},money(t){return"¥"+(t/100).toFixed(2)},intervalDay:function(t){let e=Date.parse(new Date)/1e3,a=t-e;return Math.floor(a/86400)}}}),Zt=Jt,Kt=(a("ac88"),Object(o["a"])(Zt,Ut,Qt,!1,null,null,null)),Gt=Kt.exports,Xt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-7"},[e("div",{staticClass:"card bg-secondary shadow border-0"},[t._m(0),e("div",{staticClass:"card-body px-lg-5 py-lg-5"},[t._m(1),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group input-group input-group-alternative mb-3"},[t._m(2),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"邮箱"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative mb-3"},[t._m(3),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"密码",type:"password",accept:"",alt:""},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),e("base-checkbox",{staticClass:"custom-control-alternative"},[e("span",{staticClass:"text-muted"},[t._v("记住我")])]),e("div",{staticClass:"text-center"},[e("base-button",{staticClass:"my-4",attrs:{icon:"ni ni-spaceship",type:"primary"},on:{click:t.onSubmit}},[t._v("登录")])],1)],1)])]),e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-6"},[e("a",{staticClass:"text-light",on:{click:function(e){return t.$router.push({path:"forgetPassword"})}}},[e("small",[t._v("忘记密码?")])])]),e("div",{staticClass:"col-6 text-right"},[e("router-link",{staticClass:"text-light",attrs:{to:"/register"}},[e("small",[t._v("注册账号")])])],1)])])])},te=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header bg-transparent pb-5"},[e("div",{staticClass:"text-muted text-center mt-2 mb-3"},[e("h2",{staticStyle:{color:"#909399"}},[t._v("用户登陆")])]),e("div",{staticClass:"btn-wrapper text-center"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted mb-4"},[e("small",[t._v("Or sign in with credentials")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])}],ee={name:"login",data(){return{form:{email:"",password:""}}},mounted(){ot().then(t=>{t.data&&this.$router.push({path:"/dashboard"})})},methods:{onSubmit(){B({email:this.form.email,password:this.form.password}).then(t=>{t.data&&(this.$message.success("登录成功"),this.$store.commit("setToken",t.data.auth_data),F.$emit("LoginSidebar"),setTimeout(()=>{this.$router.push({path:"/dashboard"})},1e3))})}}},ae=ee,se=Object(o["a"])(ae,Xt,te,!1,null,null,null),ie=se.exports,ne=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-7"},[e("div",{staticClass:"card bg-secondary shadow border-0"},[t._m(0),e("div",{staticClass:"card-body px-lg-5 py-lg-5"},[t._m(1),e("form",{attrs:{role:"form"}},[t.config.email_whitelist_suffix?e("div",{staticClass:"form-group input-group input-group-alternative"},[e("div",{staticClass:"input-group"},[t._m(2),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{type:"text",placeholder:"邮箱"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}}),e("div",{staticClass:"input-group-append"},[e("span",{staticClass:"input-group-text",staticStyle:{padding:"0px"}},[e("a-select",{staticStyle:{width:"150px"},model:{value:t.email_suffix,callback:function(e){t.email_suffix=e},expression:"email_suffix"}},t._l(t.config.email_whitelist_suffix,(function(a,s){return e("a-select-option",{key:s,attrs:{value:a}},[t._v(" @"+t._s(a)+" ")])})),1)],1)])])]):e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(3),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"邮箱",focused:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t.config.is_email_verify?e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(4),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email_code,expression:"form.email_code"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"验证码"},domProps:{value:t.form.email_code},on:{input:function(e){e.target.composing||t.$set(t.form,"email_code",e.target.value)}}}),e("base-button",{attrs:{type:"primary"}},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],on:{click:function(e){return t.sendMail(!0)}}},[t._v("发送验证码")]),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!show"}],staticClass:"count"},[t._v(t._s(t.count)+" s")])])],1):t._e(),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(5),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"密码",type:"password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(6),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_password,expression:"form.auth_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"确认密码",type:"password"},domProps:{value:t.form.auth_password},on:{input:function(e){e.target.composing||t.$set(t.form,"auth_password",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(7),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.invite_code,expression:"form.invite_code"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:t.invite_text},domProps:{value:t.form.invite_code},on:{input:function(e){e.target.composing||t.$set(t.form,"invite_code",e.target.value)}}})]),e("div",{staticClass:"row my-4"},[e("div",{staticClass:"col-12"},[e("base-checkbox",{staticClass:"custom-control-alternative"},[e("span",{staticClass:"text-muted"},[t._v(" 我已阅读并同意 "),e("a",{attrs:{href:t.config.tos_url}},[t._v("服务条款")])])])],1)]),1===t.config.is_recaptcha?e("div",[e("reCaptcha",{attrs:{sitekey:t.config.recaptcha_site_key},on:{getValidateCode:t.getValidateCode}})],1):t._e(),e("a-modal",{attrs:{title:"验证",visible:t.visible}},[e("reCaptcha",{attrs:{sitekey:t.config.recaptcha_site_key},on:{getValidateCode:t.getValidateCode2}})],1),e("div",{staticClass:"text-center"},[e("base-button",{staticClass:"my-4",attrs:{type:"primary",icon:"ni ni-active-40"},on:{click:t.onSubmit}},[t._v("注册")])],1)],1)])]),e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-6"},[e("router-link",{staticClass:"text-light",attrs:{to:"/forgetPassword"}},[e("small",[t._v("忘记密码")])])],1),e("div",{staticClass:"col-6 text-right"},[e("router-link",{staticClass:"text-light",attrs:{to:"/login"}},[e("small",[t._v("已有账号?请登录")])])],1)])])])},oe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"text-muted text-center mt-2 mb-3"},[e("h2",{staticStyle:{color:"#909399"}},[t._v("用户注册")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted mb-4"},[e("small",[t._v("Or sign up with credentials")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-hat-3"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-air-baloon"})])])}],re=function(){var t=this,e=t._self._c;return e("div",{ref:"grecaptcha"})},le=[],ce={props:["sitekey"],methods:{loaded(){window.grecaptcha.render(this.$refs.grecaptcha,{sitekey:this.sitekey,callback:t=>{this.$emit("getValidateCode",t)}})}},mounted(){window.ReCaptchaLoaded=this.loaded;var t=document.createElement("script");t.src="https://recaptcha.net/recaptcha/api.js?onload=ReCaptchaLoaded&render=explicit",document.head.appendChild(t)}},de=ce,pe=Object(o["a"])(de,re,le,!1,null,null,null),ue=pe.exports,me={name:"register",components:{reCaptcha:ue},data(){return{form:{invite_code:"",email_code:"",email:"",password:"",auth_password:"",recaptcha_data:""},config:{},invite_text:"",email_suffix:"",recaptcha_data:"",key:"",show:!0,visible:!1,count:60}},mounted(){this.$route.query.code&&(this.form.invite_code=this.$route.query.code),this.getConfig(),this.$on("getValidateCode",(function(t){this.form.recaptcha_data=t}))},methods:{getConfig(){P().then(t=>{this.config=t.data,t.data.email_whitelist_suffix&&(this.email_suffix=t.data.email_whitelist_suffix[0]),t.data.is_invite_force?this.invite_text="邀请码(必填)":this.invite_text="邀请码(选填)"})},sendMail(t){if(!this.form.email)return this.$message.warning("请先输入邮箱"),!1;let e=this.form.email;this.email_suffix&&(e=this.form.email+"@"+this.email_suffix);let a=new RegExp("^[A-Za-z\\d]+([-_.][A-Za-z\\d]+)*@([A-Za-z\\d]+[-.])+[A-Za-z\\d]{2,4}$");if(!a.test(e))return this.$message.warning("邮箱格式不正确"),!1;if(1===this.config.is_recaptcha&&t)return this.visible=!0,!1;const s=60;let i={email:e};this.recaptcha_data&&(i.recaptcha_data=this.recaptcha_data),N(i).then(t=>{t.data&&(this.$message.success("发送成功"),this.count=s,this.show=!1,this.timer=setInterval(()=>{this.count>0&&this.count<=s?this.count--:(this.show=!0,clearInterval(this.timer),this.timer=null)},1e3))})},onSubmit(){return this.form.email?this.form.password?this.form.auth_password!==this.form.password?(this.$message.warning("两次密码输入不一致"),!1):this.config.is_invite_force&&!this.form.invite_code?(this.$message.warning("请输入邀请码"),!1):this.config.is_email_verify&&!this.form.email_code?(this.$message.warning("请输入邮箱验证码"),!1):(this.email_suffix&&(this.form.email=this.form.email+"@"+this.email_suffix),void I(this.form).then(t=>{t.data&&(this.$message.success("注册成功"),setTimeout(()=>{this.$router.push({path:"/dashboard"})},1e3))})):(this.$message.warning("请输入密码"),!1):(this.$message.warning("请先输入邮箱"),!1)},getValidateCode(t){this.form.recaptcha_data=t},getValidateCode2(t){this.recaptcha_data=t,this.recaptcha_data&&(this.visible=!1,this.sendMail(!1))}}},he=me,fe=(a("40f9"),Object(o["a"])(he,ne,oe,!1,null,null,null)),ge=fe.exports,ve=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-5 col-md-7"},[e("div",{staticClass:"card bg-secondary shadow border-0"},[t._m(0),e("div",{staticClass:"card-body px-lg-5 py-lg-5"},[t._m(1),e("form",{attrs:{role:"form"}},[e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(2),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"邮箱",focused:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t.config.is_email_verify?e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(3),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email_code,expression:"form.email_code"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"验证码"},domProps:{value:t.form.email_code},on:{input:function(e){e.target.composing||t.$set(t.form,"email_code",e.target.value)}}}),e("base-button",{attrs:{type:"primary"}},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],on:{click:function(e){return t.sendMail(!0)}}},[t._v("发送验证码")]),e("span",{directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!show"}],staticClass:"count"},[t._v(t._s(t.count)+" s")])])],1):t._e(),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(4),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"密码",type:"password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),e("div",{staticClass:"form-group input-group input-group-alternative"},[t._m(5),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.auth_password,expression:"form.auth_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"确认密码",type:"password"},domProps:{value:t.form.auth_password},on:{input:function(e){e.target.composing||t.$set(t.form,"auth_password",e.target.value)}}})]),e("a-modal",{attrs:{title:"验证",visible:t.visible}},[e("reCaptcha",{attrs:{sitekey:t.config.recaptcha_site_key},on:{getValidateCode:t.getValidateCode2}})],1),e("div",{staticClass:"text-center"},[e("base-button",{staticClass:"my-4",attrs:{type:"primary",icon:"ni ni-active-40"},on:{click:t.onSubmit}},[t._v(" 重置密码 ")])],1)],1)])]),e("div",{staticClass:"row mt-3"},[e("div",{staticClass:"col-8 text-right"},[e("router-link",{staticClass:"text-light",attrs:{to:"/login"}},[e("small",[t._v("已有账号?请登录")])])],1)])])])},be=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"text-muted text-center mt-2 mb-3"},[e("h2",{staticStyle:{color:"#909399"}},[t._v("忘记密码")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted mb-4"},[e("small",[t._v("Or sign up with credentials")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-email-83"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-hat-3"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text"},[e("i",{staticClass:"ni ni-lock-circle-open"})])])}],_e={name:"register",components:{reCaptcha:ue},data(){return{form:{email_code:"",email:"",password:"",auth_password:""},config:{},show:!0,recaptcha_data:"",visible:!1,count:60}},mounted(){this.getConfig()},methods:{getConfig(){P().then(t=>{this.config=t.data,t.data.is_invite_force?this.invite_text="邀请码(必填)":this.invite_text="邀请码(选填)"})},sendMail(t){if(!this.form.email)return this.$message.warning("请先输入邮箱"),!1;let e=new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$");if(!e.test(this.form.email))return this.$message.warning("邮箱格式不正确"),!1;if(1===this.config.is_recaptcha&&t)return this.visible=!0,!1;const a=60;let s={email:this.form.email};this.recaptcha_data&&(s.recaptcha_data=this.recaptcha_data),N(s).then(t=>{t.data&&(this.$message.success("发送成功"),this.count=a,this.show=!1,this.timer=setInterval(()=>{this.count>0&&this.count<=a?this.count--:(this.show=!0,clearInterval(this.timer),this.timer=null)},1e3))})},onSubmit(){return this.form.email?this.form.password?this.form.auth_password!==this.form.password?(this.$message.warning("两次密码输入不一致"),!1):this.config.is_email_verify&&!this.form.email_code?(this.$message.warning("请输入邮箱验证码"),!1):void z(this.form).then(t=>{t.data&&(this.$message.success("重置成功"),setTimeout(()=>{this.$router.push({name:"login"})},1e3))}):(this.$message.warning("请输入密码"),!1):(this.$message.warning("请先输入邮箱"),!1)},getValidateCode2(t){this.recaptcha_data=t,this.recaptcha_data&&(this.visible=!1,this.sendMail(!1))}}},ye=_e,Ce=Object(o["a"])(ye,ve,be,!1,null,null,null),we=Ce.exports,xe=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("a-input-search",{attrs:{size:"large",placeholder:"请输入关键字"},on:{search:t.searchKey}})],1),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[t.list?t._e():e("a-empty",{staticStyle:{"margin-top":"15%","margin-bottom":"15%"}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无数据 ")])]),e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},t._l(t.list,(function(a,s){return e("div",{key:s,staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header border-0"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v(t._s(s))])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("ul",{staticClass:"list-group list-group-flush list my--3"},t._l(a,(function(a,s){return e("li",{key:s,staticClass:"list-group-item px-0"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-auto"},[e("i",{staticClass:"ni ni-books"})]),e("div",{staticClass:"col ml--2"},[e("h4",{staticClass:"mb-0"},[e("a",{on:{click:function(e){return t.showDrawer(a.id)}}},[t._v(t._s(a.title))])]),e("small",[t._v("更新时间: "+t._s(t._f("formatDate")(a.updated_at)))])]),e("div",{staticClass:"col-auto"},[e("button",{staticClass:"btn btn-sm btn-primary",attrs:{type:"button"},on:{click:function(e){return t.showDrawer(a.id)}}},[t._v("查看详情")])])])])})),0)])])})),0)],1)])],1),e("a-drawer",{attrs:{width:"70%",placement:"right",title:t.knowledge.title,visible:t.visible},on:{close:t.onClose}},[e("div",{staticClass:"markdown-body"},[e("VueMarkdown",{directives:[{name:"highlight",rawName:"v-highlight"}],attrs:{source:t.knowledge.body}})],1)])],1)},ke=[],Se=(a("e4cb"),a("9ce6")),je=a.n(Se),$e={name:"knowledge",components:{VueMarkdown:je.a},data(){return{list:[],knowledge:{},loading:!0,visible:!1,value:"",domain:"",pStyle:{fontSize:"16px",color:"rgba(0,0,0,0.85)",lineHeight:"24px",display:"block",marginBottom:"16px"},pStyle2:{marginBottom:"24px"}}},mounted(){this.getData()},created(){this.domain=window.location.protocol+"//"+window.location.hostname,window.copy=this.copy},methods:{showDrawer(t){dt({language:"zh-CN",id:t}).then(t=>{this.knowledge=t.data,this.visible=!0})},onClose(){this.visible=!1},searchKey(t){this.getData(t)},getData(t){this.loading=!0,dt({language:"zh-CN",value:t}).then(t=>{this.loading=!1,this.list=t.data})},copy:function(t,e){let a=null;if(t){if(a=document.createElement("div"),a.id="tempTarget",a.style.opacity="0",e){let s=document.querySelector("#"+e);a.innerText=s[t]}else a.innerText=t;document.body.appendChild(a)}else a=document.querySelector("#"+e);try{let t=document.createRange();t.selectNode(a),window.getSelection().removeAllRanges(),window.getSelection().addRange(t),document.execCommand("copy"),window.getSelection().removeAllRanges(),this.$message.success("复制成功")}catch(s){this.$message.error("复制失败")}t&&a.parentElement.removeChild(a)}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i}}},De=$e,Te=Object(o["a"])(De,xe,ke,!1,null,"ead19264",null),Oe=Te.exports,Ae=function(){var t=this,e=t._self._c;return e("div",[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("div",{staticClass:"row justify-content-center"})]),e("div",{staticClass:"container-fluid mt--9"},[e("a-spin",{attrs:{spinning:t.loading}},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-10 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("我的订阅")])]),t.sub.plan?e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-8"},[e("strong",[t._v(" "+t._s(t.sub.plan.name)+" ")]),t.sub.expired_at?e("p",[t._v(" 于 "+t._s(t._f("formatDate")(t.sub.expired_at))+" 到期,距离到期还有 "+t._s(t._f("intervalDay")(t.sub.expired_at))+" 天,"+t._s(t.sub.reset_day)+" 日后重置流量 ")]):e("p",[t._v("该订阅长期有效")]),e("base-progress",{attrs:{"show-label":"",type:"primary",height:8,value:Math.ceil((t.sub.u+t.sub.d)/t.sub.transfer_enable*100),label:"已用流量"}}),e("p",[t._v(" 已用 "+t._s(t._f("bytesToSize")(t.sub.u+t.sub.d))+" / 总计 "+t._s(t._f("bytesToSize")(t.sub.transfer_enable))+" ")])],1),e("div",{staticClass:"col-lg-4 text-center",staticStyle:{padding:"4rem"}},[e("base-dropdown2",{attrs:{"title-classes":"btn btn-primary"},scopedSlots:t._u([{key:"title",fn:function(){return[e("i",{staticClass:"ni ni-atom"}),t._v(" 操作 ")]},proxy:!0}],null,!1,2538436264)},[e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id}})}}},[e("i",{staticClass:"ni ni-money-coins"}),t._v(" 续费订阅 ")])]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal3=!0}}},[e("a-icon",{attrs:{type:"reload"}}),t._v(" 重置当月流量 ")],1)]),e("li",[e("a",{staticClass:"dropdown-item",on:{click:function(e){t.modal2=!0}}},[e("i",{staticClass:"ni ni-atom"}),t._v(" 重置订阅信息 ")])])])],1)])]):e("div",{staticClass:"card-body text-center"},[e("a-empty",{attrs:{image:"https://gw.alipayobjects.com/mdn/miniapp_social/afts/img/A*pevERLJC9v0AAAAAAAAAAABjAQAAAQ/original","image-style":{height:"60px"}}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅 ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/plan"})}}},[t._v(" 添加订阅 ")])],1)],1)]),e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("节点状态")])]),e("div",{staticClass:"card-body text-center"},[0===t.serveList.length?e("div",[e("a-empty",[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无数据 ")])])],1):t._e(),t.serveList?e("div",{staticClass:"row"},t._l(t.serveList,(function(a,s){return e("div",{key:s,staticClass:"col-sm-12 col-xl-6 mb-3",staticStyle:{cursor:"pointer"}},[e("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:a.link,expression:"item.link",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copySublink,expression:"copySublink",arg:"success"}],staticClass:"card card-custom cursor_onclick rounded-lg shadow"},[e("div",{staticClass:"card-body pl-4"},[e("ul",{staticClass:"list-unstyled user-details list-unstyled-border list-unstyled-noborder"},[e("li",{staticClass:"media"},[e("img",{staticClass:"mr-3 rounded-circle",attrs:{alt:"image",width:"50",src:`https://cdn.jsdelivr.net/gh/BobCoders/metron-assets@3.0.2/metron/media/flags/${a.flag}.svg`}}),e("div",{staticClass:"media-body"},[e("div",{staticClass:"media-title"},[e("span",{staticClass:"label label-dot label-xl",class:a.last_check_at?"label-success":"label-danger"}),t._v(" "+t._s(a.name)+" ")]),e("div",{staticClass:"text-job text-muted"},t._l(a.tags,(function(a,s){return e("a-tag",{key:s,attrs:{color:"cyan"}},[t._v(" "+t._s(a)+" ")])})),1)]),e("div",{staticClass:"media-items"},[e("div",{staticClass:"media-item"},[e("div",{staticClass:"media-value"},[t._v("x "+t._s(a.rate))]),e("div",{staticClass:"media-label"},[t._v("倍率")])])])])])])])])})),0):t._e()])])])])])],1),e("modal",{attrs:{show:t.modal2,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.resetSublink}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置订阅信息?")]),e("p",[t._v("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。")])])]),e("modal",{attrs:{show:t.modal3,"modal-classes":"modal-dialog-centered",showClose:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h6",{staticClass:"modal-title",attrs:{id:"modal-title-notification2"}},[t._v("提示")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal3=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({name:"订阅详情",params:{id:t.sub.plan_id,cycle:"reset_price"}})}}},[t._v("确定 ")])]},proxy:!0}])},[e("div",{staticClass:"py-3 text-center"},[e("i",{staticClass:"ni ni-bell-55 ni-3x"}),e("h4",{staticClass:"heading mt-4"},[t._v("确定要重置当月流量?")]),e("p",[t._v("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。")])])])],1)},Pe=[],Be={name:"knowledge",components:{},data(){return{serveList:[],loading:!0,modal2:!1,modal3:!1,sub:{},reg:/[^A-Za-z]/}},mounted(){let t=this;F.$on("close",(function(){t.modal3=!1,t.modal2=!1})),t.getData()},methods:{getData(){lt().then(t=>{this.sub=t.data,this.loading=!1}),pt().then(t=>{let e=[],a=["香港","美国","日本","中国","俄罗斯","韩国","英国","新加坡","马来西亚","台湾","加拿大","菲律宾","德国","印度","南非","卢森堡","巴西","意大利","法国","泰国","爱尔兰"];t.data.forEach((function(t){for(let e=0;e-1){t.flag="1x1_zh_cn/"+a[e];break}t.flag="1x1_zh_cn/un"}"json"==typeof t.tags&&obj&&(t.tags=JSON.parse(t.tags)),e.push(t)})),this.serveList=e})},copySublink(){const t=this.$createElement;this.$notification.open({message:"链接复制成功",icon:t("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"})})},resetSublink(){xt().then(t=>{this.modal2=!1,t.data&&this.$message.success("重置订阅连接成功")})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},intervalDay:function(t){let e=Date.parse(new Date)/1e3,a=t-e;return Math.floor(a/86400)},bytesToSize(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toPrecision(4)+" "+a[s]}}},Ne=Be,Ie=(a("74a8"),Object(o["a"])(Ne,Ae,Pe,!1,null,"889ddab4",null)),ze=Ie.exports,Me=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[0===t.list.length?e("a-empty",{staticStyle:{"margin-top":"15%","margin-bottom":"15%"}},[e("span",{attrs:{slot:"description"},slot:"description"},[t._v(" 暂无订阅商品 ")])]):t._l(t.list,(function(a,s){return e("div",{key:s,staticClass:"card card-pricing border-0 text-center mb-4",staticStyle:{"margin-right":"1.5rem"}},[e("div",{staticClass:"card-header bg-transparent"},[e("h2",{staticClass:"text-uppercase ls-1 text-primary py-3 mb-0"},[t._v(t._s(a.name))])]),e("div",{staticClass:"card-body px-lg-7"},[a.month_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.month_price)))]):a.quarter_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.quarter_price)))]):a.half_year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.half_year_price)))]):a.year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.year_price)))]):a.two_year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.two_year_price)))]):a.three_year_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.three_year_price)))]):a.onetime_price?e("div",{staticClass:"display-2"},[t._v(t._s(t._f("money")(a.onetime_price)))]):t._e(),a.month_price?e("span",{staticClass:"text-muted"},[t._v("月付")]):a.quarter_price?e("span",{staticClass:"text-muted"},[t._v("季付")]):a.half_year_price?e("span",{staticClass:"text-muted"},[t._v("半年付")]):a.year_price?e("span",{staticClass:"text-muted"},[t._v("年付")]):a.two_year_price?e("span",{staticClass:"text-muted"},[t._v("两年付")]):a.three_year_price?e("span",{staticClass:"text-muted"},[t._v("三年付")]):a.onetime_price?e("span",{staticClass:"text-muted"},[t._v("一次性")]):t._e(),e("p",{staticStyle:{width:"250px"},domProps:{innerHTML:t._s(a.content)}})]),e("div",{staticClass:"card-footer"},[e("base-button",{staticClass:"mb-3",attrs:{icon:"ni ni-cart",type:"primary"},on:{click:function(e){return t.purchase(a.id)}}},[t._v("立即订阅")])],1)])}))],2)])],1)],1)},Re=[],Le={name:"knowledge",data(){return{list:[],loading:!0}},mounted(){this.getData()},methods:{getData(){ut().then(t=>{this.loading=!1,this.list=t.data})},purchase(t){this.$router.push({name:"订阅详情",params:{id:t}})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},money(t){return"¥"+(t/100).toFixed(2)}}},We=Le,Ee=Object(o["a"])(We,Me,Re,!1,null,"1229a100",null),qe=Ee.exports,Fe=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("配置订阅")])]),e("div",{staticClass:"card-body"},[e("h3",[t._v(t._s(t.data.name))]),e("p",{domProps:{innerHTML:t._s(t.data.content)}})])])]),e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("订单金额")])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6"},[e("a-radio-group",{on:{change:t.changeperiod},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}},[t.data.month_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"month_price"}},[e("h3",[t._v("月付")]),e("span",[t._v(t._s(t._f("money")(t.data.month_price)))])]):t._e(),t.data.quarter_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"quarter_price"}},[e("h3",[t._v("季付")]),e("span",[t._v(t._s(t._f("money")(t.data.quarter_price)))])]):t._e(),t.data.half_year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"half_year_price"}},[e("h3",[t._v("半年付")]),e("span",[t._v(t._s(t._f("money")(t.data.half_year_price)))])]):t._e(),t.data.year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"year_price"}},[e("h3",[t._v("年付")]),e("span",[t._v(t._s(t._f("money")(t.data.year_price)))])]):t._e(),t.data.two_year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"two_year_price"}},[e("h3",[t._v("两年付")]),e("span",[t._v(t._s(t._f("money")(t.data.two_year_price)))])]):t._e(),t.data.three_year_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"three_year_price"}},[e("h3",[t._v("三年付")]),e("span",[t._v(t._s(t._f("money")(t.data.three_year_price)))])]):t._e(),t.data.onetime_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"onetime_price"}},[e("h3",[t._v("一次性")]),e("span",[t._v(t._s(t._f("money")(t.data.onetime_price)))])]):t._e(),t.data.reset_price?e("a-radio-button",{staticClass:"shop-button",attrs:{value:"reset_price"}},[e("h3",[t._v("重置流量包")]),e("span",[t._v(t._s(t._f("money")(t.data.reset_price)))])]):t._e()],1)],1),e("div",{staticClass:"col-lg-6"},[e("a-input-search",{attrs:{placeholder:"输入优惠卷","enter-button":"验证",size:"large",allowClear:!0},on:{search:t.onCheck}},[e("a-icon",{attrs:{slot:"prefix",type:"account-book"},slot:"prefix"})],1),e("div",{staticStyle:{"margin-top":"2rem"}},[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v(t._s(t.data.name)+" x "+t._s(t.period_text))]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.total)))])]),t.discount_price?e("div",[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v("抵扣金额:"+t._s(t._f("money")(t.discount_price)))]),e("hr",{staticClass:"my-3"})]):t._e(),e("div",{staticStyle:{"margin-top":"1rem"}},[e("h2",[t._v("总计:"+t._s(t._f("money")(t.total)))])])],1)])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-icon btn-primary",staticStyle:{float:"right"},attrs:{type:"button"},on:{click:t.onSubmit}},[e("span",{staticClass:"btn-inner--icon"},[e("i",{staticClass:"ni ni-bag-17"})]),e("span",{staticClass:"btn-inner--text"},[t._v("提交订单")])])])])])])],1)],1)},Ve=[],Ye={name:"knowledge",data(){return{data:{},loading:!0,period:"month_price",period_text:"月付",periodList:{month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"重置流量包"},discount_price:0,price:0,total:0,plan_id:0,coupon_code:""}},mounted(){this.plan_id=this.$route.params.id,this.getData(this.plan_id)},methods:{getData(t){ut({id:t}).then(t=>{if(this.loading=!1,this.data=t.data,this.$route.params.period)return this.period=this.$route.params.period,this.period_text=this.periodList[this.period],this.total=t.data[this.period],!1;t.data.month_price?(this.price=t.data.month_price,this.total=t.data.month_price,this.period_text="月付",this.period="month_price"):t.data.quarter_price?(this.price=t.data.quarter_price,this.total=t.data.quarter_price,this.period_text="季付",this.period="quarter_price"):t.data.half_year_price?(this.price=t.data.half_year_price,this.total=t.data.half_year_price,this.period_text="半年付",this.period="half_year_price"):t.data.year_price?(this.price=t.data.year_price,this.total=t.data.year_price,this.period_text="年付",this.period="year_price"):t.data.two_year_price?(this.price=t.data.two_year_price,this.total=t.data.two_year_price,this.period_text="两年付",this.period="two_year_price"):t.data.two_year_price?(this.price=t.data.three_year_price,this.total=t.data.three_year_price,this.period_text="三年付",this.period="three_year_price"):t.data.onetime_price?(this.price=t.data.onetime_price,this.total=t.data.onetime_price,this.period_text="一次性",this.period="onetime_price"):t.data.reset_price&&(this.price=t.data.reset_price,this.total=t.data.reset_price,this.period_text="重置流量包",this.period="reset_price")})},onCheck(t){gt({code:t,plan_id:this.plan_id}).then(t=>{if(this.coupon_code=t.data.code,1===t.data.type)this.total=(this.price-t.data.value).toFixed(2),this.discount_price=-t.data.value;else{let e=parseFloat((100-t.data.value)/100);this.total=(this.price*e).toFixed(2),this.discount_price=(this.total-this.price).toFixed(2)}})},onSubmit(){let t={period:this.period,plan_id:this.plan_id};this.coupon_code&&(t["coupon_code"]=this.coupon_code),vt(t).then(t=>{t.data&&this.$router.push({name:"订单详情",params:{id:t.data}})})},changeperiod(){this.period_text=this.periodList[this.period],this.total=this.data[this.period],this.price=this.data[this.period]}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},money(t){return"¥"+(t/100).toFixed(2)}}},He=Ye,Ue=(a("c38a"),Object(o["a"])(He,Fe,Ve,!1,null,"0c1eb0b3",null)),Qe=Ue.exports,Je=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h3",{staticClass:"mb-0"},[t._v("商品详情")])]),e("div",{staticClass:"card-body"},[e("h3",[t._v(t._s(t.data.plan.name))]),e("p",[t._v("流量:"+t._s(t.data.plan.transfer_enable)+" GB")]),e("p",{domProps:{innerHTML:t._s(t.data.plan.content)}})])])]),t.showResult?t._e():e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-8"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"col-4 text-right"},[e("base-button",{attrs:{icon:"ni ni-fat-remove",type:"warning"},on:{click:function(e){return t.cancelOrder(t.data.trade_no)}}},[t._v("取消订单")])],1)])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-6"},[e("div",[e("span",{staticStyle:{"font-size":"large"}},[t._v(t._s(t.data.plan.name)+" x "+t._s(t.periodList[t.data.period]))]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.data.plan[t.data.period])))])]),t.data.discount_amount?e("div",[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v("抵扣金额")]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.data.discount_amount)))])]):t._e(),t.data.balance_amount?e("div",[e("hr",{staticClass:"my-3"}),e("span",{staticStyle:{"font-size":"large"}},[t._v("抵扣金额")]),e("span",{staticStyle:{"font-size":"large",float:"right"}},[t._v(t._s(t._f("money")(t.data.balance_amount)))])]):t._e(),e("div",{staticStyle:{"margin-top":"1rem"}},[e("hr",{staticClass:"my-3"}),e("h2",{staticStyle:{"font-size":"large",float:"right"}},[t._v("总计:"+t._s(t._f("money")(t.data.total_amount)))])])]),e("div",{staticClass:"col-xl-6"},[t.payment_method?e("p",[t._v("支付方式:")]):t._e(),e("a-radio-group",{model:{value:t.payment,callback:function(e){t.payment=e},expression:"payment"}},t._l(t.payment_method,(function(a,s){return e("a-radio-button",{key:s,staticClass:"shop-button",attrs:{value:a.id}},[e("h3",[t._v(t._s(a.name))])])})),1)],1)])]),e("div",{staticClass:"card-footer"},[e("button",{staticClass:"btn btn-icon btn-primary",staticStyle:{float:"right"},attrs:{type:"button"},on:{click:t.pay}},[e("span",{staticClass:"btn-inner--icon"},[e("i",{staticClass:"ni ni-bag-17"})]),e("span",{staticClass:"btn-inner--text"},[t._v("立即支付")])])])])]),1===t.showResult?e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"card-body text-center"},[e("img",{staticStyle:{margin:"1rem 0"},attrs:{src:a("d0a5"),width:"84"}}),e("p",{staticStyle:{"font-size":"2rem","font-weight":"400"}},[t._v("开通中")]),e("p",[t._v("订单系统正在进行处理,请稍等1-3分钟。")])])])]):t._e(),2===t.showResult?e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"card-body text-center"},[2===t.showResult?e("a-result",{attrs:{status:"warning",title:"已取消","sub-title":"订单由于超时支付已被取消。"}}):t._e()],1)])]):t._e(),3===t.showResult?e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"card mb-4 col-sm-12 col-xl-8 mb-3"},[e("div",{staticClass:"card-header"},[e("h5",{staticClass:"h3"},[t._v("订单详情")]),e("h6",{staticClass:"text-uppercase text-muted ls-1 mb-1"},[t._v(" # "+t._s(t.data.trade_no))])]),e("div",{staticClass:"card-body text-center"},[e("a-result",{attrs:{status:"success",title:"已完成","sub-title":"订单已支付并开通。"}})],1)])]):t._e()])],1),e("modal",{attrs:{show:t.showQrCode},scopedSlots:t._u([{key:"header",fn:function(){return[e("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("请扫描二维码支付")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{attrs:{type:"secondary"},on:{click:function(e){t.showQrCode=!1}}},[t._v("关闭")])]},proxy:!0}])},[e("div",{ref:"qrCodeDiv",staticClass:"qrCode",attrs:{id:"qrCode"}}),e("div",{staticClass:"text-center mt-3"},[t._v(" 支付金额:"+t._s(t._f("money")(t.data.total_amount))+" ")])])],1)},Ze=[],Ke=a("d044"),Ge=a.n(Ke),Xe={name:"knowledge",data(){return{data:{},loading:!0,showQrCode:!1,period:"month_price",period_text:"月付",periodList:{month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性"},discount_price:0,price:0,total:0,order_id:0,coupon_code:"",payment:"",showResult:0,payment_method:[]}},mounted(){let t=this;F.$on("close",(function(){t.showQrCode=!1})),t.order_id=this.$route.params.id,t.getData(this.order_id),window.clearInterval()},methods:{getData(t){let e=this;mt({trade_no:t}).then(t=>{if(e.loading=!1,e.data=t.data,e.showResult=t.data.status,0===t.data.status){var a=this.order_id;window.setInterval((function(){a&&ft({trade_no:a}).then(t=>{t.data&&(e.showResult=t.data,window.clearInterval())})}),3e3,a)}}),ht().then(t=>{this.payment_method=t.data,t.data&&(this.payment=t.data[0]["id"])})},pay(){bt({trade_no:this.order_id,method:this.payment}).then(t=>{t.data&&1===t.type?(window.clearInterval(),window.location.href=t.data):t.data&&0===t.type?(this.showQrCode=!0,document.getElementById("qrCode").innerHTML="",new Ge.a(this.$refs.qrCodeDiv,{text:t.data,width:250,height:250,colorDark:"#333333",colorLight:"#ffffff",correctLevel:Ge.a.CorrectLevel.L})):t.data&&-1===t.type&&(this.showResult=!0,window.clearInterval())})},cancelOrder(t){zt({trade_no:t}).then(t=>{t.data&&(this.$message.success("取消成功"),this.getData())})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();return i=i<10?"0"+i:i,a+"-"+s+"-"+i},money(t){return"¥"+(t/100).toFixed(2)}}},ta=Xe,ea=(a("afde"),Object(o["a"])(ta,Je,Ze,!1,null,null,null)),aa=ea.exports,sa=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-9 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("订单列表")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns,"data-source":t.list,loading:t.loading},scopedSlots:t._u([{key:"plan",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(a.name))])])}},{key:"period",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t.periodList[a]))])])}},{key:"total_amount",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("money")(a))+" ")])}},{key:"status",fn:function(a){return e("span",{staticClass:"badge badge-dot"},[e("i",{class:t.statusLabel[a]}),t._v(" "+t._s(t.statusText[a])+" ")])}},{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"action",fn:function(a,s){return e("span",{},[e("div",{staticClass:"editable-row-operations"},[2!==s.status?e("a",{staticClass:"text-primary",on:{click:function(e){return t.$router.push({name:"订单详情",params:{id:s.trade_no}})}}},[t._v("查看详情")]):t._e(),e("br"),0===s.status?e("a",{staticClass:"text-primary mt-4",on:{click:function(e){return t.cancelOrder(s.trade_no)}}},[t._v("取消订单")]):t._e()])])}}])})],1)])])])])],1)],1)},ia=[],na={name:"knowledge",components:{},data(){return{list:[],columns:[{title:"订单号",dataIndex:"trade_no",scopedSlots:{customRender:"trade_no"}},{title:"购买商品",dataIndex:"plan",scopedSlots:{customRender:"plan"}},{title:"周期",dataIndex:"period",scopedSlots:{customRender:"period"}},{title:"订单金额",dataIndex:"total_amount",scopedSlots:{customRender:"total_amount"}},{title:"订单状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"创建时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}},{title:"操作",dataIndex:"action",fixed:"right",scopedSlots:{customRender:"action"}}],loading:!0,periodList:{month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"重置流量包"},statusText:["待支付","开通中","已取消","已完成","已折抵"],statusLabel:["bg-default","bg-primary","bg-danger","bg-info","bg-success","bg-warning"]}},mounted(){this.getData()},methods:{getData(){_t().then(t=>{this.loading=!1,this.list=t.data})},cancelOrder(t){zt({trade_no:t}).then(t=>{t.data&&(this.$message.success("取消成功"),this.getData())})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return"¥"+(t/100).toFixed(2)}}},oa=na,ra=(a("f160"),Object(o["a"])(oa,sa,ia,!1,null,null,null)),la=ra.exports,ca=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"用户",type:"gradient-red","sub-title":t.stat[0]>0?t.stat[0]:"0",icon:"ni ni-circle-08"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("已注册用户数")])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"比例",type:"gradient-orange","sub-title":t.stat[3]+"%",icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("佣金比例")])]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"确认中佣金",type:"gradient-green","sub-title":t._f("money")(t.stat[2]),icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v(" 确认中的佣金 "),e("a-tooltip",{attrs:{placement:"bottom"}},[e("template",{slot:"title"},[t._v(" 佣金将会在确认后会到达你的佣金账户。 ")]),e("a-icon",{attrs:{type:"question-circle"}})],2)],1)]},proxy:!0}])})],1),e("div",{staticClass:"col-xl-3 col-lg-6"},[e("stats-card",{staticClass:"mb-4 mb-xl-0",attrs:{title:"可用佣金",type:"gradient-info","sub-title":t._f("money")(t.stat[4]),icon:"ni ni-money-coins"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("span",{staticClass:"text-nowrap"},[t._v("可用佣金")])]},proxy:!0}])})],1)])]),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-8"},[e("h5",{staticClass:"h3 mb-0"},[t._v("邀请码管理")])]),e("div",{staticClass:"col-4 text-right"},[e("a",{staticClass:"btn btn-primary",on:{click:t.createInviteCode}},[t._v("生成邀请码")])])])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns_1,"data-source":t.code,pagination:!1,loading:t.loading},scopedSlots:t._u([{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"action",fn:function(a,s){return e("span",{},[e("div",{staticClass:"editable-row-operations"},[e("span",[e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.domain+"/#/register?code="+s.code,expression:"domain + '/#/register?code=' + record.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.copyInviteUrl,expression:"copyInviteUrl",arg:"success"}],staticClass:"text-primary"},[t._v(" 复制链接 ")])])])])}}])})],1)])])]),e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("邀请明细")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns_2,"data-source":t.list,pagination:!1,loading:t.loading},scopedSlots:t._u([{key:"trade_no",fn:function(a){return e("span",{},[t._v(" "+t._s(a)+" ")])}},{key:"get_amount",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("money")(a))+" ")])}},{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}}])})],1)])])])])],1)],1)},da=[],pa={name:"knowledge",data(){return{stat:[],code:[],loading:!0,list:[],config:{},domain:"",status:["待确认","发放中","已发送","无效"],columns_1:[{title:"邀请码",dataIndex:"code",scopedSlots:{customRender:"code"}},{title:"创建时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],columns_2:[{title:"#",dataIndex:"id",scopedSlots:{customRender:"id"}},{title:"订单号",dataIndex:"trade_no",scopedSlots:{customRender:"trade_no"}},{title:"佣金",dataIndex:"get_amount",scopedSlots:{customRender:"get_amount"}},{title:"完成时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}}]}},mounted(){this.domain=window.location.protocol+"//"+window.location.hostname,this.config=JSON.parse(localStorage.getItem("config")),this.getData()},methods:{getData(){yt().then(t=>{this.loading=!1,this.stat=t.data.stat,this.code=t.data.codes}),wt().then(t=>{this.list=t.data})},copyInviteUrl(){const t=this.$createElement;this.$notification.open({message:"复制成功",icon:t("a-icon",{attrs:{type:"smile"},style:"color: #108ee9"})})},createInviteCode(){Ct().then(t=>{t.data&&(this.$message.success("生成邀请码成功"),window.location.reload())})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return"¥"+(t/100).toFixed(2)}}},ua=pa,ma=Object(o["a"])(ua,ca,da,!1,null,"7a5aede6",null),ha=ma.exports,fa=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("我的钱包")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-6"},[e("a-statistic",{attrs:{title:"余额 (CNY)",precision:2,value:t._f("money")(t.user.balance),valueStyle:"font-size: 3rem"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-xl-6"},[e("a-statistic",{attrs:{title:"可用佣金 (CNY)",precision:2,value:t._f("money")(t.user.commission_balance)}})],1),e("div",{staticClass:"col-xl-6"},[t.config.withdraw_close?t._e():e("base-button",{attrs:{type:"info",outline:"",icon:"ni ni-money-coins"},on:{click:function(e){t.modal2=!0}}},[t._v("佣金提现 ")]),e("base-button",{attrs:{type:"primary",outline:"",icon:"ni ni-bag-17"},on:{click:function(e){t.modal1=!0}}},[t._v("佣金划转")])],1)])])]),e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("通知")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"mt-3"},[e("strong",[t._v("到期邮件提醒:")]),e("a-switch",{staticClass:"float-right",attrs:{"default-checked":""},on:{change:function(e){return t.onChange("remind_expire")}},model:{value:t.notice.remind_expire,callback:function(e){t.$set(t.notice,"remind_expire",e)},expression:"notice.remind_expire"}})],1),e("div",{staticClass:"mt-3"},[e("strong",[t._v("流量邮件提醒:")]),e("a-switch",{staticClass:"float-right",attrs:{"default-checked":""},on:{change:function(e){return t.onChange("remind_traffic")}},model:{value:t.notice.remind_traffic,callback:function(e){t.$set(t.notice,"remind_traffic",e)},expression:"notice.remind_traffic"}})],1),t.config.is_telegram?e("div",{staticClass:"mt-3"},[e("hr"),e("strong",[t._v("绑定Telegram")]),e("base-button",{staticClass:"float-right",attrs:{type:"primary",size:"sm"},on:{click:t.bindTelegram}},[t._v("立即绑定")])],1):t._e()])])]),e("div",{staticClass:"col-lg-6 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("修改密码")])]),e("div",{staticClass:"col text-right"},[e("base-button",{attrs:{type:"primary"},on:{click:t.savePassword}},[t._v("保存")])],1)])]),e("div",{staticClass:"card-body"},[e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 旧密码 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.old_password,expression:"form.old_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",type:"password",placeholder:"请输入旧密码"},domProps:{value:t.form.old_password},on:{input:function(e){e.target.composing||t.$set(t.form,"old_password",e.target.value)}}})]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 新密码 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.new_password,expression:"form.new_password"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",type:"password",placeholder:"请输入新密码"},domProps:{value:t.form.new_password},on:{input:function(e){e.target.composing||t.$set(t.form,"new_password",e.target.value)}}})]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 确认新密码 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.new_password_2,expression:"form.new_password_2"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",type:"password",placeholder:"请输入确认新密码"},domProps:{value:t.form.new_password_2},on:{input:function(e){e.target.composing||t.$set(t.form,"new_password_2",e.target.value)}}})])])])])])])],1),e("modal",{attrs:{show:t.modal1,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("推广佣金划转至余额")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal1=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.onSubmit1}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("base-alert",{attrs:{type:"primary"}},[e("span",{staticClass:"alert-inner--icon"},[e("i",{staticClass:"ni ni-like-2"})]),e("span",{staticClass:"alert-inner--text ml-2"},[t._v("划转后的余额仅用于消费使用")])]),e("div",[e("base-input",{attrs:{label:"当前推广佣金余额",value:t._f("money")(t.user.commission_balance),placeholder:"Default input",disabled:""}}),e("div",{staticClass:"form-group has-label",attrs:{"data-v-352d3bff":""}},[e("label",{staticClass:"form-control-label"},[t._v(" 划转金额 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.transfer_amount,expression:"transfer_amount"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入需要划转到余额的金额"},domProps:{value:t.transfer_amount},on:{input:function(e){e.target.composing||(t.transfer_amount=e.target.value)}}})])],1)],1)]),e("modal",{attrs:{show:t.modal2,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title"},[t._v("申请提现")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.onSubmit2}},[t._v("确定")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("div",[e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-control-label"},[t._v("提现方式")]),e("div",{staticClass:"has-label"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.withdraw_method,expression:"withdraw_method"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.withdraw_method=e.target.multiple?a:a[0]}}},t._l(t.withdraw_methods,(function(a,s){return e("option",{key:s,domProps:{value:a}},[t._v(t._s(a))])})),0)])]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 提现账号 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.withdraw_account,expression:"withdraw_account"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入需要划转到余额的金额"},domProps:{value:t.withdraw_account},on:{input:function(e){e.target.composing||(t.withdraw_account=e.target.value)}}})])])])]),e("modal",{attrs:{show:t.modal3,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title"},[t._v("绑定Telegram")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{attrs:{type:"primary"},on:{click:function(e){t.modal3=!1}}},[t._v("知道了")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("a-timeline",[e("a-timeline-item",[e("h3",[t._v("第一步")]),e("p",[t._v("打开Telegram搜索@"+t._s(t.tg_name))])]),e("a-timeline-item",[e("h3",[t._v("第二步")]),e("p",[t._v("向机器人发送 /bind "+t._s(t.sub.subscribe_url)+" 命令")])])],1)],1)])],1)},ga=[],va={name:"profile",components:{},data(){return{current:0,user:{},config:{},form:{old_password:"",new_password:"",new_password_2:""},notice:{remind_expire:1,remind_traffic:1},loading:!0,modal1:!1,modal2:!1,modal3:!1,transfer_amount:0,withdraw_methods:[],withdraw_method:"",withdraw_account:"",tg_name:"",sub:{}}},mounted(){this.getData()},methods:{getData(){ot().then(t=>{this.loading=!1,this.user=t.data,this.notice={remind_expire:t.data.remind_expire,remind_traffic:t.data.remind_traffic}}),kt().then(t=>{this.config=t.data,t.data.withdraw_methods&&(this.withdraw_methods=t.data.withdraw_methods,this.withdraw_method=t.data.withdraw_methods[0])}),lt().then(t=>{this.sub=t.data})},onSubmit1(){let t=100*this.transfer_amount;St({transfer_amount:t}).then(t=>{t.data&&(this.$message.success("划转成功"),this.modal1=!1,this.getData())})},onSubmit2(){return this.withdraw_method?this.withdraw_account?void jt({withdraw_method:this.withdraw_method,withdraw_account:this.withdraw_account}).then(t=>{t.data&&(this.$message.success("提现成功"),this.modal2=!1,this.getData())}):(this.$message.warning("请输入提现账号"),!1):(this.$message.warning("请选择提现方式"),!1)},savePassword(){return this.form.old_password?this.form.new_password?this.form.new_password!==this.form.new_password_2?(this.$notification.warning({message:"两次密码输入不一致"}),!1):void $t(this.form).then(t=>{t.data&&this.$message.success("修改成功")}):(this.$notification.warning({message:"请输入新密码"}),!1):(this.$notification.warning({message:"请输入旧密码"}),!1)},onChange(t){let e={};e="remind_expire"===t?{remind_expire:this.notice.remind_expire?1:0}:{remind_traffic:this.notice.remind_traffic?1:0},Dt(e).then(t=>{t.data&&this.$message.success("修改成功")})},bindTelegram(){this.modal3=!0,Tt().then(t=>{t.data&&(this.tg_name=t.data.username,this.modal3=!0)})},onChangeCurrent(t){this.current=t}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return t/100}}},ba=va,_a=Object(o["a"])(ba,fa,ga,!1,null,"50204db1",null),ya=_a.exports,Ca=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("工单列表")])]),e("div",{staticClass:"col text-right"},[e("base-button",{attrs:{icon:"ni ni-air-baloon",type:"primary"},on:{click:function(e){t.modal1=!0}}},[t._v("新建工单")])],1)])]),e("div",{staticClass:"card-body"},[e("a-table",{attrs:{columns:t.columns,"data-source":t.list,loading:t.loading},scopedSlots:t._u([{key:"level",fn:function(a){return e("span",{},[0===a?e("badge",{attrs:{rounded:"",type:"primary"}},[t._v("低级")]):1===a?e("badge",{attrs:{rounded:"",type:"warning"}},[t._v("中级")]):2===a?e("badge",{attrs:{rounded:"",type:"danger"}},[t._v("高级")]):t._e()],1)}},{key:"status",fn:function(a){return e("span",{staticClass:"badge badge-dot"},[e("i",{class:t.statusLabel[a]}),t._v(" "+t._s(t.statusText[a])+" ")])}},{key:"created_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"updated_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}},{key:"action",fn:function(a,s){return e("span",{},[e("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return t.showTicket(s.id)}}},[t._v("查看")]),0===s.status?e("a-divider",{attrs:{type:"vertical"}}):t._e(),0===s.status?e("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return t.closeTicket(s.id)}}},[t._v("关闭")]):t._e()],1)}}])})],1)])])])])],1),e("modal",{attrs:{show:t.modal1,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title",attrs:{id:"modal-title-notification"}},[t._v("新建工单")])]},proxy:!0},{key:"footer",fn:function(){return[e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal1=!1}}},[t._v(" 取消 ")]),e("base-button",{attrs:{type:"primary"},on:{click:t.onSubmit1}},[t._v("提交")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 主题 ")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.subject,expression:"form.subject"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入工单主题"},domProps:{value:t.form.subject},on:{input:function(e){e.target.composing||t.$set(t.form,"subject",e.target.value)}}})]),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-control-label"},[t._v("工单等级")]),e("div",{staticClass:"has-label"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.level,expression:"form.level"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.form,"level",e.target.multiple?a:a[0])}}},[e("option",{attrs:{value:"0"}},[t._v("低级")]),e("option",{attrs:{value:"1"}},[t._v("中级")]),e("option",{attrs:{value:"2"}},[t._v("高级")])])])]),e("div",{staticClass:"form-group has-label"},[e("label",{staticClass:"form-control-label"},[t._v(" 消息 ")]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.message,expression:"form.message"}],staticClass:"form-control",attrs:{id:"exampleFormControlTextarea3",rows:"3",placeholder:"请描述你遇到的问题"},domProps:{value:t.form.message},on:{input:function(e){e.target.composing||t.$set(t.form,"message",e.target.value)}}})])])]),e("modal",{attrs:{show:t.modal2,showClose:!1,"body-classes":"p-0","modal-classes":"modal-dialog-centered"},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"modal-title"},[t._v("工单回复")])]},proxy:!0},{key:"footer",fn:function(){return[e("input",{directives:[{name:"model",rawName:"v-model",value:t.reply_text,expression:"reply_text"}],staticClass:"form-control",attrs:{"aria-describedby":"addon-right addon-left",placeholder:"请输入内容回复工单..."},domProps:{value:t.reply_text},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.replyTicket.apply(null,arguments)},input:function(e){e.target.composing||(t.reply_text=e.target.value)}}}),e("base-button",{staticClass:"ml-auto",attrs:{type:"link"},on:{click:function(e){t.modal2=!1}}},[t._v(" 关闭 ")])]},proxy:!0}])},[e("div",{staticClass:"p-3"},[e("a-timeline",t._l(t.messageList,(function(a,s){return e("a-timeline-item",{key:s,attrs:{color:s%2===0||0===s?"green":"blue"}},[t._v(t._s(a.message)+" ")])})),1)],1)])],1)},wa=[],xa={name:"knowledge",components:{},data(){return{list:[],messageList:[],columns:[{title:"#",dataIndex:"id",scopedSlots:{customRender:"id"}},{title:"主题",dataIndex:"subject",scopedSlots:{customRender:"subject"}},{title:"工单级别",dataIndex:"level",scopedSlots:{customRender:"level"}},{title:"工单状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"创建时间",dataIndex:"created_at",scopedSlots:{customRender:"created_at"}},{title:"最后回复",dataIndex:"updated_at",scopedSlots:{customRender:"updated_at"}},{title:"操作",dataIndex:"action",fixed:"right",width:110,scopedSlots:{customRender:"action"}}],modal1:!1,modal2:!1,loading:!0,form:{subject:"",level:0,message:""},reply_text:"",reply_id:"",statusText:["待回复","已关闭","已取消","已完成","已折抵"],statusLabel:["bg-danger","bg-success","bg-danger","bg-info","bg-success","bg-warning"]}},mounted(){this.getData()},methods:{getData(){Ot().then(t=>{this.loading=!1,this.list=t.data})},onSubmit1(){return this.form.subject?this.form.message?void At(this.form).then(t=>{t.data&&(this.modal1=!1,this.$message.success("提交成功,请等待~"))}):(this.$notification.warning({message:"请输入消息主题内容"}),!1):(this.$notification.warning({message:"请输入主题名称"}),!1)},closeTicket(t){Pt({id:t}).then(t=>{t.data&&(this.$message.success("关闭成功~"),this.getData())})},replyTicket(){Bt({id:this.reply_id,message:this.reply_text}).then(t=>{t.data&&(this.$message.success("回复成功~"),this.getData())})},showTicket(t){this.reply_id=t,this.modal2=!0,Nt({id:t}).then(t=>{t.data&&(this.messageList=t.data.message)})}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},money(t){return"¥"+(t/100).toFixed(2)}}},ka=xa,Sa=(a("fc36"),Object(o["a"])(ka,Ca,wa,!1,null,null,null)),ja=Sa.exports,$a=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},[e("base-header",{staticClass:"pb-6 pb-8 pt-5 pt-md-8",attrs:{type:"gradient-primary"}}),e("div",{staticClass:"container-fluid mt--7"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-lg-8 card-wrapper ct-example"},[e("div",{staticClass:"card",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"card-header bg-transparent"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("h3",{staticClass:"mb-0"},[t._v("订单列表")])]),e("div",{staticClass:"col text-right"})])]),e("div",{staticClass:"card-body"},[e("base-alert",{attrs:{type:"primary"}},[e("strong",[t._v("流量明细仅保留近一个月数据以供查询。")])]),e("a-table",{attrs:{columns:t.columns,"data-source":t.list,pagination:!1,loading:t.loading2},scopedSlots:t._u([{key:"u",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t._f("bytesToSize")(a)))])])}},{key:"d",fn:function(a){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t._f("bytesToSize")(a)))])])}},{key:"total",fn:function(a,s){return e("span",{},[e("span",{staticClass:"text-primary"},[t._v(t._s(t._f("bytesToSize")(parseInt(s.u)+parseInt(s.d))))])])}},{key:"server_rate",fn:function(a){return e("span",{},[e("a-tag",[t._v(t._s(a+" x"))])],1)}},{key:"record_at",fn:function(a){return e("span",{},[t._v(" "+t._s(t._f("formatDate")(a))+" ")])}}])}),e("div",{staticClass:"mt-3"},[e("a-pagination",{staticStyle:{float:"right"},attrs:{"default-current":t.param.current,total:t.param.total},on:{change:t.currentPage}})],1)],1)])])])])],1)],1)},Da=[],Ta={name:"knowledge",components:{},data(){return{list:[],columns:[{title:"记录时间",dataIndex:"record_at",scopedSlots:{customRender:"record_at"}},{title:"实际上行",dataIndex:"u",scopedSlots:{customRender:"u"}},{title:"实际下行",dataIndex:"d",scopedSlots:{customRender:"d"}},{title:"倍率",dataIndex:"server_rate",scopedSlots:{customRender:"server_rate"}},{title:"合计",dataIndex:"total",scopedSlots:{customRender:"total"}}],loading:!0,loading2:!0,param:{current:1,pageSize:10,total:0}}},mounted(){this.getData()},methods:{getData(){this.loading2=!0,It(this.param).then(t=>{this.loading2=!1,this.loading=!1,this.list=t.data,this.param.total=t.total})},currentPage(t,e){this.param.current=t,this.param.pageSize=e,this.getData()},handleSizeChange(){this.getData()}},filters:{formatDate:function(t){if(!t)return!1;10===t.toString().length&&(t*=1e3);let e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1;s=s<10?"0"+s:s;let i=e.getDate();i=i<10?"0"+i:i;let n=e.getHours();n=n<10?"0"+n:n;let o=e.getMinutes();o=o<10?"0"+o:o;let r=e.getSeconds();return r=r<10?"0"+r:r,a+"-"+s+"-"+i+" "+n+":"+o+":"+r},bytesToSize(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,s)).toPrecision(4)+" "+a[s]}}},Oa=Ta,Aa=Object(o["a"])(Oa,$a,Da,!1,null,"69b51d7c",null),Pa=Aa.exports;s["a"].use(d["a"]);const Ba=[{path:"/",redirect:"login",component:Ht,children:[{path:"/login",name:"用户登录",components:{default:ie}},{path:"/register",name:"用户注册",components:{default:ge}},{path:"/forgetPassword",name:"忘记密码",components:{default:we}}]},{path:"/",redirect:"/dashboard",component:Wt,children:[{path:"/dashboard",name:"首页",components:{default:Gt}},{path:"/knowledge",name:"使用文档",components:{default:Oe}},{path:"/subscribe",name:"节点列表",components:{default:ze}},{path:"/plan",name:"购买订阅",components:{default:qe}},{path:"/plan/:id",name:"订阅详情",props:!0,components:{default:Qe}},{path:"/order/:id",name:"订单详情",props:!0,components:{default:aa}},{path:"/order",name:"订单列表",components:{default:la}},{path:"/invite",name:"我的邀请",components:{default:ha}},{path:"/profile",name:"个人中心",components:{default:ya}},{path:"/ticket",name:"工单列表",components:{default:ja}},{path:"/traffic",name:"流量明细",components:{default:Pa}}]}],Na=new d["a"]({linkActiveClass:"active",routes:Ba}),Ia="undefined"!=localStorage.getItem("config")?JSON.parse(localStorage.getItem("config")):[];Na.beforeEach((t,e,a)=>{document.title=Ia?`${t.name} | ${window.APP_NAME}`:""+t.name,a({query:t.query})}),Na.afterEach((t,e,a)=>{document.querySelector("body").setAttribute("style","overflow: auto !important;")});var za=Na,Ma=a("f23d"),Ra=(a("202f"),function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"badge",class:["badge-"+t.type,t.rounded?"badge-pill":"",t.circle&&"badge-circle"]},[t._t("default",(function(){return[t.icon?e("i",{class:t.icon}):t._e()]}))],2)}),La=[],Wa={name:"badge",props:{tag:{type:String,default:"span",description:"Html tag to use for the badge."},rounded:{type:Boolean,default:!1,description:"Whether badge is of pill type"},circle:{type:Boolean,default:!1,description:"Whether badge is circle"},icon:{type:String,default:"",description:"Icon name. Will be overwritten by slot if slot is used"},type:{type:String,default:"default",description:"Badge type (primary|info|danger|default|warning|success)"}}},Ea=Wa,qa=Object(o["a"])(Ea,Ra,La,!1,null,null,null),Fa=qa.exports,Va=function(){var t=this,e=t._self._c;return t.visible?e("div",{staticClass:"alert",class:["alert-"+t.type,{"alert-dismissible":t.dismissible}],attrs:{role:"alert"}},[t.dismissible?[t._t("default",(function(){return[t.icon?e("span",{staticClass:"alert-inner--icon"},[e("i",{class:t.icon})]):t._e(),t.$slots.text?e("span",{staticClass:"alert-inner--text"},[t._t("text")],2):t._e()]})),t._t("dismiss-icon",(function(){return[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":"Close"},on:{click:t.dismissAlert}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]}))]:t._t("default",(function(){return[t.icon?e("span",{staticClass:"alert-inner--icon"},[e("i",{class:t.icon})]):t._e(),t.$slots.text?e("span",{staticClass:"alert-inner--text"},[t._t("text")],2):t._e()]}))],2):t._e()},Ya=[],Ha={name:"base-alert",props:{type:{type:String,default:"default",description:"Alert type"},icon:{type:String,default:"",description:"Alert icon. Will be overwritten by default slot"},dismissible:{type:Boolean,default:!1,description:"Whether alert is closes when clicking"}},data(){return{visible:!0}},methods:{dismissAlert(){this.visible=!1}}},Ua=Ha,Qa=Object(o["a"])(Ua,Va,Ya,!1,null,null,null),Ja=Qa.exports,Za=function(){var t=this,e=t._self._c;return e(t.tag,{tag:"component",staticClass:"btn",class:t.classes,attrs:{type:"button"===t.tag?t.nativeType:""},on:{click:t.handleClick}},[t.$slots.icon||t.icon&&t.$slots.default?e("span",{staticClass:"btn-inner--icon"},[t._t("icon",(function(){return[e("i",{class:t.icon})]}))],2):t._e(),t.$slots.default?t._e():e("i",{class:t.icon}),t.$slots.icon||t.icon&&t.$slots.default?e("span",{staticClass:"btn-inner--text"},[t._t("default",(function(){return[t._v(" "+t._s(t.text)+" ")]}))],2):t._e(),t.$slots.icon||t.icon?t._e():t._t("default")],2)},Ka=[],Ga={name:"base-button",props:{tag:{type:String,default:"button",description:"Button tag (default -> button)"},type:{type:String,default:"default",description:"Button type (e,g primary, danger etc)"},size:{type:String,default:"",description:"Button size lg|sm"},textColor:{type:String,default:"",description:"Button text color (e.g primary, danger etc)"},nativeType:{type:String,default:"button",description:"Button native type (e.g submit,button etc)"},icon:{type:String,default:"",description:"Button icon"},text:{type:String,default:"",description:"Button text in case not provided via default slot"},outline:{type:Boolean,default:!1,description:"Whether button style is outline"},rounded:{type:Boolean,default:!1,description:"Whether button style is rounded"},iconOnly:{type:Boolean,default:!1,description:"Whether button contains only an icon"},block:{type:Boolean,default:!1,description:"Whether button is of block type"}},computed:{classes(){let t=[{"btn-block":this.block},{"rounded-circle":this.rounded},{"btn-icon-only":this.iconOnly},{["text-"+this.textColor]:this.textColor},{"btn-icon":this.icon||this.$slots.icon},this.type&&!this.outline?"btn-"+this.type:"",this.outline?"btn-outline-"+this.type:""];return this.size&&t.push("btn-"+this.size),t}},methods:{handleClick(t){this.$emit("click",t)}}},Xa=Ga,ts=Object(o["a"])(Xa,Za,Ka,!1,null,null,null),es=ts.exports,as=function(){var t=this,e=t._self._c;return e("div",{staticClass:"custom-control custom-checkbox",class:{disabled:t.disabled,"form-check-inline":t.inline}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"custom-control-input",attrs:{id:t.cbId,type:"checkbox",disabled:t.disabled},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{change:function(e){var a=t.model,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=null,o=t._i(a,n);s.checked?o<0&&(t.model=a.concat([n])):o>-1&&(t.model=a.slice(0,o).concat(a.slice(o+1)))}else t.model=i}}}),e("label",{staticClass:"custom-control-label",attrs:{for:t.cbId}},[t._t("default",(function(){return[t.inline?e("span",[t._v(" ")]):t._e()]}))],2)])},ss=[];function is(t=7){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";let a="";for(let s=0;s0?this.pageCount:this.total>0?Math.ceil(this.total/this.perPage):1},pagesToDisplay(){return this.totalPages>0&&this.totalPages=this.pagesToDisplay){const t=Math.floor(this.pagesToDisplay/2),e=t+this.value;return e>this.totalPages?this.totalPages-this.pagesToDisplay+1:this.value-t}return 1},maxPage(){if(this.value>=this.pagesToDisplay){const t=Math.floor(this.pagesToDisplay/2),e=t+this.value;return e1&&this.$emit("input",this.value-1)}},watch:{perPage(){this.$emit("input",1)},total(){this.$emit("input",1)}}},Qs=Us,Js=Object(o["a"])(Qs,Ys,Hs,!1,null,null,null),Zs=Js.exports,Ks=function(){var t=this,e=t._self._c;return e("div",{staticClass:"progress-wrapper"},[t.$slots.label||t.label||t.$slots.percentage||t.showPercentage?e("div",{staticClass:"progress-info"},[t.$slots.label||t.label?e("div",{staticClass:"progress-label"},[e("span",[t._t("label",(function(){return[t._v(" "+t._s(t.label)+" ")]}))],2)]):t._e(),t.$slots.percentage||t.showPercentage?e("div",{staticClass:"progress-percentage"},[t._t("percentage",(function(){return[t._v(" "+t._s(t.value)+" % ")]}))],2):t._e()]):t._e(),e("div",{staticClass:"progress",style:`height: ${t.height}px`},[e("div",{staticClass:"progress-bar",class:t.computedClasses,style:`width: ${t.value}%;`,attrs:{role:"progressbar","aria-valuenow":t.value,"aria-valuemin":"0","aria-valuemax":"100"}})])])},Gs=[],Xs={name:"base-progress",props:{striped:{type:Boolean,description:"Whether progress is striped"},animated:{type:Boolean,description:"Whether progress is animated (works only with `striped` prop together)"},showPercentage:{type:Boolean,default:!0,description:"Whether progress bar should show percentage value"},height:{type:Number,default:3,description:"Progress line height"},label:{type:String,default:"",description:"Progress label"},type:{type:String,default:"default",description:"Progress type (e.g danger, primary etc)"},value:{type:Number,default:0,validator:t=>t>=0&&t<=100,description:"Progress value"}},computed:{computedClasses(){return[{"progress-bar-striped":this.striped},{"progress-bar-animated":this.animated},{["bg-"+this.type]:this.type}]}}},ti=Xs,ei=Object(o["a"])(ti,Ks,Gs,!1,null,null,null),ai=ei.exports,si=function(){var t=this,e=t._self._c;return e("label",{staticClass:"custom-toggle"},[e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{change:function(e){var a=t.model,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=null,o=t._i(a,n);s.checked?o<0&&(t.model=a.concat([n])):o>-1&&(t.model=a.slice(0,o).concat(a.slice(o+1)))}else t.model=i}}},"input",t.$attrs,!1)),e("span",{staticClass:"custom-toggle-slider rounded-circle"})])},ii=[],ni={name:"base-switch",inheritAttrs:!1,props:{value:{type:Boolean,default:!1,description:"Switch value"}},computed:{model:{get(){return this.value},set(t){this.$emit("input",t)}}}},oi=ni,ri=Object(o["a"])(oi,si,ii,!1,null,null,null),li=ri.exports,ci=function(){var t=this,e=t._self._c;return e("div",{staticClass:"custom-control custom-radio",class:[t.inlineClass,{disabled:t.disabled}]},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"custom-control-input",attrs:{id:t.cbId,type:"radio",disabled:t.disabled},domProps:{value:t.name,checked:t._q(t.model,t.name)},on:{change:function(e){t.model=t.name}}}),e("label",{staticClass:"custom-control-label",attrs:{for:t.cbId}},[t._t("default")],2)])},di=[],pi={name:"base-radio",props:{name:{type:[String,Number],description:"Radio label"},disabled:{type:Boolean,description:"Whether radio is disabled"},value:{type:[String,Boolean],description:"Radio value"},inline:{type:Boolean,description:"Whether radio is inline"}},data(){return{cbId:""}},computed:{model:{get(){return this.value},set(t){this.$emit("input",t)}},inlineClass(){return this.inline?"form-check-inline":""}},mounted(){this.cbId=is()}},ui=pi,mi=Object(o["a"])(ui,ci,di,!1,null,null,null),hi=mi.exports,fi=function(){var t=this,e=t._self._c;return e("table",{staticClass:"table tablesorter",class:t.tableClass},[e("thead",{class:t.theadClasses},[e("tr",[t._t("columns",(function(){return t._l(t.columns,(function(a){return e("th",{key:a},[t._v(t._s(a))])}))}),{columns:t.columns})],2)]),e("tbody",{class:t.tbodyClasses},t._l(t.data,(function(a,s){return e("tr",{key:s},[t._t("default",(function(){return t._l(t.columns,(function(s){return e("td",{key:s},[t.hasValue(a,s)?[t._v(" "+t._s(t.itemValue(a,s))+" ")]:t._e()],2)}))}),{item:a})],2)})),0)])},gi=[],vi={name:"base-table",props:{columns:{type:Array,default:()=>[],description:"Table columns"},data:{type:Array,default:()=>[],description:"Table data"},type:{type:String,default:"",description:"Whether table is striped or hover type"},theadClasses:{type:String,default:"",description:" css classes"},tbodyClasses:{type:String,default:"",description:" css classes"}},computed:{tableClass(){return this.type&&"table-"+this.type},colsWithValue(){return t=>this.columns.filter(e=>this.hasValue(t,e))}},methods:{hasValue(t,e){return"undefined"!==t[e.toLowerCase()]},itemValue(t,e){return t[e.toLowerCase()]}}},bi=vi,_i=Object(o["a"])(bi,fi,gi,!1,null,null,null),yi=_i.exports,Ci=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card",class:[{"card-lift--hover":t.hover},{shadow:t.shadow},{["shadow-"+t.shadowSize]:t.shadowSize},{["bg-gradient-"+t.gradient]:t.gradient},{["bg-"+t.type]:t.type}]},[t._t("image"),t.$slots.header?e("div",{staticClass:"card-header",class:t.headerClasses},[t._t("header")],2):t._e(),t.noBody?t._e():e("div",{staticClass:"card-body",class:t.bodyClasses},[t._t("default")],2),t.noBody?t._t("default"):t._e(),t.$slots.footer?e("div",{staticClass:"card-footer",class:t.footerClasses},[t._t("footer")],2):t._e()],2)},wi=[],xi={name:"card",props:{type:{type:String,description:"Card type"},gradient:{type:String,description:"Card background gradient type (warning,danger etc)"},hover:{type:Boolean,description:"Whether card should move on hover"},shadow:{type:Boolean,description:"Whether card has shadow"},shadowSize:{type:String,description:"Card shadow size"},noBody:{type:Boolean,default:!1,description:"Whether card should have wrapper body class"},bodyClasses:{type:[String,Object,Array],description:"Card body css classes"},headerClasses:{type:[String,Object,Array],description:"Card header css classes"},footerClasses:{type:[String,Object,Array],description:"Card footer css classes"}}},ki=xi,Si=Object(o["a"])(ki,Ci,wi,!1,null,null,null),ji=Si.exports,$i=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"modal fade",class:[{"show d-block":t.show},{"d-none":!t.show},{"modal-mini":"mini"===t.type}],attrs:{tabindex:"-1",role:"dialog","aria-hidden":!t.show},on:{mousedown:function(e){return e.target!==e.currentTarget?null:t.closeModal.apply(null,arguments)}}},[e("div",{staticClass:"modal-dialog modal-dialog-centered",class:[{"modal-notice":"notice"===t.type,["modal-"+t.size]:t.size},t.modalClasses]},[e("div",{staticClass:"modal-content",class:[t.gradient?"bg-gradient-"+t.gradient:"",t.modalContentClasses]},[t.$slots.header?e("div",{staticClass:"modal-header",class:[t.headerClasses]},[t._t("header"),t._t("close-button",(function(){return[t.showClose?e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"},on:{click:t.closeModal}},[e("span",{attrs:{"aria-hidden":!t.show}},[t._v("×")])]):t._e()]}))],2):t._e(),e("div",{staticClass:"modal-body",class:t.bodyClasses},[t._t("default")],2),t.$slots.footer?e("div",{staticClass:"modal-footer",class:t.footerClasses},[t._t("footer")],2):t._e()])])])},Di=[],Ti={name:"modal",props:{show:Boolean,showClose:{type:Boolean,default:!0},type:{type:String,default:"",validator(t){let e=["","notice","mini"];return-1!==e.indexOf(t)},description:'Modal type (notice|mini|"") '},modalClasses:{type:[Object,String],description:"Modal dialog css classes"},size:{type:String,description:"Modal size",validator(t){let e=["","sm","lg"];return-1!==e.indexOf(t)}},modalContentClasses:{type:[Object,String],description:"Modal dialog content css classes"},gradient:{type:String,description:"Modal gradient type (danger, primary etc)"},headerClasses:{type:[Object,String],description:"Modal Header css classes"},bodyClasses:{type:[Object,String],description:"Modal Body css classes"},footerClasses:{type:[Object,String],description:"Modal Footer css classes"},animationDuration:{type:Number,default:500,description:"Modal transition duration"}},methods:{closeModal(){this.$emit("update:show",!1),F.$emit("close")}},watch:{show(t){let e=document.body.classList;t?e.add("modal-open"):e.remove("modal-open")}}},Oi=Ti,Ai=(a("7fda"),Object(o["a"])(Oi,$i,Di,!1,null,null,null)),Pi=Ai.exports,Bi=function(){var t=this,e=t._self._c;return e("card",{staticClass:"card-stats",attrs:{"show-footer-line":!0}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[t._t("default",(function(){return[t.title?e("h5",{staticClass:"card-title text-uppercase text-muted mb-0"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.subTitle?e("span",{staticClass:"h2 font-weight-bold mb-0"},[t._v(t._s(t.subTitle))]):t._e()]}))],2),t.$slots.icon||t.icon?e("div",{staticClass:"col-auto"},[t._t("icon",(function(){return[e("div",{staticClass:"icon icon-shape text-white rounded-circle shadow",class:["bg-"+t.type,t.iconClasses]},[e("i",{class:t.icon})])]}))],2):t._e()]),e("p",{staticClass:"mt-3 mb-0 text-sm"},[t._t("footer")],2)])},Ni=[],Ii={name:"stats-card",components:{Card:ji},props:{type:{type:String,default:"primary"},icon:String,title:String,subTitle:[String,Number,Boolean],iconClasses:[String,Array]}},zi=Ii,Mi=Object(o["a"])(zi,Bi,Ni,!1,null,null,null),Ri=Mi.exports,Li=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"tab-pane fade",class:{"active show":t.active},attrs:{id:t.id||t.label,"aria-expanded":t.active}},[t._t("default")],2)},Wi=[],Ei={name:"tab-pane",props:["label","id","title","icon"],inject:["addTab","removeTab"],data(){return{active:!1}},mounted(){this.addTab(this)},unmounted(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.removeTab(this)}},qi=Ei,Fi=Object(o["a"])(qi,Li,Wi,!1,null,null,null),Vi=Fi.exports,Yi=function(){var t=this,e=t._self._c;return e(t.layoutComponent,{tag:"component",scopedSlots:t._u([{key:"nav",fn:function(){return[e("div",{staticClass:"nav-wrapper"},[e("ul",{staticClass:"nav",class:[t.type?"nav-pills-"+t.type:"",t.pills?"nav-pills":"nav-tabs",{"nav-pills-icons":t.icons},{"nav-fill":t.fill},{"nav-pills-circle":t.circle},{"justify-content-center":t.centered},t.tabNavClasses],attrs:{role:"tablist"}},t._l(t.tabs,(function(a){return e("li",{key:a.id||a.title,staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:a.active},attrs:{"data-toggle":"tab",role:"tab",href:"#"+(a.id||a.title),"aria-selected":a.active},on:{click:function(e){return e.preventDefault(),t.activateTab(a)}}},[a.icon?e("i",{class:a.icon}):t._e(),e("tab-item-content",{attrs:{tab:a}})],1)])})),0)])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"tab-content",class:[t.tabContentClasses]},[t._t("default",null,null,t.slotData)],2)]},proxy:!0}],null,!0)})},Hi=[],Ui=function(){var t=this,e=t._self._c;return e("div",[t._t("nav"),t._t("content")],2)},Qi=[],Ji={},Zi=Object(o["a"])(Ji,Ui,Qi,!1,null,null,null),Ki=Zi.exports,Gi=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"nav-tabs-navigation"},[e("div",{staticClass:"nav-tabs-wrapper"},[t._t("nav")],2)]),e("div",[t._t("content")],2)])},Xi=[],tn={name:"tabs-layout"},en=tn,an=Object(o["a"])(en,Gi,Xi,!1,null,null,null),sn=an.exports,nn={name:"tabs",components:{TabsLayout:sn,PillsLayout:Ki,TabItemContent:{props:["tab"],render(){return s["a"].h("div",[this.tab.$slots.title||this.tab.title])}}},props:{type:{type:String,default:"",validator:t=>{let e=["","primary","info","success","warning","danger"];return-1!==e.indexOf(t)},description:"Tabs type (primary|info|danger|default|warning|success)"},pills:{type:Boolean,default:!0,description:"Whether tabs are pills"},circle:{type:Boolean,default:!1,description:"Whether tabs are circle"},fill:{type:Boolean,default:!0,description:"Whether to fill each tab"},activeTab:{type:String,default:"",description:"Default active tab name"},tabNavWrapperClasses:{type:[String,Object],default:"",description:"Tab Nav wrapper (div) css classes"},tabNavClasses:{type:[String,Object],default:"",description:"Tab Nav (ul) css classes"},tabContentClasses:{type:[String,Object],default:"",description:"Tab content css classes"},icons:{type:Boolean,description:"Whether tabs should be of icon type (small no text)"},centered:{type:Boolean,description:"Whether tabs are centered"},value:{type:String,description:"Initial value (active tab)"}},provide(){return{addTab:this.addTab,removeTab:this.removeTab}},data(){return{tabs:[],activeTabIndex:0}},computed:{layoutComponent(){return this.pills?"pills-layout":"tabs-layout"},slotData(){return{activeTabIndex:this.activeTabIndex,tabs:this.tabs}}},methods:{findAndActivateTab(t){let e=this.tabs.find(e=>e.title===t);e&&this.activateTab(e)},activateTab(t){this.handleClick&&this.handleClick(t),this.deactivateTabs(),t.active=!0,this.activeTabIndex=this.tabs.findIndex(t=>t.active)},deactivateTabs(){this.tabs.forEach(t=>{t.active=!1})},addTab(t){this.activeTab===t.name&&(t.active=!0),this.tabs.push(t)},removeTab(t){const e=this.tabs,a=e.indexOf(t);a>-1&&e.splice(a,1)}},mounted(){this.$nextTick(()=>{this.value?this.findAndActivateTab(this.value):this.tabs.length>0&&this.activateTab(this.tabs[0])})},watch:{value(t){this.findAndActivateTab(t)}}},on=nn,rn=Object(o["a"])(on,Yi,Hi,!1,null,null,null),ln=rn.exports;const cn={install(t){t.component("badge",Fa),t.component("base-alert",Ja),t.component("base-button",es),t.component("base-checkbox",ls),t.component("base-dropdown",hs),t.component("base-dropdown2",ys),t.component("base-header",js),t.component("base-input",Ps),t.component("base-nav",Vs),t.component("base-pagination",Zs),t.component("base-progress",ai),t.component("base-switch",li),t.component("base-radio",hi),t.component("base-table",yi),t.component("card",ji),t.component("modal",Pi),t.component("stats-card",Ri),t.component("tab-pane",Vi),t.component("tabs",ln)}};var dn=cn,pn={bind:function(t,e,a){t.clickOutsideEvent=function(s){t==s.target||t.contains(s.target)||a.context[e.expression](s)},document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent)}};const un={install(t){t.directive("click-outside",pn)}};var mn=un,hn=(a("4d1c"),a("797e"),a("a4d4"),{install(t){t.use(dn),t.use(mn)}}),fn=a("4eb5"),gn=a.n(fn),vn=a("1487"),bn=a.n(vn);s["a"].directive("highlight",(function(t){const e=t.querySelectorAll("pre code");e.forEach(t=>{bn.a.highlightBlock(t)})})),s["a"].use(gn.a),s["a"].config.productionTip=!1,s["a"].use(Ma["a"]),s["a"].use(hn),new s["a"]({router:za,store:O,render:t=>t(c)}).$mount("#app")},"74a8":function(t,e,a){"use strict";a("07b5")},"797e":function(t,e,a){},"7ae2":function(t,e,a){},"7fda":function(t,e,a){"use strict";a("bbb6")},a4d4:function(t,e,a){},aa2b:function(t,e,a){"use strict";a("1ed2")},ac88:function(t,e,a){"use strict";a("bc65")},afde:function(t,e,a){"use strict";a("2f82")},bbb6:function(t,e,a){},bc65:function(t,e,a){},c38a:function(t,e,a){"use strict";a("cc00")},c5b5:function(t,e,a){},cb76:function(t,e,a){},cc00:function(t,e,a){},d06d:function(t,e,a){},d0a5:function(t,e,a){t.exports=a.p+"theme/Bob-Theme-Argon/img/pay-success.5f5f21d8.svg"},d0b6:function(t,e,a){"use strict";a("00fb")},f160:function(t,e,a){"use strict";a("d06d")},fc36:function(t,e,a){"use strict";a("7ae2")}}); \ No newline at end of file diff --git a/js/chunk-vendors.dac02230.js b/js/chunk-vendors.dac02230.js old mode 100644 new mode 100755