diff --git a/README.md b/README.md index d1870de..f5d81ca 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,8 @@ Blog

-最新版预览地址: http://107.148.243.178:8000 +正式版DEMO演示: http://107.148.243.178:8000 -内测BUG反馈QQ群:853791822 ## 适用场景: 适用于各种电商、优惠卷、论坛邀请码、充值卡、激活码、注册码、腾讯爱奇艺积分CDK等,支持手工和全自动发货,还有类似1688的分层批发模式。 @@ -48,7 +47,6 @@ ## 部署方法: - ### 1. 正式环境【线上部署】 [如何使用宝塔面板Docker管理器一键部署佰阅发卡](https://baiyue.one/archives/1703.html) @@ -71,7 +69,7 @@ docker run --name kmfaka -itd -p 8000:8000 baiyuetribe/kamifaka:latest docker rm -f kmfaka && docker rmi -f baiyuetribe/kamifaka:latest ``` -### 3. 开发环境 +### 3. 开发环境【如需修改或自定义,可查看该文档】 开发环境:[开发环境安装教程](开发环境安装教程.md) @@ -82,13 +80,12 @@ docker rm -f kmfaka && docker rmi -f baiyuetribe/kamifaka:latest ![](https://cdn.jsdelivr.net/gh/Baiyuetribe/yyycode@dev/img/20/yyycode_comPc后台端演示.gif) ## 当前开发计划: -发布第一个正式版-->撰写帮助文档 +撰写帮助文档 当前任务:写文档 - ### 项目依赖 - 前端UI:Stisla --> https://github.com/stisla/stisla - 前端交互程序:vue3.0 --> https://github.com/vuejs/vue-next @@ -98,8 +95,11 @@ docker rm -f kmfaka && docker rmi -f baiyuetribe/kamifaka:latest ## 如何参与该开源项目? [查看可参与的任务](查看可参与的任务.md) + 内测BUG反馈QQ群:853791822 +官方帮助文档:[https://kmfaka.baklib.com](https://kmfaka.baklib.com) + ## License 本程序使用MIT协议,您可以免费使用,复制或修改软件,但是请保留底部作者信息和License许可声明。 diff --git a/dist/index.html b/dist/index.html index 89c91ab..85eb018 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dist/static/css/styles.d6b0b283.css b/dist/static/css/styles.fecb7033.css similarity index 100% rename from dist/static/css/styles.d6b0b283.css rename to dist/static/css/styles.fecb7033.css diff --git a/dist/static/css/styles.d6b0b283.css.br b/dist/static/css/styles.fecb7033.css.br similarity index 100% rename from dist/static/css/styles.d6b0b283.css.br rename to dist/static/css/styles.fecb7033.css.br diff --git a/dist/static/css/styles.d6b0b283.css.gz b/dist/static/css/styles.fecb7033.css.gz similarity index 100% rename from dist/static/css/styles.d6b0b283.css.gz rename to dist/static/css/styles.fecb7033.css.gz diff --git a/dist/static/js/app.17f63b6d.js b/dist/static/js/app.17f63b6d.js new file mode 100644 index 0000000..36a7e58 --- /dev/null +++ b/dist/static/js/app.17f63b6d.js @@ -0,0 +1 @@ +!function(_){function e(e){for(var r,t,i=e[0],l=e[1],s=e[2],d=0,c=[];d .dropdown-menu").slideUp(500,(function(){return update_sidebar_nicescroll(),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu li.active").removeClass("active"),1==e?(_.parent().removeClass("active"),_.parent().find("> .dropdown-menu").slideUp(500,(function(){return update_sidebar_nicescroll(),!1}))):(_.parent().addClass("active"),_.parent().find("> .dropdown-menu").slideDown(500,(function(){return update_sidebar_nicescroll(),!1}))),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu li.active > .dropdown-menu").slideDown(500,(function(){return update_sidebar_nicescroll(),!1})))};sidebar_dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()("#top-5-scroll").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()("#top-5-scroll").css({height:315}).niceScroll(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-content").css({minHeight:jquery__WEBPACK_IMPORTED_MODULE_7___default()(window).outerHeight()-108}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".nav-collapse-toggle").click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).parent().find(".navbar-nav").toggleClass("show"),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(document).on("click",(function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".nav-collapse .navbar-nav").removeClass("show")}));var toggle_sidebar_mini=function(_){var e=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body");_?(e.addClass("sidebar-mini"),e.removeClass("sidebar-show"),sidebar_nicescroll.remove(),sidebar_nicescroll=null,jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.find("> .dropdown-menu").length?(_.find("> .dropdown-menu").hide(),_.find("> .dropdown-menu").prepend('")):(_.find("> a").attr("data-toggle","tooltip"),_.find("> a").attr("data-original-title",_.find("> a").text()),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='tooltip']").tooltip({placement:"right"}))}))):(e.removeClass("sidebar-mini"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").css({overflow:"hidden"}),setTimeout((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").niceScroll(sidebar_nicescroll_opts),sidebar_nicescroll=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").getNiceScroll()}),500),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > ul .dropdown-title").remove(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > a").removeAttr("data-toggle"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > a").removeAttr("data-original-title"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > a").removeAttr("title"))};jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='sidebar']").click((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body");return jquery__WEBPACK_IMPORTED_MODULE_7___default()(window).outerWidth()<=1024?(_.removeClass("search-show search-gone"),_.hasClass("sidebar-gone")?(_.removeClass("sidebar-gone"),_.addClass("sidebar-show")):(_.addClass("sidebar-gone"),_.removeClass("sidebar-show")),update_sidebar_nicescroll()):(_.removeClass("search-show search-gone"),_.hasClass("sidebar-mini")?toggle_sidebar_mini(!1):toggle_sidebar_mini(!0)),!1}));var toggleLayout=function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(window),e=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").attr("class")||"",a=e.trim().length>0?e.split(" "):"";if(a.length>0&&a.forEach((function(_){-1!=_.indexOf("layout-")&&(now_layout_class=_)})),_.outerWidth()<=1024){if(jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").hasClass("sidebar-mini")&&(toggle_sidebar_mini(!1),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").niceScroll(sidebar_nicescroll_opts),sidebar_nicescroll=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").getNiceScroll()),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass("sidebar-gone"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("layout-2 layout-3 sidebar-mini sidebar-show"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").off("click touchend").on("click touchend",(function(_){(jquery__WEBPACK_IMPORTED_MODULE_7___default()(_.target).hasClass("sidebar-show")||jquery__WEBPACK_IMPORTED_MODULE_7___default()(_.target).hasClass("search-show"))&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("sidebar-show"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass("sidebar-gone"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("search-show"),update_sidebar_nicescroll())})),update_sidebar_nicescroll(),"layout-3"==now_layout_class){var r=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-secondary").attr("class"),t=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-secondary");t.attr("data-nav-classes",r),t.removeAttr("class"),t.addClass("main-sidebar");var n=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar");n.find(".container").addClass("sidebar-wrapper").removeClass("container"),n.find(".navbar-nav").addClass("sidebar-menu").removeClass("navbar-nav"),n.find(".sidebar-menu .nav-item.dropdown.show a").click(),n.find(".sidebar-brand").remove(),n.find(".sidebar-menu").before(jquery__WEBPACK_IMPORTED_MODULE_7___default()("
",{class:"sidebar-brand"}).append(jquery__WEBPACK_IMPORTED_MODULE_7___default()("",{href:jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-brand").attr("href")}).html(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-brand").html()))),setTimeout((function(){sidebar_nicescroll=n.niceScroll(sidebar_nicescroll_opts),sidebar_nicescroll=n.getNiceScroll()}),700),sidebar_dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-wrapper").removeClass("container")}}else{jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("sidebar-gone sidebar-show"),now_layout_class&&jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass(now_layout_class);var o=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").attr("data-nav-classes"),i=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar");if("layout-3"==now_layout_class&&i.hasClass("main-sidebar")){i.find(".sidebar-menu li a.has-dropdown").off("click"),i.find(".sidebar-brand").remove(),i.removeAttr("class"),i.addClass(o);var l=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-secondary");l.find(".sidebar-wrapper").addClass("container").removeClass("sidebar-wrapper"),l.find(".sidebar-menu").addClass("navbar-nav").removeClass("sidebar-menu"),l.find(".dropdown-menu").hide(),l.removeAttr("style"),l.removeAttr("tabindex"),l.removeAttr("data-nav-classes"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-wrapper").addClass("container")}else"layout-2"==now_layout_class?jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass("layout-2"):update_sidebar_nicescroll()}};toggleLayout(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(window).resize(toggleLayout),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='search']").click((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body");_.hasClass("search-gone")?(_.addClass("search-gone"),_.removeClass("search-show")):(_.removeClass("search-gone"),_.addClass("search-show"))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='tooltip']").tooltip(),jquery__WEBPACK_IMPORTED_MODULE_7___default()('[data-toggle="popover"]').popover({container:"body"}),jquery__WEBPACK_IMPORTED_MODULE_7___default()().select2&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".select2").select2(),jquery__WEBPACK_IMPORTED_MODULE_7___default()().selectric&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".selectric").selectric({disableOnMobile:!1,nativeOnMobile:!1}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".notification-toggle").dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".notification-toggle").parent().on("shown.bs.dropdown",(function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".dropdown-list-icons").niceScroll({cursoropacitymin:.3,cursoropacitymax:.8,cursorwidth:7})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".message-toggle").dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".message-toggle").parent().on("shown.bs.dropdown",(function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".dropdown-list-message").niceScroll({cursoropacitymin:.3,cursoropacitymax:.8,cursorwidth:7})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").length&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").niceScroll({cursoropacitymin:.3,cursoropacitymax:.8}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").getNiceScroll(0).doScrollTop(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").height())),jquery__WEBPACK_IMPORTED_MODULE_7___default()().summernote&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".summernote").summernote({dialogsInBody:!0,minHeight:250}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".summernote-simple").summernote({dialogsInBody:!0,minHeight:150,toolbar:[["style",["bold","italic","underline","clear"]],["font",["strikethrough"]],["para",["paragraph"]]]})),window.CodeMirror&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".codeeditor").each((function(){window.CodeMirror.fromTextArea(this,{lineNumbers:!0,theme:"duotone-dark",mode:"javascript",height:200}).setSize("100%",200)})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".follow-btn, .following-btn").each((function(){var me=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this),follow_text="Follow",unfollow_text="Following";me.click((function(){return me.hasClass("following-btn")?(me.removeClass("btn-danger"),me.removeClass("following-btn"),me.addClass("btn-primary"),me.html(follow_text),eval(me.data("unfollow-action"))):(me.removeClass("btn-primary"),me.addClass("btn-danger"),me.addClass("following-btn"),me.html(unfollow_text),eval(me.data("follow-action"))),!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-dismiss]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this),e=_.data("dismiss");_.click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).fadeOut((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).remove()})),!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-collapse]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this),e=_.data("collapse");_.click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).collapse("toggle"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).on("shown.bs.collapse",(function(e){e.stopPropagation(),_.html('')})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).on("hidden.bs.collapse",(function(e){e.stopPropagation(),_.html('')})),!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".gallery .gallery-item").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.attr("href",_.data("image")),_.attr("title",_.data("title")),_.parent().hasClass("gallery-fw")&&(_.css({height:_.parent().data("item-height")}),_.find("div").css({lineHeight:_.parent().data("item-height")+"px"})),_.css({backgroundImage:'url("'+_.data("image")+'")'})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()().Chocolat&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".gallery").Chocolat({className:"gallery",imageSelector:".gallery-item"}),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-background]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.css({backgroundImage:"url("+_.data("background")+")"})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-tab]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.click((function(){if(!_.hasClass("active")){var e=jquery__WEBPACK_IMPORTED_MODULE_7___default()('[data-tab-group="'+_.data("tab")+'"].active'),a=jquery__WEBPACK_IMPORTED_MODULE_7___default()(_.attr("href"));jquery__WEBPACK_IMPORTED_MODULE_7___default()('[data-tab="'+_.data("tab")+'"]').removeClass("active"),_.addClass("active"),a.addClass("active"),e.removeClass("active")}return!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".needs-validation").submit((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);!1===_[0].checkValidity()&&(event.preventDefault(),event.stopPropagation()),_.addClass("was-validated")})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".alert-dismissible").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.find(".close").click((function(){_.alert("close")}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-crop-image]").each((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).css({overflow:"hidden",position:"relative",height:jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("crop-image")})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle-slide]").click((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("toggle-slide");return jquery__WEBPACK_IMPORTED_MODULE_7___default()(_).slideToggle(),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-dismiss=modal]").click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).closest(".modal").modal("hide"),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-width]").each((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).css({width:jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("width")})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-height]").each((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).css({height:jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("height")})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chocolat-parent").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()().Chocolat&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chocolat-parent").Chocolat(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".sortable-card").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()().sortable&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".sortable-card").sortable({handle:".card-header",opacity:.8,tolerance:"pointer"}),jquery__WEBPACK_IMPORTED_MODULE_7___default()().daterangepicker&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datepicker").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datepicker").daterangepicker({locale:{format:"YYYY-MM-DD"},singleDatePicker:!0}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datetimepicker").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datetimepicker").daterangepicker({locale:{format:"YYYY-MM-DD hh:mm"},singleDatePicker:!0,timePicker:!0,timePicker24Hour:!0}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".daterange").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".daterange").daterangepicker({locale:{format:"YYYY-MM-DD"},drops:"down",opens:"right"})),jquery__WEBPACK_IMPORTED_MODULE_7___default()().timepicker&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".timepicker").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".timepicker").timepicker({icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}})}))},"56d7":function(_,e,a){"use strict";a.r(e),a("e260"),a("e6cf"),a("cca6"),a("a79d");var r=a("7a23"),t=(a("ab8b"),a("6672"),a("8ae5"),a("3e48"),a("4bde"),a("38c8"),a("6c42")),n=(a("da96"),a("45fc"),a("d3b7"),a("6c02")),o=[{path:"",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"7557"))},children:[{path:"",name:"home",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"c2e5"))}},{path:":id/detail",name:"detail",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"637f"))}},{path:":id/pay",name:"pay",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"4b5d"))}},{path:"search",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"16ee"))}},{path:"contact",component:function(){return a.e("manifest").then(a.bind(null,"487d"))}},{path:"about",component:function(){return a.e("manifest").then(a.bind(null,"ff59"))}}]},{path:"/login",name:"login",meta:{title:"Login"},component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"5c1a"))}},{path:"/admin",component:function(){return a.e("manifest").then(a.bind(null,"b8bf"))},meta:{requiresAuth:!0},children:[{path:"",name:"admin",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"5ace"))}},{path:"classfily",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"225a"))}},{path:"shop",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"3bc9"))}},{path:"card",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"5de8"))}},{path:"orderlist",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"9bf9"))}},{path:"smtp",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"92d9"))}},{path:"sms",component:function(){return a.e("manifest").then(a.bind(null,"9dee"))}},{path:"payment",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"22b6"))}},{path:"password",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"624c"))}},{path:"notice",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"b432"))}},{path:"system",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"9dd4"))}},{path:"images",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"4d95"))}},{path:"backup",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"b26c"))}},{path:"edit",name:"edit",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"3965"))}}]}],i=new n.a({history:Object(n.b)(),routes:o});i.beforeEach((function(_,e,a){if(_.matched.some((function(_){return _.meta.requiresAuth}))){if(!localStorage.getItem("access_token"))return a({name:"login"});a()}else a()}));var l=i;var s={render:function(_,e,a,t,n,o){var i=Object(r.C)("router-view");return Object(r.u)(),Object(r.f)(r.b,{name:"fade"},{default:Object(r.P)((function(){return[Object(r.j)(i)]})),_:1})}};console.log("%c欢迎使用:KAMIFAKA","background: rgba(252,234,187,1);background: -moz-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%,rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -webkit-gradient(left top, right top, color-stop(0%, rgba(252,234,187,1)), color-stop(12%, rgba(175,250,77,1)), color-stop(28%, rgba(0,247,49,1)), color-stop(39%, rgba(0,210,247,1)), color-stop(51%, rgba(0,189,247,1)), color-stop(64%, rgba(133,108,217,1)), color-stop(78%, rgba(177,0,247,1)), color-stop(87%, rgba(247,0,189,1)), color-stop(100%, rgba(245,22,52,1)));background: -webkit-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -o-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -ms-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: linear-gradient(to right, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#f51634', GradientType=1 );font-size:3em"),console.log(" 当前版本:V1.0\n 如果项目给您创造了价值,欢迎点赞Star或Fork:https://github.com/Baiyuetribe/kamiFaka\n"),Object(r.e)(s).use(l).use(t.a).mount("#app")}}); \ No newline at end of file diff --git a/dist/static/js/app.17f63b6d.js.br b/dist/static/js/app.17f63b6d.js.br new file mode 100644 index 0000000..6add8b4 Binary files /dev/null and b/dist/static/js/app.17f63b6d.js.br differ diff --git a/dist/static/js/app.17f63b6d.js.gz b/dist/static/js/app.17f63b6d.js.gz new file mode 100644 index 0000000..3db7d18 Binary files /dev/null and b/dist/static/js/app.17f63b6d.js.gz differ diff --git a/dist/static/js/app.7d6f03c8.js b/dist/static/js/app.7d6f03c8.js deleted file mode 100644 index ec4902b..0000000 --- a/dist/static/js/app.7d6f03c8.js +++ /dev/null @@ -1 +0,0 @@ -!function(_){function e(e){for(var t,r,i=e[0],l=e[1],s=e[2],d=0,c=[];d .dropdown-menu").slideUp(500,(function(){return update_sidebar_nicescroll(),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu li.active").removeClass("active"),1==e?(_.parent().removeClass("active"),_.parent().find("> .dropdown-menu").slideUp(500,(function(){return update_sidebar_nicescroll(),!1}))):(_.parent().addClass("active"),_.parent().find("> .dropdown-menu").slideDown(500,(function(){return update_sidebar_nicescroll(),!1}))),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu li.active > .dropdown-menu").slideDown(500,(function(){return update_sidebar_nicescroll(),!1})))};sidebar_dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()("#top-5-scroll").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()("#top-5-scroll").css({height:315}).niceScroll(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-content").css({minHeight:jquery__WEBPACK_IMPORTED_MODULE_7___default()(window).outerHeight()-108}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".nav-collapse-toggle").click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).parent().find(".navbar-nav").toggleClass("show"),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(document).on("click",(function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".nav-collapse .navbar-nav").removeClass("show")}));var toggle_sidebar_mini=function(_){var e=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body");_?(e.addClass("sidebar-mini"),e.removeClass("sidebar-show"),sidebar_nicescroll.remove(),sidebar_nicescroll=null,jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.find("> .dropdown-menu").length?(_.find("> .dropdown-menu").hide(),_.find("> .dropdown-menu").prepend('")):(_.find("> a").attr("data-toggle","tooltip"),_.find("> a").attr("data-original-title",_.find("> a").text()),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='tooltip']").tooltip({placement:"right"}))}))):(e.removeClass("sidebar-mini"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").css({overflow:"hidden"}),setTimeout((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").niceScroll(sidebar_nicescroll_opts),sidebar_nicescroll=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").getNiceScroll()}),500),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > ul .dropdown-title").remove(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > a").removeAttr("data-toggle"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > a").removeAttr("data-original-title"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar .sidebar-menu > li > a").removeAttr("title"))};jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='sidebar']").click((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body");return jquery__WEBPACK_IMPORTED_MODULE_7___default()(window).outerWidth()<=1024?(_.removeClass("search-show search-gone"),_.hasClass("sidebar-gone")?(_.removeClass("sidebar-gone"),_.addClass("sidebar-show")):(_.addClass("sidebar-gone"),_.removeClass("sidebar-show")),update_sidebar_nicescroll()):(_.removeClass("search-show search-gone"),_.hasClass("sidebar-mini")?toggle_sidebar_mini(!1):toggle_sidebar_mini(!0)),!1}));var toggleLayout=function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(window),e=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").attr("class")||"",a=e.trim().length>0?e.split(" "):"";if(a.length>0&&a.forEach((function(_){-1!=_.indexOf("layout-")&&(now_layout_class=_)})),_.outerWidth()<=1024){if(jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").hasClass("sidebar-mini")&&(toggle_sidebar_mini(!1),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").niceScroll(sidebar_nicescroll_opts),sidebar_nicescroll=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").getNiceScroll()),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass("sidebar-gone"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("layout-2 layout-3 sidebar-mini sidebar-show"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").off("click touchend").on("click touchend",(function(_){(jquery__WEBPACK_IMPORTED_MODULE_7___default()(_.target).hasClass("sidebar-show")||jquery__WEBPACK_IMPORTED_MODULE_7___default()(_.target).hasClass("search-show"))&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("sidebar-show"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass("sidebar-gone"),jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("search-show"),update_sidebar_nicescroll())})),update_sidebar_nicescroll(),"layout-3"==now_layout_class){var t=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-secondary").attr("class"),r=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-secondary");r.attr("data-nav-classes",t),r.removeAttr("class"),r.addClass("main-sidebar");var n=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar");n.find(".container").addClass("sidebar-wrapper").removeClass("container"),n.find(".navbar-nav").addClass("sidebar-menu").removeClass("navbar-nav"),n.find(".sidebar-menu .nav-item.dropdown.show a").click(),n.find(".sidebar-brand").remove(),n.find(".sidebar-menu").before(jquery__WEBPACK_IMPORTED_MODULE_7___default()("
",{class:"sidebar-brand"}).append(jquery__WEBPACK_IMPORTED_MODULE_7___default()("",{href:jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-brand").attr("href")}).html(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-brand").html()))),setTimeout((function(){sidebar_nicescroll=n.niceScroll(sidebar_nicescroll_opts),sidebar_nicescroll=n.getNiceScroll()}),700),sidebar_dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-wrapper").removeClass("container")}}else{jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").removeClass("sidebar-gone sidebar-show"),now_layout_class&&jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass(now_layout_class);var o=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar").attr("data-nav-classes"),i=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-sidebar");if("layout-3"==now_layout_class&&i.hasClass("main-sidebar")){i.find(".sidebar-menu li a.has-dropdown").off("click"),i.find(".sidebar-brand").remove(),i.removeAttr("class"),i.addClass(o);var l=jquery__WEBPACK_IMPORTED_MODULE_7___default()(".navbar-secondary");l.find(".sidebar-wrapper").addClass("container").removeClass("sidebar-wrapper"),l.find(".sidebar-menu").addClass("navbar-nav").removeClass("sidebar-menu"),l.find(".dropdown-menu").hide(),l.removeAttr("style"),l.removeAttr("tabindex"),l.removeAttr("data-nav-classes"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".main-wrapper").addClass("container")}else"layout-2"==now_layout_class?jquery__WEBPACK_IMPORTED_MODULE_7___default()("body").addClass("layout-2"):update_sidebar_nicescroll()}};toggleLayout(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(window).resize(toggleLayout),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='search']").click((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()("body");_.hasClass("search-gone")?(_.addClass("search-gone"),_.removeClass("search-show")):(_.removeClass("search-gone"),_.addClass("search-show"))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle='tooltip']").tooltip(),jquery__WEBPACK_IMPORTED_MODULE_7___default()('[data-toggle="popover"]').popover({container:"body"}),jquery__WEBPACK_IMPORTED_MODULE_7___default()().select2&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".select2").select2(),jquery__WEBPACK_IMPORTED_MODULE_7___default()().selectric&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".selectric").selectric({disableOnMobile:!1,nativeOnMobile:!1}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".notification-toggle").dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".notification-toggle").parent().on("shown.bs.dropdown",(function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".dropdown-list-icons").niceScroll({cursoropacitymin:.3,cursoropacitymax:.8,cursorwidth:7})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".message-toggle").dropdown(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".message-toggle").parent().on("shown.bs.dropdown",(function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(".dropdown-list-message").niceScroll({cursoropacitymin:.3,cursoropacitymax:.8,cursorwidth:7})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").length&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").niceScroll({cursoropacitymin:.3,cursoropacitymax:.8}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").getNiceScroll(0).doScrollTop(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chat-content").height())),jquery__WEBPACK_IMPORTED_MODULE_7___default()().summernote&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".summernote").summernote({dialogsInBody:!0,minHeight:250}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".summernote-simple").summernote({dialogsInBody:!0,minHeight:150,toolbar:[["style",["bold","italic","underline","clear"]],["font",["strikethrough"]],["para",["paragraph"]]]})),window.CodeMirror&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".codeeditor").each((function(){window.CodeMirror.fromTextArea(this,{lineNumbers:!0,theme:"duotone-dark",mode:"javascript",height:200}).setSize("100%",200)})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".follow-btn, .following-btn").each((function(){var me=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this),follow_text="Follow",unfollow_text="Following";me.click((function(){return me.hasClass("following-btn")?(me.removeClass("btn-danger"),me.removeClass("following-btn"),me.addClass("btn-primary"),me.html(follow_text),eval(me.data("unfollow-action"))):(me.removeClass("btn-primary"),me.addClass("btn-danger"),me.addClass("following-btn"),me.html(unfollow_text),eval(me.data("follow-action"))),!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-dismiss]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this),e=_.data("dismiss");_.click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).fadeOut((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).remove()})),!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-collapse]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this),e=_.data("collapse");_.click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).collapse("toggle"),jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).on("shown.bs.collapse",(function(e){e.stopPropagation(),_.html('')})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(e).on("hidden.bs.collapse",(function(e){e.stopPropagation(),_.html('')})),!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".gallery .gallery-item").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.attr("href",_.data("image")),_.attr("title",_.data("title")),_.parent().hasClass("gallery-fw")&&(_.css({height:_.parent().data("item-height")}),_.find("div").css({lineHeight:_.parent().data("item-height")+"px"})),_.css({backgroundImage:'url("'+_.data("image")+'")'})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()().Chocolat&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".gallery").Chocolat({className:"gallery",imageSelector:".gallery-item"}),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-background]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.css({backgroundImage:"url("+_.data("background")+")"})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-tab]").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.click((function(){if(!_.hasClass("active")){var e=jquery__WEBPACK_IMPORTED_MODULE_7___default()('[data-tab-group="'+_.data("tab")+'"].active'),a=jquery__WEBPACK_IMPORTED_MODULE_7___default()(_.attr("href"));jquery__WEBPACK_IMPORTED_MODULE_7___default()('[data-tab="'+_.data("tab")+'"]').removeClass("active"),_.addClass("active"),a.addClass("active"),e.removeClass("active")}return!1}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".needs-validation").submit((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);!1===_[0].checkValidity()&&(event.preventDefault(),event.stopPropagation()),_.addClass("was-validated")})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".alert-dismissible").each((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this);_.find(".close").click((function(){_.alert("close")}))})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-crop-image]").each((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).css({overflow:"hidden",position:"relative",height:jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("crop-image")})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-toggle-slide]").click((function(){var _=jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("toggle-slide");return jquery__WEBPACK_IMPORTED_MODULE_7___default()(_).slideToggle(),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-dismiss=modal]").click((function(){return jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).closest(".modal").modal("hide"),!1})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-width]").each((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).css({width:jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("width")})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()("[data-height]").each((function(){jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).css({height:jquery__WEBPACK_IMPORTED_MODULE_7___default()(this).data("height")})})),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chocolat-parent").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()().Chocolat&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".chocolat-parent").Chocolat(),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".sortable-card").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()().sortable&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".sortable-card").sortable({handle:".card-header",opacity:.8,tolerance:"pointer"}),jquery__WEBPACK_IMPORTED_MODULE_7___default()().daterangepicker&&(jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datepicker").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datepicker").daterangepicker({locale:{format:"YYYY-MM-DD"},singleDatePicker:!0}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datetimepicker").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".datetimepicker").daterangepicker({locale:{format:"YYYY-MM-DD hh:mm"},singleDatePicker:!0,timePicker:!0,timePicker24Hour:!0}),jquery__WEBPACK_IMPORTED_MODULE_7___default()(".daterange").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".daterange").daterangepicker({locale:{format:"YYYY-MM-DD"},drops:"down",opens:"right"})),jquery__WEBPACK_IMPORTED_MODULE_7___default()().timepicker&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".timepicker").length&&jquery__WEBPACK_IMPORTED_MODULE_7___default()(".timepicker").timepicker({icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}})}))},"56d7":function(_,e,a){"use strict";a.r(e),a("e260"),a("e6cf"),a("cca6"),a("a79d");var t=a("7a23"),r=(a("ab8b"),a("6672"),a("8ae5"),a("3e48"),a("4bde"),a("38c8"),a("6c42")),n=(a("da96"),a("45fc"),a("d3b7"),a("6c02")),o=[{path:"",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"7557"))},children:[{path:"",name:"home",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"c2e5"))}},{path:":id/detail",name:"detail",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"637f"))}},{path:":id/pay",name:"pay",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"4b5d"))}},{path:"search",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"16ee"))}},{path:"contact",component:function(){return a.e("manifest").then(a.bind(null,"487d"))}},{path:"about",component:function(){return a.e("manifest").then(a.bind(null,"ff59"))}}]},{path:"/login",name:"login",meta:{title:"Login"},component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"5c1a"))}},{path:"/admin",component:function(){return a.e("manifest").then(a.bind(null,"b8bf"))},meta:{requiresAuth:!0},children:[{path:"",name:"admin",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"5ace"))}},{path:"classfily",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"225a"))}},{path:"shop",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"3bc9"))}},{path:"card",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"5de8"))}},{path:"orderlist",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"9bf9"))}},{path:"smtp",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"92d9"))}},{path:"sms",component:function(){return a.e("manifest").then(a.bind(null,"9dee"))}},{path:"payment",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"22b6"))}},{path:"password",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"624c"))}},{path:"notice",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"b432"))}},{path:"system",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"9dd4"))}},{path:"images",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"4d95"))}},{path:"backup",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"b26c"))}},{path:"edit",name:"edit",component:function(){return Promise.all([a.e("vendor"),a.e("manifest")]).then(a.bind(null,"3965"))}}]}],i=new n.a({history:Object(n.b)(),routes:o});i.beforeEach((function(_,e,a){if(_.matched.some((function(_){return _.meta.requiresAuth}))){if(!localStorage.getItem("access_token"))return a({name:"login"});a()}else a()}));var l=i;var s={render:function(_,e,a,r,n,o){var i=Object(t.C)("router-view");return Object(t.u)(),Object(t.f)(t.b,{name:"fade"},{default:Object(t.Q)((function(){return[Object(t.j)(i)]})),_:1})}};Object(t.e)(s).use(l).use(r.a).mount("#app")}}); \ No newline at end of file diff --git a/dist/static/js/app.7d6f03c8.js.br b/dist/static/js/app.7d6f03c8.js.br deleted file mode 100644 index ee6213f..0000000 Binary files a/dist/static/js/app.7d6f03c8.js.br and /dev/null differ diff --git a/dist/static/js/app.7d6f03c8.js.gz b/dist/static/js/app.7d6f03c8.js.gz deleted file mode 100644 index dc3b1b5..0000000 Binary files a/dist/static/js/app.7d6f03c8.js.gz and /dev/null differ diff --git a/dist/static/js/manifest.04b3726b.js b/dist/static/js/manifest.04b3726b.js new file mode 100644 index 0000000..92258a6 --- /dev/null +++ b/dist/static/js/manifest.04b3726b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["manifest"],{"0955":function(t,e,c){},"16ee":function(t,e,c){"use strict";c.r(e),c("ac1f"),c("841c");var a=c("7a23"),n={class:"section-body"},s=Object(a.j)("div",{class:"card",style:{padding:"15px 22px"}},[Object(a.j)("h2",{class:"section-title",style:{margin:"0px"}},"订单查询")],-1),o={class:"row"},l={class:"col"},i={class:"card"},r=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"输入手机号或邮箱")],-1),d={class:"card-body"},j={class:"row"},b={class:"col-sm-10"},u={class:"card-footer text-center",style:{"margin-top":"-22px"}},O={key:0},f={class:"col"},p={class:"card"},h={class:"card-header"},m=Object(a.j)("h4",null,"订单详情",-1),v={class:"card-header-action"},g=Object(a.i)("导出卡密"),k=Object(a.j)("i",{class:"fas fa-chevron-right"},null,-1),w={class:"card-body"},y={class:"form-group block mb-0"},_={class:"row"},x={class:"col-6"},C={class:"col-6"},M=Object(a.j)("p",{"mt-0":""},"卡密信息:",-1);c("4d63"),c("25f0");var L=c("5530"),F=c("f96b"),V=c("6c42"),H={setup:function(){var t=Object(V.b)(),e=Object(a.z)(""),c=Object(a.y)({orderlist:[]});return Object(L.a)(Object(L.a)({email:e,search:function(){null!=e.value&&""!=e.value?new RegExp("(^[\\w.\\-]+@(?:[a-z0-9]+(?:-[a-z0-9]+)*\\.)+[a-z]{2,3}$)|(^1[3|4|5|8]\\d{9}$)").test(e.value)?F.a.getOrder({contact:e.value}).then((function(e){e.length<1?t.warning("订单不存在或已过期"):c.orderlist=e})).catch((function(){t.error("您操作太频繁了,待会再来尝试")})):t.error("请输入正确的邮箱或手机号!"):t.info("请输入下单时的邮箱或手机号")}},Object(a.H)(c)),{},{txt:function(t){var e=document.createElement("a");e.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),e.setAttribute("download","卡密"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}})},render:function(t,e,c,L,F,V){var H=Object(a.C)("v-html");return Object(a.u)(),Object(a.f)("div",n,[s,Object(a.j)("div",o,[Object(a.j)("div",l,[Object(a.j)("div",i,[r,Object(a.j)("div",d,[Object(a.j)("div",j,[Object(a.j)("div",b,[Object(a.Q)(Object(a.j)("input",{type:"email",class:"form-control","onUpdate:modelValue":e[1]||(e[1]=function(t){return L.email=t}),id:"inputEmail1",placeholder:"demo@gmail.com"},null,512),[[a.M,L.email]])])])]),Object(a.j)("div",u,[Object(a.j)("button",{type:"submit",class:"btn btn-primary",onClick:e[2]||(e[2]=function(){return L.search.apply(L,arguments)})},"查询")])])])]),t.orderlist.length>0?(Object(a.u)(),Object(a.f)("div",O,[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.orderlist,(function(t){return Object(a.u)(),Object(a.f)("div",{class:"row",key:t.id},[Object(a.j)("div",f,[Object(a.j)("div",p,[Object(a.j)("div",h,[m,Object(a.j)("div",v,[Object(a.j)("a",{onClick:function(e){return L.txt(t.card)},class:"btn btn-success"},[g,k],8,["onClick"])])]),Object(a.j)("div",w,[Object(a.j)("h6",null,"订单号:"+Object(a.F)(t.serial_id),1),Object(a.j)("div",y,[Object(a.j)("div",_,[Object(a.j)("p",x,"交易时间:"+Object(a.F)(t.updatetime),1),Object(a.j)("p",C,"联系方式:"+Object(a.F)(t.contact),1)])]),M,Object(a.j)(H,null,{default:Object(a.P)((function(){return[Object(a.i)(Object(a.F)(t.card),1)]})),_:2},1024)])])])])})),128))])):Object(a.g)("",!0)])}};e.default=H},"21fa":function(t,e,c){t.exports=c.p+"static/img/stisla-fill.3084ac12.svg"},"225a":function(t,e,c){"use strict";c.r(e),c("b0c0");var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"商品分类")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 商品分类最终可在访客首页显示 ",-1),i={class:"row"},r={class:"col"},d={class:"card"},j=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"商品分类"),Object(a.j)("div",{class:"card-header-action"},[Object(a.j)("a",{class:"btn btn-danger","data-toggle":"modal","data-target":"#add"},[Object(a.i)("新增 "),Object(a.j)("i",{class:"fas fa-chevron-right"})])])],-1),b={class:"card-body p-0"},u={class:"table-responsive table-invoice"},O={class:"table table-striped"},f=Object(a.j)("tr",null,[Object(a.j)("th",null,"ID"),Object(a.j)("th",null,"名称"),Object(a.j)("th",null,"描述"),Object(a.j)("th",null,"排序"),Object(a.j)("th",null,"操作")],-1),p={class:"font-weight-600"},h={class:"font-weight-600"},m={class:"font-weight-600"},v=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"})])],-1),g=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:"#fc544b",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M16 24L32 24",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"})])],-1),k={class:"modal fade",id:"add",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"add","aria-hidden":"true"},w={class:"modal-dialog",role:"document"},y={class:"modal-content"},_=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"新增分类"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),x={class:"modal-body"},C={class:"form-group"},M=Object(a.j)("label",null,"分类名称",-1),L=Object(a.j)("label",null,[Object(a.i)("分类描述 "),Object(a.j)("code",null,"【一句话描述或备注】")],-1),F=Object(a.j)("label",null,[Object(a.i)("分类排序 "),Object(a.j)("code",null,"【用于商品分类展示排序,取值1~1000】")],-1),V={class:"modal-footer"},H=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1),z={class:"modal fade",id:"edit",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"edit","aria-hidden":"true"},U={class:"modal-dialog",role:"document"},B={class:"modal-content"},Q=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"编辑分类"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),Z={class:"modal-body"},S={class:"form-group"},A=Object(a.j)("label",null,"分类名称",-1),P=Object(a.j)("label",null,[Object(a.i)("分类描述 "),Object(a.j)("code",null,"【一句话描述或备注】")],-1),E=Object(a.j)("label",null,[Object(a.i)("分类排序 "),Object(a.j)("code",null,"【用于商品分类展示排序,取值1~1000】")],-1),I={class:"modal-footer"},D=c("5530"),T=c("f96b"),R=c("6c42"),J={setup:function(){var t=Object(a.y)({cags:[],edit_cag:{},edit_cag_new:{},cag_id:null,add_cag:{name:"",info:"",sort:100}}),e=Object(R.b)(),c=function(){T.a.getCag().then((function(e){t.cags=e}))};return Object(a.s)((function(){c()})),Object(D.a)(Object(D.a)({},Object(a.H)(t)),{},{del:function(a){t.cag_id=t.cags[a].id,T.a.postCag({id:t.cag_id,methord:"delete"}).then((function(){e.success("删除成功"),c(),t.cag_id=null})).catch((function(){e.warning("删除失败")}))},edit:function(e){t.edit_cag=t.cags[e]},add:function(a){T.a.postCag({name:a.name,info:a.info,sort:a.sort,methord:"add"}).then((function(){e.success("新增分类成功"),c(),t.add_cag={name:"",info:"",sort:100}})).catch((function(t){e.error("请检查是否重复分类"+t)}))},edit_save:function(){t.edit_cag.methord="update",T.a.postCag(t.edit_cag).then((function(){e.success("修改成功")})).catch((function(){e.error("啊呀呀,出错了!"),c()}))},get_data:c})},render:function(t,e,c,D,T,R){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[j,Object(a.j)("div",b,[Object(a.j)("div",u,[Object(a.j)("table",O,[Object(a.j)("tbody",null,[f,(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.cags,(function(t,e){return Object(a.u)(),Object(a.f)("tr",{key:t.id},[Object(a.j)("td",null,Object(a.F)(t.id),1),Object(a.j)("td",p,Object(a.F)(t.name),1),Object(a.j)("td",h,Object(a.F)(t.info),1),Object(a.j)("td",m,Object(a.F)(t.sort),1),Object(a.j)("td",null,[Object(a.j)("a",{onClick:function(t){return D.edit(e)},class:"btn btn-primary btn-action mr-1","data-toggle":"modal",title:"","data-original-title":"Edit","data-target":"#edit"},[v],8,["onClick"]),Object(a.j)("a",{onClick:function(t){return D.del(e)},class:"btn btn-danger btn-action "},[g],8,["onClick"])])])})),128))])])])])])])])]),Object(a.j)("div",k,[Object(a.j)("div",w,[Object(a.j)("div",y,[_,Object(a.j)("div",x,[Object(a.j)("div",C,[M,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.add_cag.name=e})},null,512),[[a.M,t.add_cag.name]]),L,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.add_cag.info=e})},null,512),[[a.M,t.add_cag.info]]),F,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[3]||(e[3]=function(e){return t.add_cag.sort=e}),placeholder:t.add_cag.sort},null,8,["placeholder"]),[[a.M,t.add_cag.sort]])])]),Object(a.j)("div",V,[H,Object(a.j)("button",{onClick:e[4]||(e[4]=function(e){return D.add(t.add_cag)}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])]),Object(a.j)("div",z,[Object(a.j)("div",U,[Object(a.j)("div",B,[Q,Object(a.j)("div",Z,[Object(a.j)("div",S,[A,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[5]||(e[5]=function(e){return t.edit_cag.name=e})},null,512),[[a.M,t.edit_cag.name]]),P,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[6]||(e[6]=function(e){return t.edit_cag.info=e})},null,512),[[a.M,t.edit_cag.info]]),E,Object(a.Q)(Object(a.j)("input",{type:"number",class:"form-control form-control-sm","onUpdate:modelValue":e[7]||(e[7]=function(e){return t.edit_cag.sort=e})},null,512),[[a.M,t.edit_cag.sort]])])]),Object(a.j)("div",I,[Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal",onClick:e[8]||(e[8]=function(t){return D.get_data()})},"Close"),Object(a.j)("button",{type:"button",class:"btn btn-primary","data-dismiss":"modal",onClick:e[9]||(e[9]=function(t){return D.edit_save()})},"Save changes")])])])])])}};e.default=J},"22b6":function(t,e,c){"use strict";c.r(e),c("b0c0");var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"支付设置")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 正确配置相关参数,然后即可启用。 ",-1),i={class:"row"},r={class:"col"},d={class:"card"},j=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"支付接口设置"),Object(a.j)("div",{class:"card-header-action"},[Object(a.j)("a",{class:"btn btn-success","data-toggle":"modal","data-target":"#add"},[Object(a.i)("新增卡密 "),Object(a.j)("i",{class:"fas fa-chevron-right"})])])],-1),b={class:"card-body p-0"},u={class:"table-responsive table-invoice"},O={class:"table table-striped"},f=Object(a.j)("tr",null,[Object(a.j)("th",null,"ID"),Object(a.j)("th",null,"名称"),Object(a.j)("th",null,"状态"),Object(a.j)("th",null,"操作")],-1),p={href:"#"},h={class:"font-weight-600"},m=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"})])],-1),v={class:"modal fade",id:"edit",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"edit","aria-hidden":"true"},g={class:"modal-dialog",role:"document"},k={class:"modal-content"},w={class:"modal-header"},y={class:"modal-title",id:"exampleModalLabel"},_=Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")],-1),x={class:"modal-body"},C={class:"form-group"},M={class:"form-group"},L=Object(a.j)("label",null,"支付渠道: ",-1),F={class:"form-group"},V=Object(a.i)("是否启用:: "),H=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),z={class:"modal-footer"},U=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1),B=c("5530"),Q=c("f96b"),Z=c("6c42"),S={setup:function(){var t=Object(a.y)({pays:[],edit_pay:{},pay_id:null,add_pay:{name:"",info:"",sort:100}}),e=Object(Z.b)(),c=function(){Q.a.getPay().then((function(e){t.pays=e}))};return Object(a.s)((function(){c()})),Object(B.a)(Object(B.a)({},Object(a.H)(t)),{},{del:function(a){t.pay_id=t.pays[a].id,Q.a.postCag({id:t.pay_id,methord:"delete"}).then((function(){e.success("删除成功"),c(),t.pay_id=null})).catch((function(){e.warning("删除失败")}))},edit:function(e){Q.a.getPayDetail({id:t.pays[e].id}).then((function(e){t.edit_pay=e}))},add:function(a){Q.a.postCag({name:a.name,info:a.info,sort:a.sort,methord:"add"}).then((function(){e.success("新增分类成功"),c(),t.add_cag={name:"",info:"",sort:100}})).catch((function(t){e.error("请检查是否重复分类"+t)}))},edit_save:function(){Q.a.postPay({data:t.edit_pay}).then((function(){e.success("修改成功"),c()})).catch((function(){e.error("啊呀呀,出错了!")}))},get_data:c})},render:function(t,e,c,B,Q,Z){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[j,Object(a.j)("div",b,[Object(a.j)("div",u,[Object(a.j)("table",O,[Object(a.j)("tbody",null,[f,(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.pays,(function(t,e){return Object(a.u)(),Object(a.f)("tr",{key:t.id},[Object(a.j)("td",null,[Object(a.j)("a",p,Object(a.F)(t.id),1)]),Object(a.j)("td",h,Object(a.F)(t.name),1),Object(a.j)("td",null,[Object(a.j)("div",{class:["badge",t.isactive?"badge-success":"badge-secondary"]},Object(a.F)(t.isactive?"已开启":"已关闭"),3)]),Object(a.j)("td",null,[Object(a.j)("a",{onClick:function(t){return B.edit(e)},class:"btn btn-primary btn-action mr-1","data-toggle":"modal",title:"","data-original-title":"Edit","data-target":"#edit"},[m],8,["onClick"])])])})),128))])])])])])])])]),Object(a.j)("div",v,[Object(a.j)("div",g,[Object(a.j)("div",k,[Object(a.j)("div",w,[Object(a.j)("h5",y,Object(a.F)(t.edit_pay.name)+"编辑",1),_]),Object(a.j)("div",x,[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.edit_pay.config,(function(e,c){return Object(a.u)(),Object(a.f)("div",{key:e.id},[Object(a.j)("div",C,[Object(a.j)("label",null,Object(a.F)(c)+": ",1),Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":function(e){return t.edit_pay.config[c]=e}},null,8,["onUpdate:modelValue"]),[[a.M,t.edit_pay.config[c]]])])])})),128)),Object(a.j)("div",M,[L,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.edit_pay.icon=e})},null,512),[[a.M,t.edit_pay.icon]])]),Object(a.j)("div",F,[Object(a.j)("label",null,[V,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.edit_pay.isactive=e}),value:t.edit_pay.isactive},null,8,["value"]),[[a.J,t.edit_pay.isactive]]),H])])]),Object(a.j)("div",z,[U,Object(a.j)("button",{onClick:e[3]||(e[3]=function(t){return B.edit_save()}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])])])}};e.default=S},"242c":function(t,e,c){},"2c4e":function(t,e,c){},3965:function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"Summernote编辑器")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 编辑完文章后,请复制文章代码到商品详情页面里,然后保存即可。 ",-1),i={class:"row"},r={class:"col"},d={class:"card"},j={class:"card-header"},b=Object(a.j)("h4",null,"富文本编辑器",-1),u={class:"card-header-action"},O=Object(a.i)("复制文章代码 "),f=Object(a.j)("i",{class:"fas fa-chevron-right"},null,-1),p={class:"card-body"};c("c4df"),c("b178");var h=c("6c42"),m=c("6c02"),v=c("1157"),g=c.n(v),k=Object(a.k)({name:"Edit",setup:function(){var t=Object(h.b)(),e=Object(m.c)();Object(a.s)((function(){g()("#summernote").summernote({dialogsInBody:!0,minHeight:300,lang:"zh-CN"}),c()}));var c=function(){console.log(e);var t=e.currentRoute.value.params.content;console.log(t),g()(".summernote").summernote("code",t)};return{getContent:function(){var e=g()(".summernote").summernote("code"),c=document.createElement("input");c.value=e,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c),t.success("代码已复制")},setContent:c}}});k.render=function(t,e,c,h,m,v){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[Object(a.j)("div",j,[b,Object(a.j)("div",u,[Object(a.j)("a",{onClick:e[1]||(e[1]=function(){return t.getContent.apply(t,arguments)}),class:"btn btn-success"},[O,f])])]),Object(a.j)("div",p,[Object(a.Q)(Object(a.j)("textarea",{type:"text",id:"summernote",class:"summernote","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.words=e})},null,512),[[a.M,t.words]])])])])])])])},e.default=k},"3bc9":function(t,e,c){"use strict";c.r(e),c("b0c0");var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"商品列表")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 状态代表是否上架. ",-1),i={class:"row"},r={class:"col"},d={class:"card"},j=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"商品列表"),Object(a.j)("div",{class:"card-header-action"},[Object(a.j)("a",{class:"btn btn-danger","data-toggle":"modal","data-target":"#add"},[Object(a.i)("新增 "),Object(a.j)("i",{class:"fas fa-chevron-right"})])])],-1),b={class:"card-body p-0"},u={class:"table-responsive table-invoice"},O={class:"table table-striped"},f=Object(a.j)("tr",null,[Object(a.j)("th",null,"ID"),Object(a.j)("th",null,"名称"),Object(a.j)("th",null,"分类"),Object(a.j)("th",null,"价格"),Object(a.j)("th",null,"发货模式"),Object(a.j)("th",null,"库存"),Object(a.j)("th",null,"状态"),Object(a.j)("th",null,"操作")],-1),p={class:"font-weight-600"},h={class:"font-weight-600"},m={class:"font-weight-600"},v=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"})])],-1),g=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:"#fc544b",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M16 24L32 24",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"})])],-1),k={class:"modal fade",id:"add",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"add","aria-hidden":"true"},w={class:"modal-dialog",role:"document"},y={class:"modal-content"},_=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"新增商品"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),x={class:"modal-body"},C={class:"form-group"},M=Object(a.j)("label",null,[Object(a.i)("选择分类"),Object(a.j)("code",null,"【如果没有分类,请先去创建商品分类】")],-1),L=Object(a.j)("label",null,"商品名称 ",-1),F=Object(a.j)("label",null,[Object(a.i)("商品信息 "),Object(a.j)("code",null,"【一句话描述或备注】")],-1),V=Object(a.j)("label",null,[Object(a.i)("图片上传 "),Object(a.j)("code",null,"【用于商品分类展示排序,取值1~1000】")],-1),H=Object(a.j)("label",null,[Object(a.i)("商品排序 "),Object(a.j)("code",null,"【用于商品展示先后排序,取值1~1000】")],-1),z=Object(a.j)("label",null,[Object(a.i)("详细介绍 "),Object(a.j)("code")],-1),U=Object(a.j)("label",null,[Object(a.i)("价格 "),Object(a.j)("code")],-1),B=Object(a.j)("label",null,[Object(a.i)("批发价格 "),Object(a.j)("code",null,"格式参考[数量区间#价格]:两层9#9.9,8.8三层9,100#9.9,8.8,7.7四层9,100,500#9.9,8.8,7.7,6.6")],-1),Q=Object(a.j)("label",null,[Object(a.i)("标签设置 "),Object(a.j)("code")],-1),Z={class:"custom-switch mt-2"},S=Object(a.i)("发货模式【开启==》自动发货;关闭==》手动发货】 : "),A=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),P={class:"custom-switch mt-2"},E=Object(a.i)("是否上架 : "),I=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),D={class:"modal-footer"},T=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1),R={class:"modal fade",id:"edit",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"edit","aria-hidden":"true"},J={class:"modal-dialog",role:"document"},N={class:"modal-content"},Y=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"编辑商品"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),$={class:"modal-body"},q={class:"form-group"},X=Object(a.j)("label",null,"商品名称 ",-1),K=Object(a.j)("label",null,[Object(a.i)("商品信息 "),Object(a.j)("code",null,"【一句话描述或备注】")],-1),G=Object(a.j)("label",null,"选择分类",-1),W=Object(a.j)("label",null,[Object(a.i)("商品展示图 "),Object(a.j)("code",null,"【推荐PNG格式300*300px】")],-1),tt=Object(a.j)("label",null,[Object(a.i)("商品排序 "),Object(a.j)("code",null,"【用于商品展示先后排序,取值1~1000】")],-1),et=Object(a.i)("详细介绍 "),ct=Object(a.i)("完整编辑"),at=Object(a.j)("label",null,[Object(a.i)("价格"),Object(a.j)("code",null,"(当设置批发价后此处失效)")],-1),nt=Object(a.j)("label",null,[Object(a.i)("批发价格 "),Object(a.j)("code",null,"格式参考[数量区间#价格]:两层9#9.9,8.8三层9,100#9.9,8.8,7.7四层9,100,500#9.9,8.8,7.7,6.6")],-1),st={class:"custom-switch mt-2"},ot=Object(a.i)("发货模式 : "),lt=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),it=Object(a.i)("是否上架 : "),rt=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),dt=Object(a.j)("br",null,null,-1),jt=Object(a.j)("code",null,"批发价:空白时前端为正常价格,设置后,前端显示批发价",-1),bt={class:"modal-footer"},ut=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1);c("4160"),c("159b");var Ot=c("5530"),ft=c("f96b"),pt=c("6c42"),ht={setup:function(){var t=Object(a.y)({shops:[],edit_shop:{},shop_id:null,add_shop:{name:"",info:"",sort:100},cags:[]}),e=Object(pt.b)(),c=function(){ft.a.getShop().then((function(e){t.shops=e}))};return Object(a.s)((function(){c(),ft.a.getCag().then((function(e){e.forEach((function(e){t.cags.push(e.name)}))}))})),Object(Ot.a)(Object(Ot.a)({},Object(a.H)(t)),{},{del:function(a){t.shop_id=t.shops[a].prod_id,ft.a.postShop({id:t.shop_id,methord:"delete"}).then((function(){e.success("删除成功"),c(),t.shop_id=null})).catch((function(){e.warning("删除失败")}))},edit:function(e){t.shop_id=t.shops[e].prod_id,ft.a.getShopEdit({id:t.shop_id}).then((function(e){t.edit_shop=e}))},add:function(){t.add_shop.methord="add",ft.a.postShop(t.add_shop).then((function(){e.success("新增分类成功"),c(),t.add_shop={name:"",info:"",sort:100}})).catch((function(t){e.error("请检查是否重复分类"+t)}))},edit_save:function(){t.edit_shop.methord="update",ft.a.postShop(t.edit_shop).then((function(){e.success("修改成功"),c()})).catch((function(){e.error("啊呀呀,出错了!")}))}})},render:function(t,e,c,Ot,ft,pt){var ht=Object(a.C)("router-link");return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[j,Object(a.j)("div",b,[Object(a.j)("div",u,[Object(a.j)("table",O,[Object(a.j)("tbody",null,[f,(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.shops,(function(t,e){return Object(a.u)(),Object(a.f)("tr",{key:t.id},[Object(a.j)("td",null,Object(a.F)(t.prod_id),1),Object(a.j)("td",null,Object(a.F)(t.name),1),Object(a.j)("td",p,Object(a.F)(t.cag_name),1),Object(a.j)("td",h,Object(a.F)(t.price),1),Object(a.j)("td",null,[Object(a.j)("div",{class:["badge",t.auto?"badge-success":"badge-primary"]},Object(a.F)(1==t.auto?"自动":"手动"),3)]),Object(a.j)("td",m,Object(a.F)(t.stock),1),Object(a.j)("td",null,[Object(a.j)("div",{class:["badge",t.isactive?"badge-success":"badge-secondary"]},Object(a.F)(t.isactive?"On":"Off"),3)]),Object(a.j)("td",null,[Object(a.j)("a",{onClick:function(t){return Ot.edit(e)},class:"btn btn-primary btn-action mr-1","data-toggle":"modal",title:"","data-original-title":"Edit","data-target":"#edit"},[v],8,["onClick"]),Object(a.j)("a",{onClick:function(t){return Ot.del(e)},class:"btn btn-danger btn-action "},[g],8,["onClick"])])])})),128))])])])])])])])]),Object(a.j)("div",k,[Object(a.j)("div",w,[Object(a.j)("div",y,[_,Object(a.j)("div",x,[Object(a.j)("div",C,[M,Object(a.Q)(Object(a.j)("select",{class:"form-control","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.add_shop.cag_name=e})},[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.cags,(function(t){return Object(a.u)(),Object(a.f)("option",{key:t.id},Object(a.F)(t),1)})),128))],512),[[a.L,t.add_shop.cag_name]]),L,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.add_shop.name=e})},null,512),[[a.M,t.add_shop.name]]),F,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[3]||(e[3]=function(e){return t.add_shop.info=e})},null,512),[[a.M,t.add_shop.info]]),V,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[4]||(e[4]=function(e){return t.add_shop.img_url=e})},null,512),[[a.M,t.add_shop.img_url]]),H,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[5]||(e[5]=function(e){return t.add_shop.sort=e})},null,512),[[a.M,t.add_shop.sort]]),z,Object(a.Q)(Object(a.j)("textarea",{class:"form-control form-control-alternative",style:{height:"150px"},placeholder:"Write a large text here ...","onUpdate:modelValue":e[6]||(e[6]=function(e){return t.add_shop.discription=e})},null,512),[[a.M,t.add_shop.discription]]),U,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[7]||(e[7]=function(e){return t.add_shop.price=e})},null,512),[[a.M,t.add_shop.price]]),B,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[8]||(e[8]=function(e){return t.add_shop.price_wholesale=e})},null,512),[[a.M,t.add_shop.price_wholesale]]),Q,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[9]||(e[9]=function(e){return t.add_shop.tag=e})},null,512),[[a.M,t.add_shop.tag]]),Object(a.j)("label",Z,[S,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[10]||(e[10]=function(e){return t.add_shop.auto=e})},null,512),[[a.J,t.add_shop.auto]]),A]),Object(a.j)("label",P,[E,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[11]||(e[11]=function(e){return t.add_shop.isactive=e})},null,512),[[a.J,t.add_shop.isactive]]),I])])]),Object(a.j)("div",D,[T,Object(a.j)("button",{onClick:e[12]||(e[12]=function(t){return Ot.add()}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])]),Object(a.j)("div",R,[Object(a.j)("div",J,[Object(a.j)("div",N,[Y,Object(a.j)("div",$,[Object(a.j)("div",q,[X,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[13]||(e[13]=function(e){return t.edit_shop.name=e})},null,512),[[a.M,t.edit_shop.name]]),K,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[14]||(e[14]=function(e){return t.edit_shop.info=e})},null,512),[[a.M,t.edit_shop.info]]),G,Object(a.Q)(Object(a.j)("select",{class:"form-control","onUpdate:modelValue":e[15]||(e[15]=function(e){return t.edit_shop.cag_name=e})},[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.edit_shop.cags,(function(t){return Object(a.u)(),Object(a.f)("option",{key:t.id},Object(a.F)(t),1)})),128))],512),[[a.L,t.edit_shop.cag_name]]),W,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[16]||(e[16]=function(e){return t.edit_shop.img_url=e})},null,512),[[a.M,t.edit_shop.img_url]]),tt,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[17]||(e[17]=function(e){return t.edit_shop.sort=e})},null,512),[[a.M,t.edit_shop.sort]]),Object(a.j)("label",null,[et,Object(a.j)("code",null,[Object(a.j)(ht,{class:"badge badge-primary",to:{name:"edit",params:{content:t.edit_shop.discription}}},{default:Object(a.P)((function(){return[ct]})),_:1},8,["to"])])]),Object(a.Q)(Object(a.j)("textarea",{class:"form-control form-control-alternative",style:{height:"150px"},placeholder:"Write a large text here ...","onUpdate:modelValue":e[18]||(e[18]=function(e){return t.edit_shop.discription=e})},null,512),[[a.M,t.edit_shop.discription]]),at,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[19]||(e[19]=function(e){return t.edit_shop.price=e})},null,512),[[a.M,t.edit_shop.price]]),nt,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[20]||(e[20]=function(e){return t.edit_shop.price_wholesale=e})},null,512),[[a.M,t.edit_shop.price_wholesale]]),Object(a.j)("label",st,[ot,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[21]||(e[21]=function(e){return t.edit_shop.auto=e}),value:t.edit_shop.auto},null,8,["value"]),[[a.J,t.edit_shop.auto]]),lt]),Object(a.j)("label",null,[it,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[22]||(e[22]=function(e){return t.edit_shop.isactive=e}),value:t.edit_shop.isactive},null,8,["value"]),[[a.J,t.edit_shop.isactive]]),rt]),dt,jt])]),Object(a.j)("div",bt,[ut,Object(a.j)("button",{onClick:e[23]||(e[23]=function(e){return Ot.edit_save(t.edit_shop.id)}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])])])}};e.default=ht},4386:function(t,e,c){},4678:function(t,e,c){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df48","./fa.js":"8df48","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b46","./gd.js":"f6b46","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function n(t){var e=s(t);return c(e)}function s(t){if(!c.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}n.keys=function(){return Object.keys(a)},n.resolve=s,t.exports=n,n.id="4678"},"487d":function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n=Object(a.j)("div",{class:"card",style:{padding:"15px 22px"}},[Object(a.j)("h2",{class:"section-title",style:{margin:"0px"}},"联系我们")],-1),s={class:"row"},o={class:"col"},l={class:"card"},i={class:"card-body"},r={setup:function(){return{contact_us:Object(a.n)("configs").contact_us}},render:function(t,e,c,r,d,j){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[Object(a.j)("div",o,[Object(a.j)("div",l,[Object(a.j)("div",i,[Object(a.j)("div",{innerHTML:r.contact_us},null,8,["innerHTML"])])])])])])}};e.default=r},"4b5d":function(t,e,c){"use strict";c.r(e),c("b0c0");var a=c("7a23"),n=Object(a.j)("div",{class:"card",style:{padding:"15px 22px"}},[Object(a.j)("h2",{class:"section-title",style:{margin:"0px"}},"支付")],-1),s={class:"row"},o={class:"col-12"},l={class:"card"},i=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"购物信息")],-1),r={class:"card-body"},d={class:"row mt-4"},j={class:"col"},b={class:"wizard-steps"},u={class:"wizard-step-icon"},O={class:"wizard-step-label"},f={key:0,class:"wizard-content mt-2"},p={class:"wizard-pane"},h={class:"form-group row align-items-center"},m=Object(a.j)("label",{class:"col-md-4 text-md-right text-left"},"邮箱或手机号:",-1),v={class:"col-lg-4 col-md-6"},g={class:"form-group row"},k=Object(a.j)("label",{class:"col-md-4 text-md-right text-left mt-2"},"备注信息:",-1),w={class:"col-lg-4 col-md-6"},y={class:"form-group row"},_=Object(a.j)("label",{class:"col-md-4 text-md-right text-left mt-2"},"支付方式:",-1),x={class:"col-lg-4 col-md-6"},C={class:"selectgroup w-100"},M={class:"selectgroup-button"},L={class:"form-group row"},F=Object(a.j)("div",{class:"col-md-4"},null,-1),V={class:"col-lg-4 col-md-6 text-right"},H=Object(a.i)("下一步"),z=Object(a.j)("i",{class:"fas fa-arrow-right"},null,-1),U={key:1,class:"wizard-content "},B={class:"wizard-pane"},Q={class:"invoice pt-0"},Z={class:"invoice-print"},S={class:"row"},A={class:"col-lg-12"},P=Object(a.j)("hr",null,null,-1),E={class:"row"},I={class:"col-md-6"},D=Object(a.j)("strong",null,"收货信息:",-1),T=Object(a.j)("br",null,null,-1),R=Object(a.j)("br",null,null,-1),J={class:"col-md-6 text-md-right"},N=Object(a.j)("strong",null,"订单日期:",-1),Y=Object(a.j)("br",null,null,-1),$=Object(a.j)("br",null,null,-1),q=Object(a.j)("br",null,null,-1),X={class:"row"},K={class:"col-md-12"},G=Object(a.j)("div",{class:"section-title text-uppercase"},"订单信息",-1),W={class:"table-responsive"},tt={class:"table table-striped table-hover table-md"},et=Object(a.j)("tr",null,[Object(a.j)("th",{class:"d-none d-sm-table-cell"},"#"),Object(a.j)("th",null,"名称"),Object(a.j)("th",{class:"text-center d-none d-sm-table-cell"},"单价"),Object(a.j)("th",{class:"text-center"},"数量"),Object(a.j)("th",{class:"text-right"},"总价")],-1),ct=Object(a.j)("td",{class:"d-none d-sm-table-cell"},"1",-1),at={class:"text-center d-none d-sm-table-cell"},nt={class:"text-center"},st={class:"text-right"},ot={class:"row"},lt={class:"col-lg-8"},it=Object(a.j)("div",{class:"section-title"},"扫码支付",-1),rt={class:"d-flex"},dt={class:"col-lg-4 text-right"},jt=Object(a.j)("hr",{class:"mt-2 mb-2"},null,-1),bt={class:"invoice-detail-item"},ut=Object(a.j)("div",{class:"invoice-detail-name"},"总计",-1),Ot={class:"invoice-detail-value invoice-detail-value-lg"},ft=Object(a.j)("hr",null,null,-1),pt={class:"text-md-right"},ht={class:"float-lg-left mb-lg-0 mb-3"},mt=Object(a.j)("i",{class:"fas fa-times"},null,-1),vt=Object(a.i)(" 取消订单"),gt={key:2,class:"wizard-content"},kt={class:"wizard-pane"},wt={class:"row"},yt={class:"col"},_t={class:"card"},xt={class:"card-header"},Ct=Object(a.j)("h4",null,"订单详情",-1),Mt={class:"card-header-action"},Lt=Object(a.i)("导出卡密"),Ft=Object(a.j)("i",{class:"fas fa-chevron-right"},null,-1),Vt={class:"card-body"},Ht={class:"form-group block mb-0"},zt={class:"row"},Ut={class:"col-6"},Bt={class:"col-6"},Qt=Object(a.j)("p",{"mt-0":""},"卡密信息:",-1);c("fb6a"),c("b680"),c("d3b7"),c("4d63"),c("ac1f"),c("25f0"),c("5319");var Zt=c("5530"),St=c("6c42"),At=c("d055"),Pt=c.n(At),Et=c("f96b"),It=c("6c02"),Dt={setup:function(){var t=Object(St.b)(),e=Object(a.y)({wizard_step:[{title:"创建订单",icon:"icon iconfont icon-tubiao_xiadan",isactive:!0},{title:"支付订单",icon:"icon iconfont icon-fangxinjiaoyi",isactive:!1},{title:"卡密查看",icon:"icon iconfont icon-qiapianshuliang",isactive:!1}],payment:{},order:{date:"",num:"",price:"",pay_url:"",card:"",pay_qrcode:""},shop:{}}),c=Object(It.c)(),n=c.currentRoute.value.params.id,s=c.currentRoute.value.params.nums,o=c.currentRoute.value.params.price;Object(a.s)((function(){Et.a.getDetail({prod_id:n}).then((function(t){e.order=t,e.order.num=s,e.order.price=o})),Et.a.getPayList().then((function(t){e.payment=t})).catch((function(){t.info("暂未发现支付接口,请联系网站管理员设置支付接口")}))})),Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var c in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+c+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[c]:("00"+e[c]).substr((""+e[c]).length)));return t};var l=function(){Et.a.postCheckPay({out_order_id:e.order.out_order_id,methord:"cancel"}).then((function(){t.info("您已取消当前订单"),history.back(),history.back(),location.reload()}))},i=function(){t.success("订单支付成功666"),Et.a.getCardByid({out_order_id:e.order.out_order_id}).then((function(c){e.order.card=c.card,t.success("卡密查询成功")})).catch((function(){t.warning("卡密信息获取失败")})),e.wizard_step[1].isactive=!1,e.wizard_step[2].isactive=!0};return Object(Zt.a)(Object(Zt.a)({},Object(a.H)(e)),{},{second:function(){if(""!=e.order.contact&&null!=e.order.contact)if(new RegExp("(^[\\w.\\-]+@(?:[a-z0-9]+(?:-[a-z0-9]+)*\\.)+[a-z]{2,3}$)|(^1[3|4|5|8]\\d{9}$)").test(e.order.contact))if(""!=e.order.payment&&null!=e.order.payment){if(e.wizard_step[0].isactive=!1,e.wizard_step[1].isactive=!0,e.order.date=(new Date).Format("yyyy-MM-dd"),e.order.out_order_id="Order_"+(new Date).getTime()+Math.random().toString(36).slice(-8),e.order.total_price=(e.order.price*e.order.num).toFixed(2),"NaN"==e.order.total_price)return t.error("订单已过期,请重新下单"),void history.back();switch(Et.a.postPayUrl(e.order).then((function(c){e.order.pay_url=c.qr_code,"PAYJS支付宝"!=e.order.payment&&"PAYJS微信"!=e.order.payment||(e.order.payjs_order_id=c.payjs_order_id),Pt.a.toDataURL(c.qr_code).then((function(c){e.order.pay_qrcode=c;var a=0,n=setInterval((function(){a+=4,"PAYJS支付宝"!=e.order.payment&&"PAYJS微信"!=e.order.payment?Et.a.postCheckPay({out_order_id:e.order.out_order_id,methord:"check",payment:e.order.payment,name:e.order.name,contact:e.order.contact,contact_txt:e.order.contact_txt,price:e.order.price,num:e.order.num,total_price:e.order.total_price}).then((function(e){"success"==e.msg&&(clearInterval(n),t.success("^_^订单支付成功!"),i())})):(console.log("payjs支付"),Et.a.postCheckPay({payjs_order_id:e.order.payjs_order_id,out_order_id:e.order.out_order_id,methord:"check",payment:e.order.payment,name:e.order.name,contact:e.order.contact,contact_txt:e.order.contact_txt,price:e.order.price,num:e.order.num,total_price:e.order.total_price}).then((function(e){"success"==e.msg&&(clearInterval(n),t.success("^_^订单支付成功!"),i())}))),console.log("支付等待"+a+"s"),16==a&&t.info("请尽快支付,否则订单超时会自动取消"),a>90&&(clearInterval(n),t.info("订单已超时,如已支付,请联系客服"),l())}),4e3)}))})).catch((function(){t.warning("二维码调用失败,请网站管理设置正确的支付接口")})),e.order.payment){case"支付宝当面付":case"虎皮椒支付宝":t.success("请使用手机支付宝扫码支付");break;case"虎皮椒微信":t.success("请使用手机微信扫码支付");break;case"PAYJS支付宝":t.success("请使用手机支付宝扫码支付");break;case"PAYJS微信":t.success("请使用手机微信扫码支付");break;case"码支付支付宝":t.success("请使用手机支付宝扫码支付");break;case"码支付微信":t.success("请使用手机微信扫码支付");break;case"码支付QQ":t.success("请使用手机QQ扫码支付");break;default:t.error("未知付款渠道")}}else t.info("请选择一种支付方式");else t.error("请输入正确的邮箱或手机号!");else t.info("请输入有效的手机号或邮箱")},back_first:function(){e.wizard_step[0].isactive=!0,e.wizard_step[1].isactive=!1,c.push({name:"detail"})},third:i,cancel_order:l,print:function(){window.print()},txt:function(t){var e=document.createElement("a");e.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),e.setAttribute("download","卡密"),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}})}};c("6f5d"),Dt.render=function(t,e,c,Zt,St,At){var Pt=Object(a.C)("router-link");return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[Object(a.j)("div",o,[Object(a.j)("div",l,[i,Object(a.j)("div",r,[Object(a.j)("div",d,[Object(a.j)("div",j,[Object(a.j)("div",b,[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.wizard_step,(function(t){return Object(a.u)(),Object(a.f)("div",{class:["wizard-step ",t.isactive?"wizard-step-active":""],key:t.id},[Object(a.j)("div",u,[Object(a.j)("i",{class:t.icon},null,2)]),Object(a.j)("div",O,Object(a.F)(t.title),1)],2)})),128))])])]),t.wizard_step[0].isactive?(Object(a.u)(),Object(a.f)("form",f,[Object(a.j)("div",p,[Object(a.j)("div",h,[m,Object(a.j)("div",v,[Object(a.Q)(Object(a.j)("input",{type:"email",name:"email",class:"form-control",placeholder:"(用于接收卡密信息)","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.order.contact=e})},null,512),[[a.M,t.order.contact]])])]),Object(a.j)("div",g,[k,Object(a.j)("div",w,[Object(a.Q)(Object(a.j)("textarea",{class:"form-control",name:"address",placeholder:"(此处可留空)","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.order.contact_txt=e})},null,512),[[a.M,t.order.contact_txt]])])]),Object(a.j)("div",y,[_,Object(a.j)("div",x,[Object(a.j)("div",C,[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.payment,(function(c){return Object(a.u)(),Object(a.f)("label",{class:"selectgroup-item",key:c.id},[Object(a.Q)(Object(a.j)("input",{type:"radio",name:"value",value:c.name,class:"selectgroup-input","onUpdate:modelValue":e[3]||(e[3]=function(e){return t.order.payment=e})},null,8,["value"]),[[a.K,t.order.payment]]),Object(a.j)("span",M,Object(a.F)(c.icon),1)])})),128))])])]),Object(a.j)("div",L,[F,Object(a.j)("div",V,[Object(a.j)("a",{onClick:e[4]||(e[4]=function(t){return Zt.second()}),class:"btn btn-icon icon-right btn-primary"},[H,z])])])])])):Object(a.g)("",!0),t.wizard_step[1].isactive?(Object(a.u)(),Object(a.f)("form",U,[Object(a.j)("div",B,[Object(a.j)("div",Q,[Object(a.j)("div",Z,[Object(a.j)("div",S,[Object(a.j)("div",A,[P,Object(a.j)("div",E,[Object(a.j)("div",I,[Object(a.j)("address",null,[D,T,Object(a.i)(" 联系方式:"+Object(a.F)(t.order.contact),1),R,Object(a.i)(" "+Object(a.F)(t.order.contact_txt?"备注:"+t.order.contact_txt:""),1)])]),Object(a.j)("div",J,[Object(a.j)("address",null,[N,Y,Object(a.i)(" "+Object(a.F)(t.order.date),1),$,q])])])])]),Object(a.j)("div",X,[Object(a.j)("div",K,[G,Object(a.j)("div",W,[Object(a.j)("table",tt,[et,Object(a.j)("tr",null,[ct,Object(a.j)("td",null,Object(a.F)(t.order.name),1),Object(a.j)("td",at,"¥"+Object(a.F)(t.order.price),1),Object(a.j)("td",nt,Object(a.F)(t.order.num),1),Object(a.j)("td",st,Object(a.F)(t.order.total_price),1)])])]),Object(a.j)("div",ot,[Object(a.j)("div",lt,[it,Object(a.j)("div",rt,[Object(a.j)("a",{href:t.order.pay_url},[Object(a.j)("img",{src:t.order.pay_qrcode},null,8,["src"])],8,["href"])])]),Object(a.j)("div",dt,[jt,Object(a.j)("div",bt,[ut,Object(a.j)("div",Ot,"¥"+Object(a.F)(t.order.total_price),1)])])])])])]),ft,Object(a.j)("div",pt,[Object(a.j)("div",ht,[Object(a.j)(Pt,{to:{name:"detail"},onClick:e[5]||(e[5]=function(t){return Zt.cancel_order()}),class:"btn btn-danger btn-icon icon-left"},{default:Object(a.P)((function(){return[mt,vt]})),_:1})])])])])])):Object(a.g)("",!0),t.wizard_step[2].isactive?(Object(a.u)(),Object(a.f)("form",gt,[Object(a.j)("div",kt,[Object(a.j)("div",wt,[Object(a.j)("div",yt,[Object(a.j)("div",_t,[Object(a.j)("div",xt,[Ct,Object(a.j)("div",Mt,[Object(a.j)("a",{onClick:e[6]||(e[6]=function(e){return Zt.txt(t.order.card)}),class:"btn btn-success"},[Lt,Ft])])]),Object(a.j)("div",Vt,[Object(a.j)("h6",null,"订单号:"+Object(a.F)(t.order.out_order_id),1),Object(a.j)("div",Ht,[Object(a.j)("div",zt,[Object(a.j)("p",Ut,"交易时间:"+Object(a.F)(t.order.date),1),Object(a.j)("p",Bt,"联系方式:"+Object(a.F)(t.order.contact),1)])]),Qt,Object(a.j)("p",null,Object(a.F)(t.order.card),1)])])])])])])):Object(a.g)("",!0)])])])])])},e.default=Dt},"4d95":function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"图片管理")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 简易图床,如果能用CDN外链图床,请尽量外链。 ",-1),i={class:"row"},r={class:"col-6"},d={class:"card"},j=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"图片上传")],-1),b={class:"card-body"},u={class:"form-group"},O={key:0},f=Object(a.j)("p",{class:"badge badge-success"},"上传成功 -- 点击可复制url地址",-1),p=Object(a.j)("br",null,null,-1),h=Object(a.j)("br",null,null,-1),m={class:"card-footer"},v=Object(a.h)('

使用须知

支持格式png、jpg\\jpeg、gif

支付Logo规则:png格式,XX大小

商品主图:推荐300X300px

内链地址:网站设置后台,图片栏可填写该参数

外链地址:公网访问地址

',1),g=c("5530"),k=c("6c42"),w=c("bc3a"),y=c.n(w),_={setup:function(){var t=Object(a.y)({file:null,url:"",o_url:""}),e=Object(k.b)();return Object(g.a)(Object(g.a)({},Object(a.H)(t)),{},{save:function(){if(null!=t.file){e.info("开始上传图片");var c=new FormData;c.append("file",t.file);var a={headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer "+window.localStorage.getItem("access_token")}};y.a.post("api/v4/upload",c,a).then((function(c){console.log(c.data),e.success("图片上传成功!"),t.url="images/"+c.data.info,t.o_url=window.location.origin+"/"+t.url,t.file=null})).catch((function(t){console.log(t)}))}else e.error("请先选择上传文件")},handleFileUpload:function(e){t.file=e.target.files[0]},copy:function(t){var c=document.createElement("input");c.value=t,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c),e.success("图片地址已复制")}})},render:function(t,e,c,g,k,w){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[j,Object(a.j)("div",b,[Object(a.j)("div",u,[Object(a.j)("input",{onChange:e[1]||(e[1]=function(){return g.handleFileUpload.apply(g,arguments)}),type:"file",accept:".png,.jpg,.jpeg,.gif",class:"form-control"},null,32)]),t.url?(Object(a.u)(),Object(a.f)("div",O,[f,p,Object(a.j)("p",{onClick:e[2]||(e[2]=function(e){return g.copy(t.url)}),class:"badge badge-primary"},"内链地址:"+Object(a.F)(t.url),1),h,Object(a.j)("p",{onClick:e[3]||(e[3]=function(e){return g.copy(t.o_url)}),class:"badge badge-info"},"外链地址:"+Object(a.F)(t.o_url),1)])):Object(a.g)("",!0)]),Object(a.j)("div",m,[Object(a.j)("button",{onClick:e[4]||(e[4]=function(){return g.save.apply(g,arguments)}),type:"submit",class:"btn btn-primary"},"上传图片")])])]),v])])])}};e.default=_},"51c5":function(t,e,c){"use strict";c("f38b")},"524b":function(t,e,c){"use strict";c("edaf")},"5ace":function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n={class:"row"},s={class:"col-lg-4 col-md-4 col-sm-12"},o={class:"card card-statistic-2"},l={class:"card-stats"},i=Object(a.j)("div",{class:"card-stats-title"},[Object(a.i)("Order Statistics - "),Object(a.j)("div",{class:"dropdown d-inline"})],-1),r={class:"card-stats-items"},d={class:"card-stats-item"},j={class:"card-stats-item-count"},b=Object(a.j)("div",{class:"card-stats-item-label"},"分类",-1),u={class:"card-stats-item"},O={class:"card-stats-item-count"},f=Object(a.j)("div",{class:"card-stats-item-label"},"商品",-1),p={class:"card-stats-item"},h={class:"card-stats-item-count"},m=Object(a.j)("div",{class:"card-stats-item-label"},"卡密",-1),v=Object(a.j)("div",{class:"card-icon shadow-primary bg-primary"},[Object(a.j)("i",null,[Object(a.j)("svg",{width:"28",height:"28",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("g",null,[Object(a.j)("g",null,[Object(a.j)("rect",{"fill-opacity":"0.01",fill:"#FFFFFF",x:"0",y:"0",width:"48",height:"48","stroke-width":"4",stroke:"none","fill-rule":"evenodd"}),Object(a.j)("rect",{stroke:"#ffffff","stroke-width":"4",fill:"#6777ef","fill-rule":"nonzero","stroke-linejoin":"round",x:"4",y:"6",width:"40",height:"36",rx:"2"}),Object(a.j)("path",{d:"M4,18 L44,18",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","fill-rule":"evenodd"}),Object(a.j)("path",{d:"M17.5,18 L17.5,42",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","fill-rule":"evenodd"}),Object(a.j)("path",{d:"M30.5,18 L30.5,42",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","fill-rule":"evenodd"}),Object(a.j)("path",{d:"M4,30 L44,30",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","fill-rule":"evenodd"}),Object(a.j)("path",{d:"M44,8 L44,40 C44,41.1045695 43.1045695,42 42,42 L6,42 C4.8954305,42 4,41.1045695 4,40 L4,8",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",fill:"none","fill-rule":"evenodd"})])])])])],-1),g={class:"card-wrap"},k=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"总订单")],-1),w={class:"card-body"},y={class:"col-lg-4 col-md-4 col-sm-12"},_={class:"card card-statistic-2"},x=Object(a.h)('
',1),C=Object(a.j)("div",{class:"card-icon shadow-primary bg-primary"},[Object(a.j)("i",null,[Object(a.j)("svg",{width:"28",height:"28",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M18 22H30",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M18 28H30",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M24.0083 22V34",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M30 15L24 21L18 15",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"})])])],-1),M={class:"card-wrap"},L=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"总收益")],-1),F={class:"card-body"},V={class:"col-lg-4 col-md-4 col-sm-12"},H={class:"card card-statistic-2"},z=Object(a.h)('
',1),U=Object(a.j)("div",{class:"card-icon shadow-primary bg-primary"},[Object(a.j)("i",null,[Object(a.j)("svg",{width:"28",height:"28",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M6 6V42H42",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M14 34L22 18L32 27L42 6V34H14Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"})])])],-1),B={class:"card-wrap"},Q=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"销售数量")],-1),Z={class:"card-body"},S=Object(a.h)('
',1),A=c("5530"),P=c("f96b"),E=c("6c42"),I=c("30ef"),D=c.n(I),T={setup:function(){var t=Object(a.y)({data:{cag_num:4,shop_num:5,card_num:10,order_num:12,total_income:99.99,total_num:152,history_date:[],history_price:[]},balance_chart:{type:"line",data:{labels:["16-07-2018","17-07-2018","18-07-2018","19-07-2018","20-07-2018","21-07-2018","22-07-2018","23-07-2018","24-07-2018","25-07-2018","26-07-2018","27-07-2018","28-07-2018","29-07-2018","30-07-2018","31-07-2018"],datasets:[{label:"Balance",data:[50,61,80,50,72,52,60,41,30,45,70,40,93,63,50,62],backgroundColor:"#fff",borderWidth:3,borderColor:"rgba(63,82,227,1)",pointBorderWidth:0,pointBorderColor:"transparent",pointRadius:3,pointBackgroundColor:"transparent",pointHoverBackgroundColor:"rgba(63,82,227,1)"}]},options:{layout:{padding:{bottom:-1,left:-1}},legend:{display:!1},scales:{yAxes:[{gridLines:{display:!1,drawBorder:!1},ticks:{beginAtZero:!0,display:!1}}],xAxes:[{gridLines:{drawBorder:!1,display:!1},ticks:{display:!1}}]}}},date_price:{type:"line",data:{labels:[1,2,3,4,5,6,7],datasets:[{label:"Statistics",data:[460,458,330,502,430,610,488],backgroundColor:"#6777ef",borderColor:"#6777ef",borderWidth:2.5,pointBackgroundColor:"#ffffff",pointRadius:4}]},options:{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},scales:{yAxes:[{gridLines:{drawBorder:!1,color:"#f2f2f2"},ticks:{beginAtZero:!0,stepSize:150}}],xAxes:[{ticks:{display:!1},gridLines:{display:!1}}]}}}}),e=Object(E.b)(),c=function(){P.a.getDashBoard().then((function(e){t.data=e,t.date_price.data.labels=t.data.history_date,t.date_price.data.datasets[0].data=t.data.history_price,n()})).catch((function(){e.warning("数据获取异常")}))},n=function(){var e=document.getElementById("date_price").getContext("2d");new D.a(e,Object(A.a)({},t.date_price))};return Object(a.s)((function(){var e,a;c(),e=document.getElementById("balance-chart").getContext("2d"),new D.a(e,Object(A.a)({},t.balance_chart)),a=document.getElementById("sales-chart").getContext("2d"),new D.a(a,Object(A.a)({},t.balance_chart))})),Object(A.a)(Object(A.a)({},Object(a.H)(t)),{},{get_data:c})},render:function(t,e,c,A,P,E){return Object(a.u)(),Object(a.f)("div",null,[Object(a.j)("div",n,[Object(a.j)("div",s,[Object(a.j)("div",o,[Object(a.j)("div",l,[i,Object(a.j)("div",r,[Object(a.j)("div",d,[Object(a.j)("div",j,Object(a.F)(t.data.cag_num),1),b]),Object(a.j)("div",u,[Object(a.j)("div",O,Object(a.F)(t.data.shop_num),1),f]),Object(a.j)("div",p,[Object(a.j)("div",h,Object(a.F)(t.data.card_num),1),m])])]),v,Object(a.j)("div",g,[k,Object(a.j)("div",w,Object(a.F)(t.data.order_num),1)])])]),Object(a.j)("div",y,[Object(a.j)("div",_,[x,C,Object(a.j)("div",M,[L,Object(a.j)("div",F," ¥"+Object(a.F)(t.data.total_income),1)])])]),Object(a.j)("div",V,[Object(a.j)("div",H,[z,U,Object(a.j)("div",B,[Q,Object(a.j)("div",Z,Object(a.F)(t.data.total_num),1)])])])]),S])}};e.default=T},"5c1a":function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n=c("21fa"),s=c.n(n),o={class:"section"},l={class:"d-flex flex-wrap align-items-stretch"},i={class:"col-lg-4 col-md-6 col-12 order-lg-1 min-vh-100 order-2 bg-white"},r={class:"p-4 m-3"},d=Object(a.j)("img",{src:s.a,alt:"logo",width:"80",class:"shadow-light rounded-circle mb-5 mt-2"},null,-1),j=Object(a.j)("h4",{class:"text-dark font-weight-normal"},"Welcome to Back!",-1),b=Object(a.j)("br",null,null,-1),u={class:"needs-validation"},O={class:"form-group"},f=Object(a.j)("label",{for:"email"},"邮箱:",-1),p=Object(a.j)("div",{class:"invalid-feedback"}," Please fill in your email ",-1),h={class:"form-group"},m=Object(a.j)("div",{class:"d-block"},[Object(a.j)("label",{for:"password",class:"control-label"},"密码:")],-1),v=Object(a.j)("div",{class:"invalid-feedback"}," please fill in your password ",-1),g={class:"form-group text-center"},k=Object(a.j)("div",{class:"text-center mt-5 text-small"}," Copyright 2020©Power by 💙 BaiYue ",-1),w=Object(a.h)('

Good Morning

Bali, Indonesia
Photo by
',1),y=c("5530"),_=c("f96b"),x=c("6c42"),C=c("6c02"),M={setup:function(){var t=Object(a.y)({email:"",password:""}),e=Object(x.b)(),c=Object(C.c)();return Object(y.a)(Object(y.a)({},Object(a.H)(t)),{},{postLogin:function(){""!=t.email&&""!=t.password?_.a.postlogin({email:t.email,password:t.password}).then((function(t){localStorage.setItem("access_token",t.access_token),c.push({name:"admin"})})).catch((function(t){t.length>14?e.error("您操作的太频繁了,待会再来"):e.warning("账号或密码不正确")})):e.info("请填写账号或密码")}})},render:function(t,e,c,n,s,y){return Object(a.u)(),Object(a.f)("section",o,[Object(a.j)("div",l,[Object(a.j)("div",i,[Object(a.j)("div",r,[d,j,b,Object(a.j)("form",u,[Object(a.j)("div",O,[f,Object(a.Q)(Object(a.j)("input",{"onUpdate:modelValue":e[1]||(e[1]=function(e){return t.email=e}),type:"email",class:"form-control",name:"email",tabindex:"1",required:"",autofocus:""},null,512),[[a.M,t.email]]),p]),Object(a.j)("div",h,[m,Object(a.Q)(Object(a.j)("input",{"onUpdate:modelValue":e[2]||(e[2]=function(e){return t.password=e}),type:"password",class:"form-control",name:"password",tabindex:"2",required:""},null,512),[[a.M,t.password]]),v]),Object(a.j)("div",g,[Object(a.j)("a",{type:"",class:"btn btn-primary btn-lg btn-icon icon-right",onClick:e[3]||(e[3]=function(){return n.postLogin.apply(n,arguments)})}," 登录 ")])]),k])]),w])])}};e.default=M},"5de8":function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"卡密列表")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 卡密可以单独导入,也可以批量导入,仅有单独卡密可支持重复发送,若单个商品下有多个卡密,则不支持重复发送 ",-1),i={class:"row"},r={class:"col"},d={class:"card"},j=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"卡密详情"),Object(a.j)("div",{class:"card-header-action"},[Object(a.j)("a",{class:"btn btn-success","data-toggle":"modal","data-target":"#add"},[Object(a.i)("新增卡密 "),Object(a.j)("i",{class:"fas fa-chevron-right"})])])],-1),b={class:"card-body"},u={class:"table-responsive table-invoice"},O={class:"table table-striped table-sm"},f=Object(a.j)("tr",null,[Object(a.j)("th",null,"ID"),Object(a.j)("th",null,"商品名称"),Object(a.j)("th",null,"卡密信息"),Object(a.j)("th",null,"状态"),Object(a.j)("th",null,"重复"),Object(a.j)("th",null,"操作")],-1),p={class:"font-weight-600"},h={class:"font-weight-600"},m=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"})])],-1),v=Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:"#fc544b",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M16 24L32 24",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"})])],-1),g={class:"card-footer text-center"},k={class:"d-inline-block"},w={class:"pagination mb-0"},y={class:"page-item"},_={class:"page-item"},x={class:"page-item"},C={class:"page-item"},M={class:"modal fade",id:"add",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"add","aria-hidden":"true"},L={class:"modal-dialog",role:"document"},F={class:"modal-content"},V=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"新增卡密"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),H={class:"modal-body"},z={class:"form-group"},U=Object(a.j)("label",null,"选择商品 ",-1),B=Object(a.j)("label",null,[Object(a.i)("卡密信息 "),Object(a.j)("code",null,"【单独插入】")],-1),Q=Object(a.j)("label",null,[Object(a.i)("批量导入卡密信息 "),Object(a.j)("code",null,"【要求每行一条卡密信息】")],-1),Z={class:"custom-switch mt-2"},S=Object(a.i)("是否重复使用该卡密: "),A=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),P={class:"modal-footer"},E=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1),I={class:"modal fade",id:"edit",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"edit","aria-hidden":"true"},D={class:"modal-dialog",role:"document"},T={class:"modal-content"},R=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"编辑卡密"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),J={class:"modal-body"},N={class:"form-group"},Y=Object(a.j)("label",null,"商品名称 ",-1),$=Object(a.j)("label",null,"卡密信息 ",-1),q={class:"custom-switch mt-2"},X=Object(a.i)("是否重复使用该卡密: "),K=Object(a.j)("span",{class:"custom-switch-indicator"},null,-1),G={class:"modal-footer"},W=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1);c("4160"),c("b0c0"),c("b64b"),c("159b");var tt=c("5530"),et=c("f96b"),ct=c("6c42"),at={setup:function(){var t=Object(a.y)({cards:[],edit_card:{},edit_card_new:{},card_id:null,add_card:{card:"",cards:"",data:""},shops:[],page:1,max_page:1}),e=Object(ct.b)(),c=function(e){et.a.getCard({page:e}).then((function(e){t.cards=e}))},n=function(){et.a.getCardPages().then((function(e){t.max_page=e}))};return Object(a.s)((function(){c(1),n(),et.a.getShop().then((function(e){e.forEach((function(e){t.shops.push(e.name)}))}))})),Object(a.O)((function(){c(t.page)})),Object(tt.a)(Object(tt.a)({},Object(a.H)(t)),{},{del:function(a){t.card_id=t.cards[a].id,et.a.postCard({id:t.card_id,methord:"delete"}).then((function(){e.success("删除成功"),c(t.page),t.card_id=null})).catch((function(){e.warning("删除失败")}))},edit:function(e){t.edit_card=t.cards[e]},add:function(){0!=Object.keys(t.add_card).length?""!=t.add_card.card||""!=t.add_card.cards?(""!=t.add_card.card?t.add_card.data=t.add_card.card:t.add_card.data=t.add_card.cards,et.a.postCard({prod_name:t.add_card.prod_name,card:t.add_card.data,methord:"add",reuse:t.add_card.reuse}).then((function(a){e.success(a),t.add_card={card:"",cards:"",data:""},c(t.page)})).catch((function(){e.error("呀!导入异常")})),n()):e.warning("请填写至少一个卡密信息"):e.warning("请填写正确的参数")},edit_save:function(){t.edit_card.methord="update",et.a.postCard(t.edit_card).then((function(){e.success("修改成功")})).catch((function(){e.error("啊呀呀,出错了!"),c()}))},add_page:function(){var c=t.page+1;c>t.max_page?e.info("当前已经是最后一页了"):t.page=c},sub_page:function(){var c=t.page-1;c<1?e.info("当前已经是第一页了"):t.page=c}})},render:function(t,e,c,tt,et,ct){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[j,Object(a.j)("div",b,[Object(a.j)("div",u,[Object(a.j)("table",O,[Object(a.j)("tbody",null,[f,(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.cards,(function(t,e){return Object(a.u)(),Object(a.f)("tr",{key:t.id},[Object(a.j)("td",null,Object(a.F)(t.id),1),Object(a.j)("td",p,Object(a.F)(t.prod_name),1),Object(a.j)("td",h,Object(a.F)(t.card),1),Object(a.j)("td",null,[Object(a.j)("div",{class:["badge",0==t.isused?"badge-info":"badge-secondary"]},Object(a.F)(0==t.isused?"有效":"已使用"),3)]),Object(a.j)("td",null,[Object(a.j)("div",{class:["badge",t.reuse?"badge-info":"badge-secondary"]},Object(a.F)(1==t.reuse?"Yes":"No"),3)]),Object(a.j)("td",null,[Object(a.j)("a",{onClick:function(t){return tt.edit(e)},class:"btn btn-primary mr-1",style:{"line-height":"0px"},"data-toggle":"modal",title:"","data-original-title":"Edit","data-target":"#edit"},[m],8,["onClick"]),Object(a.j)("a",{onClick:function(t){return tt.del(e)},class:"btn btn-danger ",style:{"line-height":"0px"}},[v],8,["onClick"])])])})),128))])])])]),Object(a.j)("div",g,[Object(a.j)("nav",k,[Object(a.j)("ul",w,[Object(a.j)("li",y,"总共"+Object(a.F)(t.max_page)+"页,当前第"+Object(a.F)(t.page)+"页",1),Object(a.j)("li",_,[Object(a.j)("a",{class:"page-link",onClick:e[1]||(e[1]=function(){return tt.sub_page.apply(tt,arguments)})},"上一页")]),Object(a.j)("li",x,[Object(a.Q)(Object(a.j)("input",{type:"number",min:"1",max:t.max_page,"onUpdate:modelValue":e[2]||(e[2]=function(e){return t.page=e}),style:{width:"50px"}},null,8,["max"]),[[a.M,t.page]])]),Object(a.j)("li",C,[Object(a.j)("button",{class:"page-link",onClick:e[3]||(e[3]=function(){return tt.add_page.apply(tt,arguments)})},"下一页")])])])])])])])]),Object(a.j)("div",M,[Object(a.j)("div",L,[Object(a.j)("div",F,[V,Object(a.j)("div",H,[Object(a.j)("div",z,[U,Object(a.Q)(Object(a.j)("select",{class:"form-control","onUpdate:modelValue":e[4]||(e[4]=function(e){return t.add_card.prod_name=e})},[(Object(a.u)(!0),Object(a.f)(a.a,null,Object(a.A)(t.shops,(function(t){return Object(a.u)(),Object(a.f)("option",{key:t.id},Object(a.F)(t),1)})),128))],512),[[a.L,t.add_card.prod_name]]),B,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[5]||(e[5]=function(e){return t.add_card.card=e})},null,512),[[a.M,t.add_card.card]]),Q,Object(a.Q)(Object(a.j)("textarea",{class:"form-control form-control-alternative",style:{height:"150px"},placeholder:"Write a large text here ...","onUpdate:modelValue":e[6]||(e[6]=function(e){return t.add_card.cards=e})},null,512),[[a.M,t.add_card.cards]]),Object(a.j)("label",Z,[S,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[7]||(e[7]=function(e){return t.add_card.reuse=e})},null,512),[[a.J,t.add_card.reuse]]),A])])]),Object(a.j)("div",P,[E,Object(a.j)("button",{onClick:e[8]||(e[8]=function(t){return tt.add()}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])]),Object(a.j)("div",I,[Object(a.j)("div",D,[Object(a.j)("div",T,[R,Object(a.j)("div",J,[Object(a.j)("div",N,[Y,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[9]||(e[9]=function(e){return t.edit_card.prod_name=e})},null,512),[[a.M,t.edit_card.prod_name]]),$,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[10]||(e[10]=function(e){return t.edit_card.card=e})},null,512),[[a.M,t.edit_card.card]]),Object(a.j)("label",q,[X,Object(a.Q)(Object(a.j)("input",{type:"checkbox",name:"custom-switch-checkbox",class:"custom-switch-input","onUpdate:modelValue":e[11]||(e[11]=function(e){return t.edit_card.reuse=e})},null,512),[[a.J,t.edit_card.reuse]]),K])])]),Object(a.j)("div",G,[W,Object(a.j)("button",{onClick:e[12]||(e[12]=function(t){return tt.edit_save()}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])])])}};e.default=at},"602d":function(t,e,c){"use strict";c("242c")},"624c":function(t,e,c){"use strict";c.r(e);var a=c("7a23"),n=Object(a.j)("div",{class:"section-header"},[Object(a.j)("h1",null,"账户修改")],-1),s={class:"section-body"},o=Object(a.j)("h2",{class:"section-title"},"Tips",-1),l=Object(a.j)("p",{class:"section-lead"}," 请务必牢记新密码,暂时不支持账号密码重置 ",-1),i={class:"row"},r={class:"col"},d={class:"card"},j=Object(a.j)("div",{class:"card-header"},[Object(a.j)("h4",null,"登录管理")],-1),b={class:"card-body p-0"},u={class:"table-responsive table-invoice"},O={class:"table table-striped"},f=Object(a.j)("tr",null,[Object(a.j)("th",null,"ID"),Object(a.j)("th",null,"管理员账号"),Object(a.j)("th",null,"操作")],-1),p=Object(a.j)("td",null,[Object(a.j)("a",{href:"#"},"1")],-1),h={class:"font-weight-600"},m=Object(a.j)("td",null,[Object(a.j)("a",{class:"btn btn-primary btn-action mr-1","data-toggle":"modal",title:"","data-original-title":"Edit","data-target":"#edit"},[Object(a.j)("i",null,[Object(a.j)("svg",{width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(a.j)("rect",{width:"48",height:"48",fill:"white","fill-opacity":"0.01"}),Object(a.j)("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:"#ffffff","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round"}),Object(a.j)("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:"#6777ef",stroke:"#ffffff","stroke-width":"4","stroke-linejoin":"round"})])])])],-1),v={class:"modal fade",id:"edit",tabindex:"-1",role:"dialog","data-backdrop":"false","aria-labelledby":"edit","aria-hidden":"true"},g={class:"modal-dialog",role:"document"},k={class:"modal-content"},w=Object(a.j)("div",{class:"modal-header"},[Object(a.j)("h5",{class:"modal-title",id:"exampleModalLabel"},"编辑账号"),Object(a.j)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close"},[Object(a.j)("span",{"aria-hidden":"true"},"×")])],-1),y={class:"modal-body"},_={class:"form-group"},x=Object(a.j)("label",null,"账号: ",-1),C=Object(a.j)("label",null,"密码: ",-1),M={class:"modal-footer"},L=Object(a.j)("button",{type:"button",class:"btn btn-secondary","data-dismiss":"modal"},"Close",-1),F=c("5530"),V=c("f96b"),H=c("6c42"),z={setup:function(){var t=Object(a.y)({user:{},edit_user:{}}),e=Object(H.b)(),c=function(){V.a.getAdminAcount().then((function(e){t.user=e}))};return Object(a.s)((function(){c()})),Object(F.a)(Object(F.a)({},Object(a.H)(t)),{},{edit_save:function(){""!=t.user.email&&""!=t.user.password?V.a.updateAdminAcount({email:t.user.email,password:t.user.password}).then((function(){e.success("修改成功"),e.warning("正在跳转登录页面"),localStorage.removeItem("access_token"),window.location.href="#/login"})).catch((function(){e.error("啊呀呀,出错了!"),c()})):e.warning("请填写账号或密码")}})},render:function(t,e,c,F,V,H){return Object(a.u)(),Object(a.f)("div",null,[n,Object(a.j)("div",s,[o,l,Object(a.j)("div",i,[Object(a.j)("div",r,[Object(a.j)("div",d,[j,Object(a.j)("div",b,[Object(a.j)("div",u,[Object(a.j)("table",O,[Object(a.j)("tbody",null,[f,Object(a.j)("tr",null,[p,Object(a.j)("td",h,Object(a.F)(t.user.email),1),m])])])])])])])])]),Object(a.j)("div",v,[Object(a.j)("div",g,[Object(a.j)("div",k,[w,Object(a.j)("div",y,[Object(a.j)("div",_,[x,Object(a.Q)(Object(a.j)("input",{type:"text",class:"form-control form-control-sm","onUpdate:modelValue":e[1]||(e[1]=function(e){return t.user.email=e})},null,512),[[a.M,t.user.email]]),C,Object(a.Q)(Object(a.j)("input",{type:"password",class:"form-control form-control-sm","onUpdate:modelValue":e[2]||(e[2]=function(e){return t.user.password=e})},null,512),[[a.M,t.user.password]])])]),Object(a.j)("div",M,[L,Object(a.j)("button",{onClick:e[3]||(e[3]=function(){return F.edit_save.apply(F,arguments)}),type:"button",class:"btn btn-primary","data-dismiss":"modal"},"Save changes")])])])])])}};e.default=z},"637f":function(t,e,c){"use strict";c.r(e),c("b0c0"),c("4c53");var a=c("7a23"),n={class:"section-body"},s=Object(a.j)("div",{class:"card",style:{padding:"15px 22px"}},[Object(a.j)("h2",{class:"section-title",style:{margin:"0px"}},"产品详情")],-1),o={class:"row"},l={class:"col"},i={class:"card"},r=Object(a.j)("div",{class:"card-header"},null,-1),d={class:"card-body"},j={class:"row "},b={class:"col-md-6 col-sm-12 text-center"},u={class:"col-md-6 col-sm-12 text-left"},O={class:"mt-2"},f={class:"card-body p-0"},p={class:"table"},h={key:0},m={class:"table table-striped table-md"},v={class:"text-warning"},g=Object(a.j)("th",null,"价格",-1),k=Object(a.j)("td",null,"起批数量",-1),w={key:1},y=Object(a.j)("table",{class:"table table-striped table-md"},[Object(a.j)("tbody",null,[Object(a.j)("tr",{class:"text-warning"},[Object(a.j)("th",null,"价格"),Object(a.j)("th",null,"¥9.9")])])],-1),_={class:"form-group"},x={class:"input-group mb-3"},C={class:"input-group-prepend"},M={class:"input-group-append"},L={class:"row d-flex justify-content-center align-items-center"},F={class:"col-8 bg-light text-center"},V={style:{margin:"8px"}},H=Object(a.i)("数量:"),z={class:"text-danger"},U=Object(a.i)(" 个 | 价格:"),B={class:"text-danger"},Q={class:"col-4 text-right"},Z=Object(a.i)("立即购买"),S=Object(a.j)("hr",null,null,-1),A=Object(a.j)("h5",null,"产品描述:",-1),P={class:"row card-body"};c("fb6a"),c("b680");var E=c("5530"),I=c("f96b"),D=c("6c02"),T={setup:function(){var t=Object(a.y)({shop:{price:1},pifa:!1,nums:1,total_price:null}),e=Object(D.c)().currentRoute.value.params.id;Object(a.s)((function(){I.a.getDetail({prod_id:e}).then((function(e){t.shop=e,c()}))}));var c=function(){""!=t.shop.price_wholesale&&null!=t.shop.price_wholesale&&t.shop.price_wholesale.length>4&&(t.pifa=!0)};return Object(a.O)((function(){if(t.pifa)switch(t.nums<0&&(t.nums=1),t.shop.pifa.nums.length){case 2:t.nums>t.shop.pifa.slice[0]?t.shop.price=t.shop.pifa.prices[1]:t.shop.price=t.shop.pifa.prices[0];break;case 3:t.numst.shop.pifa.slice[1]?t.shop.price=t.shop.pifa.prices[2]:t.shop.price=t.shop.pifa.prices[1];break;case 4:t.numst.shop.pifa.slice[0]&&t.numst.shop.pifa.slice[1]&&t.nums