new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-b17421ce.36ad2b4a.js
2025-03-13 09:24:48 +08:00

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b17421ce"],{"2c3e":function(t,e,n){var r=n("83ab"),i=n("9f7f").MISSED_STICKY,c=n("c6b6"),a=n("edd0"),o=n("69f3").get,u=RegExp.prototype,s=TypeError;r&&i&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===c(this))return!!o(this).sticky;throw new s("Incompatible receiver, RegExp required")}}})},"3e85":function(t,e,n){},"4d63":function(t,e,n){var r=n("83ab"),i=n("cfe9"),c=n("e330"),a=n("94ca"),o=n("7156"),u=n("9112"),s=n("7c73"),d=n("241c").f,l=n("3a9b"),f=n("44e7"),m=n("577e"),p=n("90d8"),h=n("9f7f"),g=n("aeb0"),b=n("cb2d"),y=n("d039"),v=n("1a2d"),O=n("69f3").enforce,j=n("2626"),_=n("b622"),w=n("fce3"),C=n("107c"),x=_("match"),T=i.RegExp,P=T.prototype,k=i.SyntaxError,E=c(P.exec),R=c("".charAt),S=c("".replace),z=c("".indexOf),G=c("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,U=/a/g,$=/a/g,A=(n=new T(U)!==U,h.MISSED_STICKY),M=h.UNSUPPORTED_Y;_=r&&(!n||A||w||C||y((function(){return $[x]=!1,T(U)!==U||T($)===$||"/a/i"!==String(T(U,"i"))})));if(a("RegExp",_)){for(var q=function(t,e){var n,r,i=l(P,this),c=f(t),a=void 0===e,d=[],h=t;if(!i&&c&&a&&t.constructor===q)return t;if((c||l(P,t))&&(t=t.source,a)&&(e=p(h)),t=void 0===t?"":m(t),e=void 0===e?"":m(e),h=t,c=e=w&&"dotAll"in U&&(n=!!e&&-1<z(e,"s"))?S(e,/s/g,""):e,A&&"sticky"in U&&(r=!!e&&-1<z(e,"y"))&&M&&(e=S(e,/y/g,"")),C&&(t=(a=(t=>{for(var e,n=t.length,r=0,i="",c=[],a=s(null),o=!1,u=!1,d=0,l="";r<=n;r++){if("\\"===(e=R(t,r)))e+=R(t,++r);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:if(i+=e,"?:"===G(t,r+1,r+3))continue;E(I,G(t,r+1))&&(r+=2,u=!0),d++;continue;case">"===e&&u:if(""===l||v(a,l))throw new k("Invalid capture group name");a[l]=!0,u=!(c[c.length]=[l,d]),l="";continue}u?l+=e:i+=e}return[i,c]})(t))[0],d=a[1]),a=o(T(t,e),i?this:P,q),(n||r||d.length)&&(e=O(a),n&&(e.dotAll=!0,e.raw=q((t=>{for(var e,n=t.length,r=0,i="",c=!1;r<=n;r++)"\\"===(e=R(t,r))?i+=e+R(t,++r):c||"."!==e?("["===e?c=!0:"]"===e&&(c=!1),i+=e):i+="[\\s\\S]";return i})(t),c)),r&&(e.sticky=!0),d.length)&&(e.groups=d),t!==h)try{u(a,"source",""===h?"(?:)":h)}catch(t){}return a},D=d(T),F=0;D.length>F;)g(q,T,D[F++]);(P.constructor=q).prototype=P,b(i,"RegExp",q,{constructor:!0})}j("RegExp")},"61f7":function(t,e,n){n.d(e,"a",(function(){return c}));var r=n("ade3"),i=n("5530");function c(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,r,i={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(n in i)new RegExp("(".concat(n,")")).test(e)&&(r=i[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+r).substr(r.length)));return e}n("99af"),n("13d5"),n("e9f5"),n("9485"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("498a");var a={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}o((function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)({required:!0,message:t,type:"string"},e)}),"请输入%s"),o((function(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}),"%s格式不正确");var u=Object.keys(a).reduce((function(t,e){return t[e]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a="range"===e?{min:t[0],max:t[1]}:Object(r.a)({},e,t);return Object(i.a)(Object(i.a)({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},a),c)},o(t[e],a[e]),t}),{})},8593:function(t,e,n){n.d(e,"i",(function(){return i})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return a})),n.d(e,"W",(function(){return o})),n.d(e,"m",(function(){return u})),n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return d})),n.d(e,"j",(function(){return l})),n.d(e,"J",(function(){return f})),n.d(e,"B",(function(){return m})),n.d(e,"I",(function(){return p})),n.d(e,"G",(function(){return h})),n.d(e,"D",(function(){return g})),n.d(e,"E",(function(){return b})),n.d(e,"F",(function(){return y})),n.d(e,"H",(function(){return v})),n.d(e,"T",(function(){return O})),n.d(e,"Y",(function(){return j})),n.d(e,"s",(function(){return _})),n.d(e,"c",(function(){return w})),n.d(e,"e",(function(){return C})),n.d(e,"b",(function(){return x})),n.d(e,"d",(function(){return T})),n.d(e,"f",(function(){return P})),n.d(e,"w",(function(){return k})),n.d(e,"u",(function(){return E})),n.d(e,"v",(function(){return R})),n.d(e,"M",(function(){return S})),n.d(e,"L",(function(){return z})),n.d(e,"N",(function(){return G})),n.d(e,"S",(function(){return I})),n.d(e,"o",(function(){return U})),n.d(e,"n",(function(){return $})),n.d(e,"O",(function(){return A})),n.d(e,"q",(function(){return M})),n.d(e,"t",(function(){return q})),n.d(e,"P",(function(){return D})),n.d(e,"a",(function(){return F})),n.d(e,"C",(function(){return N})),n.d(e,"kb",(function(){return Y})),n.d(e,"jb",(function(){return B})),n.d(e,"x",(function(){return J})),n.d(e,"U",(function(){return K})),n.d(e,"y",(function(){return L})),n.d(e,"V",(function(){return V})),n.d(e,"p",(function(){return H})),n.d(e,"A",(function(){return Q})),n.d(e,"z",(function(){return W})),n.d(e,"Q",(function(){return X})),n.d(e,"eb",(function(){return Z})),n.d(e,"gb",(function(){return tt})),n.d(e,"db",(function(){return et})),n.d(e,"hb",(function(){return nt})),n.d(e,"fb",(function(){return rt})),n.d(e,"r",(function(){return it})),n.d(e,"ib",(function(){return ct})),n.d(e,"Z",(function(){return at})),n.d(e,"X",(function(){return ot})),n.d(e,"ab",(function(){return ut})),n.d(e,"R",(function(){return st})),n.d(e,"cb",(function(){return dt})),n.d(e,"K",(function(){return lt})),n.d(e,"bb",(function(){return ft})),n("99af");var r=n("6b6c");function i(t){return Object(r.a)({url:"setting/config_class",method:"get",params:t})}function c(t){return Object(r.a)({url:"setting/config_class/create",method:"get"})}function a(t){return Object(r.a)({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function o(t){return Object(r.a)({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function u(t){return Object(r.a)({url:"setting/config",method:"get",params:t})}function s(t){return Object(r.a)({url:"setting/config/create",method:"get",params:t})}function d(t){return Object(r.a)({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function l(t,e){return Object(r.a)({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function f(t){return Object(r.a)({url:"setting/group",method:"get",params:t})}function m(t){return Object(r.a)({url:t.url,method:t.method,data:t.datas})}function p(t){return Object(r.a)({url:"setting/group/".concat(t),method:"get"})}function h(t,e){return Object(r.a)({url:e,method:"get",params:t})}function g(t,e){return Object(r.a)({url:e,method:"get",params:t})}function b(t,e){return Object(r.a)({url:e,method:"get",params:t})}function y(t,e){return Object(r.a)({url:e,method:"get",params:t})}function v(t){return Object(r.a)({url:t,method:"PUT"})}function O(t){return Object(r.a)({url:"system/log/search_admin",method:"GET"})}function j(t){return Object(r.a)({url:"system/log",method:"GET",params:t})}function _(){return Object(r.a)({url:"system/file",method:"GET"})}function w(){return Object(r.a)({url:"system/backup",method:"GET"})}function C(t){return Object(r.a)({url:"system/backup/read",method:"GET",params:t})}function x(t){return Object(r.a)({url:"system/backup/backup",method:"put",data:t})}function T(t){return Object(r.a)({url:"system/backup/optimize",method:"put",data:t})}function P(t){return Object(r.a)({url:"system/backup/repair",method:"put",data:t})}function k(t){return Object(r.a)({url:"system/backup/file_list",method:"GET"})}function E(t){return Object(r.a)({url:"backup/download",method:"get",params:t})}function R(t){return Object(r.a)({url:"system/backup/import",method:"POST",data:t})}function S(t){return Object(r.a)({url:"system/file/login",method:"POST",data:t})}function z(t){return Object(r.a)({url:"system/file/opendir",method:"GET",params:t,file_edit:!0})}function G(t){return Object(r.a)({url:"system/file/openfile",method:"GET",params:t,file_edit:!0})}function I(t){return Object(r.a)({url:"system/file/savefile?fileToken=".concat(t.fileToken),method:"post",data:t,file_edit:!0})}function U(t){return Object(r.a)({url:"system/file/createFolder",method:"GET",params:t,file_edit:!0})}function $(t){return Object(r.a)({url:"system/file/createFile",method:"GET",params:t,file_edit:!0})}function A(t){return Object(r.a)({url:"system/file/rename",method:"GET",params:t,file_edit:!0})}function M(t){return Object(r.a)({url:"system/file/delFolder",method:"GET",params:t,file_edit:!0})}function q(t){return Object(r.a)({url:"system/file/mark",method:"get",params:t,file_edit:!0})}function D(t){return Object(r.a)({url:"system/replace_site_url",method:"post",data:t})}function F(){return Object(r.a)({url:"auth",method:"get"})}function N(){return Object(r.a)({url:"setting/group_all",method:"get"})}function Y(t){return Object(r.a)({url:"system/version_list",method:"get",params:t})}function B(t){return Object(r.a)({url:"system/version_crate/".concat(t),method:"get"})}function J(){return Object(r.a)({url:"setting/get_user_agreement",method:"get"})}function K(t){return Object(r.a)({url:"setting/set_user_agreement",method:"post",data:t})}function L(t){return Object(r.a)({url:"setting/get_agreement/".concat(t),method:"get"})}function V(t,e){return Object(r.a)({url:"setting/save_agreement",method:"post",data:t})}function H(t){return Object(r.a)({url:"crmeb_product",method:"get",params:t})}function Q(){return Object(r.a)({url:"setting/get_version",method:"get"})}function W(){return Object(r.a)({url:"copyright",method:"get"})}function X(t){return Object(r.a)({url:"copyright",method:"post",data:t})}function Z(t){return Object(r.a)({url:"/system/upgrade/list",method:"get",params:t})}function tt(){return Object(r.a)({url:"/system/upgrade_progress",method:"get"})}function et(){return Object(r.a)({url:"/system/upgrade/agreement",method:"get"})}function nt(){return Object(r.a)({url:"/system/upgrade_status",method:"get"})}function rt(t){return Object(r.a)({url:"/system/upgrade_log/list",method:"get",params:t})}function it(t){return Object(r.a)({url:"/system/upgrade_download/"+t,method:"POST"})}function ct(t){return Object(r.a)({url:"/system/upgradeable/list",method:"get",params:t})}function at(t){return Object(r.a)({url:"system/crontab/list",params:t})}function ot(t,e){return Object(r.a)({url:"system/crontab/set_open/".concat(t,"/").concat(e)})}function ut(t){return Object(r.a)({url:"system/crontab/info/".concat(t)})}function st(t){return Object(r.a)({url:"system/crontab/save",method:"post",data:t})}function dt(t){return Object(r.a)({url:"system/database/update_mark",method:"post",data:t})}function lt(t,e){return Object(r.a)({url:"system/file/mark/save?fileToken=".concat(t),method:"post",data:e})}function ft(){return Object(r.a)({url:"system/crontab/mark"})}},c2b5:function(t,e,n){n.r(e);var r=n("5530"),i=(n("ac1f"),n("5319"),n("b0e7")),c=n("8593"),a=n("2f62"),o=n("61f7");n("d044"),r={name:"system_auth",computed:Object(r.a)(Object(r.a)(Object(r.a)({},Object(a.c)("admin/layout",["isMobile"])),Object(a.c)("admin/userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),data:function(){return{baseUrl:"https://shop.crmeb.net/html/index.html",iframeUrl:"",captchs:"http://authorize.crmeb.net/api/captchs/",authCode:"",status:1,dayNum:0,copyright:"",isTemplate:!1,price:"",proPrice:"",productStatus:!1,copyrightText:"",success:!1,payType:"",disabled:!1,isShow:!1,active:0,timer:null,version:"",label:"",productType:"",modalPic:!1,isChoice:"单选",authorizedPicture:"",gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8}}},filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(o.a)(t,"yyyy-MM-dd hh:mm")}},components:{uploadPictures:i.a},mounted:function(){var t=this;this.getAuth(),this.getVersion(),window.addEventListener("message",(function(e){"onCancel"===e.data.event&&t.cancel()}))},methods:{getVersion:function(){var t=this;Object(c.A)().then((function(e){t.version=e.data.version,t.label=e.data.label}))},getCrmebCopyRight:function(){var t=this;Object(c.z)().then((function(e){t.getAuth()}))},saveCopyRight:function(){var t=this;Object(c.Q)({copyright:this.copyrightText,copyright_img:this.authorizedPicture}).then((function(e){return t.$message.success(e.msg)}))},modalPicTap:function(){this.modalPic=!0},getPic:function(t){this.authorizedPicture=t.att_dir,this.modalPic=!1},getCopyRight:function(){var t=this;Object(c.z)().then((function(e){t.copyrightText=e.data.copyrightContext||"",t.authorizedPicture=e.data.copyrightImage||""}))},cancel:function(){"copyright"===this.productType?this.getCrmebCopyRight():this.getAuth(),this.iframeUrl="",this.isTemplate=!1},loginTabSwitch:function(t){this.active=t},getAuth:function(){var t=this;Object(c.a)().then((function(e){e=e.data||{},t.authCode=e.authCode||"",t.status=void 0===e.status?-1:e.status,t.dayNum=e.day||0,t.copyright=e.copyright,t.copyright&&t.getCopyRight()})).catch((function(e){t.$message.error(e.msg)}))},toCrmeb:function(){window.open("http://www.crmeb.com")},getProduct:function(){var t=this;Object(c.p)({type:"copyright"}).then((function(e){t.price=e.data.attr.price,t.productStatus=!0})).catch((function(e){t.$message.error(e.msg)})),Object(c.p)({type:"pro"}).then((function(e){t.proPrice=e.data.attr.price})).catch((function(e){t.$message.error(e.msg)}))},payment:function(t){this.productType=t;var e=location.host,n=e.split(".");"test"===n[0]&&4===n.length?e=e.replace("test.",""):"www"===n[0]&&3===n.length&&(e=e.replace("www.","")),this.iframeUrl=this.baseUrl+"?url="+e+"&product="+t+"&version="+this.version+"&label="+this.label,this.isTemplate=!0},onClose:function(){this.isShow=!1}},destroyed:function(){}},n("c3da"),a=n("2877"),i=Object(a.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"auth acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("i",{staticClass:"iconfont iconshangyeshouquan iconIos blue"}),1===t.status?e("div",{staticClass:"text"},[e("div",[t._v("商业授权")]),e("div",{staticClass:"code"},[t._v("授权码:"+t._s(t.authCode))])]):e("div",{staticClass:"text"},[e("div",[t._v("商业授权")]),e("div",{staticClass:"code"},[t._v("未授权")])])]),e("div",[1===t.status?e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCrmeb()}}},[t._v("进入官网")]):t._e(),1!==t.status?e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.payment("bz")}}},[t._v("购买授权")]):t._e()],1)])]),t.copyright||1!=t.status?t._e():e("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"auth acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"iconfont iconbanquan iconIos blue"}),e("div",{staticClass:"text"},[e("div",[t._v("去版权服务")]),e("div",{staticClass:"code"},[t._v("购买之后可以设置")]),t.productStatus?e("div",{staticClass:"pro_price"},[t._v("¥"+t._s(t.price))]):t._e()])]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.payment("copyright")}}},[t._v("立即购买")])],1)]),t.copyright?e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"auth acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"iconfont iconbanquan iconIos blue"}),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"update"},[t._v("修改授权信息:")]),e("el-input",{staticStyle:{width:"460px"},model:{value:t.copyrightText,callback:function(e){t.copyrightText=e},expression:"copyrightText"}})],1)]),e("el-button",{attrs:{type:"primary"},on:{click:t.saveCopyRight}},[t._v("保存")])],1),e("div",{staticClass:"authorized auth"},[e("div",{staticClass:"acea-row row-middle"},[e("div",{staticClass:"box"}),e("span",{staticClass:"update"},[t._v("上传授权图片:")])]),t.authorizedPicture?e("div",{staticClass:"uploadPictrue",on:{click:function(e){return t.modalPicTap("单选")}}},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.authorizedPicture,expression:"authorizedPicture"}]})]):e("div",{staticClass:"upload",on:{click:function(e){return t.modalPicTap("单选")}}},[e("div",{staticClass:"iconfont"},[t._v("+")])])]),e("span",{staticClass:"prompt"},[t._v("建议尺寸宽290px*高100px")])]):t._e(),e("el-dialog",{attrs:{visible:t.isTemplate,title:"商业授权",width:"480px"},on:{"update:visible":function(e){t.isTemplate=e},closed:t.cancel}},[e("iframe",{attrs:{width:"100%",height:"780",src:t.iframeUrl,frameborder:"0"}})]),e("el-dialog",{attrs:{visible:t.modalPic,width:"1024px",title:"上传授权图片","close-on-click-modal":!1},on:{"update:visible":function(e){t.modalPic=e}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)}),[],!1,null,"1409d832",null);e.default=i.exports},c3da:function(t,e,n){n("3e85")},c607:function(t,e,n){var r=n("83ab"),i=n("fce3"),c=n("c6b6"),a=n("edd0"),o=n("69f3").get,u=RegExp.prototype,s=TypeError;r&&i&&a(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===c(this))return!!o(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})}}]);