1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8decc3a"],{"4eaf":function(t,e,a){},"6cb0":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"auth acea-row row-between-wrapper"},[a("div",{staticClass:"acea-row row-middle"},[a("i",{staticClass:"el-icon-share iconIos blue"}),t._v(" "),-1===t.status||-9===t.status?a("div",{staticClass:"text"},[a("div",[t._v("体验时间剩余 "+t._s(t.dayNum)+"天")]),t._v(" "),a("div",{staticClass:"code"},[t._v("到期后后台将不能正常使用,如果您对我们的系统满意,请支持正版!")])]):2===t.status?a("div",{staticClass:"text"},[a("div",[t._v("体验时间剩余 "+t._s(t.dayNum)+"天")]),t._v(" "),a("div",{staticClass:"code red"},[t._v("审核未通过")])]):1===t.status?a("div",{staticClass:"text"},[a("div",[t._v("商业授权")]),t._v(" "),a("div",{staticClass:"code"},[t._v("授权码:"+t._s(t.authCode))])]):0===t.status?a("div",{staticClass:"text"},[a("div",[t._v("体验时间剩余 "+t._s(t.dayNum)+"天")]),t._v(" "),a("div",{staticClass:"code blue"},[t._v("授权申请已提交,请等待审核")])]):t._e()]),t._v(" "),1===t.status?a("el-button",{staticClass:"grey",on:{click:function(e){return t.toCrmeb()}}},[t._v("进入官网")]):-1===t.status||-9===t.status?a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("申请授权")]):2===t.status?a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("重新申请")]):0===t.status?a("el-button",{staticClass:"grey"},[t._v("审核中")]):t._e()],1)]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible,scrollable:"","footer-hide":"",closable:"",title:"申请商业授权","z-index":1,width:"640px","before-close":t.cancel},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"article-manager"},[a("el-form",{ref:"formItem",attrs:{model:t.formItem,"label-width":"100px",rules:t.ruleValidate}},[a("el-form-item",{attrs:{label:"企业名称:",prop:"company_name","label-for":"company_name"}},[a("el-input",{attrs:{placeholder:"请填写您的企业名称"},model:{value:t.formItem.company_name,callback:function(e){t.$set(t.formItem,"company_name",e)},expression:"formItem.company_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"企业域名:",prop:"domain_name","label-for":"domain_name"}},[a("el-input",{attrs:{placeholder:"注:区分二级域名,申请通过后只能使用当前提交的域名"},model:{value:t.formItem.domain_name,callback:function(e){t.$set(t.formItem,"domain_name",e)},expression:"formItem.domain_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单号:","label-for":"order_id",prop:"order_id"}},[a("el-input",{staticClass:"customer",attrs:{placeholder:"请输入您在淘宝或小程序购买的源码订单号"},model:{value:t.formItem.order_id,callback:function(e){t.$set(t.formItem,"order_id",e)},expression:"formItem.order_id"}},[a("a",{attrs:{slot:"append",target:"_blank",href:"http://www.crmeb.com/home/grant/applyauthorize.html"},slot:"append"},[t._v("联系客服获取订单号")])])],1),t._v(" "),a("el-form-item",{attrs:{label:"手机号:","label-for":"phone",prop:"phone"}},[a("el-input",{attrs:{type:"number",placeholder:"负责人电话"},model:{value:t.formItem.phone,callback:function(e){t.$set(t.formItem,"phone",e)},expression:"formItem.phone"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"验证码:","label-for":"captcha",prop:"captcha"}},[a("div",{staticClass:"acea-row row-middle code"},[a("el-input",{staticClass:"input",attrs:{placeholder:"验证码"},model:{value:t.formItem.captcha,callback:function(e){t.$set(t.formItem,"captcha",e)},expression:"formItem.captcha"}}),t._v(" "),a("img",{staticClass:"pictrue",attrs:{src:t.captchs},on:{click:t.captchsChang}})],1)]),t._v(" "),a("el-button",{staticClass:"submit",attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.handleSubmit("formItem")}}},[t._v("提交")])],1)],1)])],1)},n=[],r=(a("7f7f"),a("f955")),i={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}},mounted:function(){this.getAuth(),this.captchsChang()},methods:{captchsChang:function(){this.captchs=this.captchs+Date.parse(new Date)},cancel:function(){this.dialogVisible=!1},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.loading=!0,Object(r["a"])(e.formItem).then((function(t){e.$message.success(t.message),e.loading=!1,e.dialogVisible=!1,e.getAuth()})).catch((function(t){e.loading=!1,e.captchsChang(),e.$message.error(t.message)}))}))},getAuth:function(){var t=this;Object(r["b"])().then((function(e){var a=e.data||{};t.authCode=a.authCode||"",t.status=void 0===a.status?-1:a.status,t.dayNum=a.day||0})).catch((function(e){var a=e.message;t.$message.error(a)}))},toCrmeb:function(){window.open("http://www.crmeb.com")}}},o=i,c=(a("7190"),a("2877")),l=Object(c["a"])(o,s,n,!1,null,"4e8f8401",null);e["default"]=l.exports},7190:function(t,e,a){"use strict";var s=a("4eaf"),n=a.n(s);n.a},f955:function(t,e,a){"use strict";a.d(e,"g",(function(){return n})),a.d(e,"h",(function(){return r})),a.d(e,"e",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"j",(function(){return c})),a.d(e,"i",(function(){return l})),a.d(e,"f",(function(){return u})),a.d(e,"b",(function(){return d})),a.d(e,"a",(function(){return m})),a.d(e,"d",(function(){return f}));var s=a("0c6d");function n(){return s["a"].get("safety/database/fileList")}function r(t){return s["a"].delete("safety/database/delete",t)}function i(){return s["a"].get("safety/database/lst")}function o(t){return s["a"].post("safety/database/backups",t)}function c(t){return s["a"].post("safety/database/repair",t)}function l(t){return s["a"].post("safety/database/optimize",t)}function u(t){return s["a"].get("safety/database/detail/".concat(t))}function d(){return s["a"].get("auth")}function m(t){return s["a"].post("auth_apply",t)}function f(){return s["a"].get("check_auth")}}}]);
|