You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
7.6 KiB
1 lines
7.6 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-234803c2"],{"6cb0":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"auth acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("i",{staticClass:"el-icon-share iconIos blue"}),t._v(" "),-1===t.status||-9===t.status?e("div",{staticClass:"text"},[e("div",[t._v("体验时间剩余 "+t._s(t.dayNum)+"天")]),t._v(" "),e("div",{staticClass:"code"},[t._v("到期后后台将不能正常使用,如果您对我们的系统满意,请支持正版!")])]):2===t.status?e("div",{staticClass:"text"},[e("div",[t._v("体验时间剩余 "+t._s(t.dayNum)+"天")]),t._v(" "),e("div",{staticClass:"code red"},[t._v("审核未通过")])]):1===t.status?e("div",{staticClass:"text"},[e("div",[t._v("商业授权")]),t._v(" "),e("div",{staticClass:"code"},[t._v("授权码:"+t._s(t.authCode))])]):0===t.status?e("div",{staticClass:"text"},[e("div",[t._v("体验时间剩余 "+t._s(t.dayNum)+"天")]),t._v(" "),e("div",{staticClass:"code blue"},[t._v("授权申请已提交,请等待审核")])]):t._e()]),t._v(" "),e("div",[1===t.status?e("el-button",{on:{click:function(a){return t.toCrmeb()}}},[t._v("进入官网")]):-1===t.status||-9===t.status?e("el-button",{attrs:{type:"primary"},on:{click:t.applyAuth}},[t._v("申请授权")]):2===t.status?e("el-button",{attrs:{type:"primary"},on:{click:t.applyAuth}},[t._v("重新申请")]):0===t.status?e("el-button",{staticClass:"grey"},[t._v("审核中")]):t._e()],1)])]),t._v(" "),1!=t.copyrightStatus&&1==t.status?e("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[e("div",{staticClass:"auth acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("i",{staticClass:"el-icon-s-help iconIos blue"}),t._v(" "),e("div",{staticClass:"text"},[e("div",[t._v("去版权服务")]),t._v(" "),e("div",{staticClass:"code"},[t._v("购买之后可以设置")])])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.isTemplate=!0,t.title="去版权"}}},[t._v("去版权")])],1)])]):t._e(),t._v(" "),1==t.copyrightStatus&&1==t.status?e("el-card",{staticStyle:{"margin-top":"15px"}},[e("div",{staticClass:"auth acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"iconfont iconbanquan iconIos blue"}),t._v(" "),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"update"},[t._v("修改授权信息:")]),t._v(" "),e("el-input",{staticStyle:{width:"460px"},model:{value:t.copyrightText,callback:function(a){t.copyrightText=a},expression:"copyrightText"}})],1)]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:t.saveCopyRight}},[t._v("保存")])],1),t._v(" "),e("div",{staticClass:"authorized",on:{click:function(a){return t.modalPicTap()}}},[e("div",[e("span",{staticClass:"update"},[t._v("上传授权图片:")])]),t._v(" "),t.authorizedPicture?e("div",{staticClass:"uploadPictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.authorizedPicture,expression:"authorizedPicture"}]})]):e("div",{staticClass:"upload"},[e("div",{staticClass:"iconfont"},[t._v("+")])])]),t._v(" "),e("span",{staticClass:"prompt"},[t._v("建议尺寸:宽290px*高100px")])]):t._e(),t._v(" "),t.isTemplate?e("el-dialog",{staticClass:"mapBox",staticStyle:{padding:"0"},attrs:{visible:t.isTemplate,"before-close":t.handleClose,width:"440px",title:t.title,"close-on-click-modal":"","custom-class":"dialog-scustom"},on:{"update:visible":function(a){t.isTemplate=a}},model:{value:t.isTemplate,callback:function(a){t.isTemplate=a},expression:"isTemplate"}},[e("iframe",{staticStyle:{width:"400px",height:"600px"},attrs:{src:t.iframeUrl+"&inner_frame=1",frameborder:"0"}})]):t._e()],1)},s=[],n=(e("7f7f"),e("f955")),c={name:"Index",data:function(){return{formItem:{company_name:"",domain_name:"",order_id:"",phone:"",captcha:""},ruleValidate:{company_name:[{required:!0,message:"请填写您的企业名称",trigger:"blur"}],domain_name:[{required:!0,message:"请输入域名,格式:baidu.com",trigger:"blur"}],order_id:[{required:!0,message:"请输入您在淘宝或小程序购买的源码订单号",trigger:"blur"}],phone:[{required:!0,message:"请输入负责人电话",trigger:"blur"}],captcha:[{required:!0,message:"请输入验证码",trigger:"blur"}]},dialogVisible:!1,status:-1,dayNum:0,captchs:"http://authorize.crmeb.net/api/captchs/",authCode:"",loading:!1,isTemplate:!1,iframeUrl:"",copyright:"",copyrightText:"",authorizedPicture:"",modalPic:!1,copyrightStatus:0,title:"去版权"}},mounted:function(){var t=this;this.getAuth(),this.getAuthData(),this.captchsChang(),window.addEventListener("message",(function(a){"onCancel"==a.data.event&&t.handleClose()}))},methods:{captchsChang:function(){this.captchs=this.captchs+Date.parse(new Date)},cancel:function(){this.dialogVisible=!1},handleSubmit:function(t){var a=this;this.$refs[t].validate((function(t){if(!t)return!1;a.loading=!0,Object(n["b"])(a.formItem).then((function(t){a.$message.success(t.message),a.loading=!1,a.dialogVisible=!1,a.getAuth()})).catch((function(t){a.loading=!1,a.captchsChang(),a.$message.error(t.message)}))}))},getAuth:function(){var t=this;Object(n["c"])().then((function(a){var e=a.data||{};t.authCode=e.authCode||"",t.status=void 0===e.status?-1:e.status,t.dayNum=e.day||0}))},getAuthData:function(){var t=this;Object(n["k"])().then((function(a){a.data;t.copyrightStatus=a.data.status,-1==a.data.status?t.iframeUrl=a.data.url:(t.copyrightText=a.data.copyright_context||"",t.authorizedPicture=a.data.copyright_image||"")}))},applyAuth:function(){var t=this;Object(n["a"])().then((function(a){t.iframeUrl=a.data.url,t.isTemplate=!0,t.title="申请授权"}))},saveCopyRight:function(){var t=this;Object(n["n"])({copyright_context:this.copyrightText,copyright_image:this.authorizedPicture}).then((function(a){return t.$message.success(a.message)})).catch((function(a){var e=a.message;t.$message.error(e)}))},modalPicTap:function(){var t=this;this.$modalUpload((function(a){t.authorizedPicture=a[0]}))},toCrmeb:function(){window.open("http://www.crmeb.com")},handleClose:function(){this.isTemplate=!1,this.getAuthData()}}},r=c,o=(e("d983"),e("2877")),u=Object(o["a"])(r,i,s,!1,null,"048999ec",null);a["default"]=u.exports},d983:function(t,a,e){"use strict";e("ebe9")},ebe9:function(t,a,e){},f955:function(t,a,e){"use strict";e.d(a,"i",(function(){return s})),e.d(a,"j",(function(){return n})),e.d(a,"g",(function(){return c})),e.d(a,"d",(function(){return r})),e.d(a,"m",(function(){return o})),e.d(a,"l",(function(){return u})),e.d(a,"h",(function(){return d})),e.d(a,"c",(function(){return l})),e.d(a,"k",(function(){return p})),e.d(a,"b",(function(){return h})),e.d(a,"e",(function(){return v})),e.d(a,"a",(function(){return f})),e.d(a,"f",(function(){return m})),e.d(a,"n",(function(){return g}));var i=e("0c6d");function s(){return i["a"].get("safety/database/fileList")}function n(t){return i["a"].delete("safety/database/delete",t)}function c(){return i["a"].get("safety/database/lst")}function r(t){return i["a"].post("safety/database/backups",t)}function o(t){return i["a"].post("safety/database/repair",t)}function u(t){return i["a"].post("safety/database/optimize",t)}function d(t){return i["a"].get("safety/database/detail/".concat(t))}function l(){return i["a"].get("auth")}function p(){return i["a"].get("copyright/auth")}function h(t){return i["a"].post("auth_apply",t)}function v(){return i["a"].get("check_auth")}function f(){return i["a"].get("pay/auth")}function m(t){return i["a"].post("clear/cache",t)}function g(t){return i["a"].post("copyright/save",t)}}}]); |