PageSourceSearch

https://static.smm.cn/user-new.smm.cn/5.16.61/_next/static/chunks/…/certificate-8074319207856069fbce.js

js smm.cn collected 2026-10-02 05:11:55 UTC 14,837 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[58],{"3kmJ":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return W}));var r=n("o0o1"),a=n.n(r),i=n("HaE+"),o=n("1OyB"),c=n("vuIU"),u=n("JX7q"),s=n("Ji7U"),f=n("md7G"),p=n("foSv"),l=n("rePB"),d=n("q1tI"),m=n.n(d),g=n("8Kt/"),b=n.n(g),h=n("yLiY"),y=n.n(h),v=n("B8+X"),O=n.n(v),w=n("rMZc"),_=n.n(w),x=n("YJ+2"),j=n("0Z5F"),C=n("Nio0"),S=n("714G"),k=n("pPtu"),E=n("gL4W"),I=n("Mdeq"),L=(n("EcEY"),n("Nsog")),N=y()().publicRuntimeConfig,U=function(){var t=Object(i.a)(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j.Http.get("".concat(N.localHost,"/api/usercenter/get_company_certifications?").concat(Object(L.c)(e)));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),q=("".concat(N.centerInner.user,"/4.0/get_company_certifications"),y()().publicRuntimeConfig),A=function(){var t=Object(i.a)(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j.Http.get("".concat(q.localHost,"/api/usercenter/get_delete_company_certification?").concat(Object(L.c)(e)));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),P=("".concat(q.centerInner.user,"/4.0/delete_company_certification"),y()().publicRuntimeConfig),R=function(){var t=Object(i.a)(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j.Http.get("".concat(P.localHost,"/api/usercenter/get_upload_company_certifications?").concat(Object(L.c)(e)));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),H=("".concat(P.centerInner.user,"/4.0/upload_company_certifications"),n("a2ph")),J=n("INuS"),B=n.n(J),D=m.a.createElement;function T(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(p.a)(t);if(e){var a=Object(p.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var W=function(t){Object(s.a)(n,t);var e=T(n);function n(t){var r;return Object(o.a)(this,n),r=e.call(this,t),Object(l.a)(Object(u.a)(r),"id","\u8d44\u8d28\u8bc1\u4e66\u4e0a\u4f20"),Object(l.a)(Object(u.a)(r),"TDK",{title:Object(C.e)("\u8d44\u8d28\u8bc1\u4e66\u4e0a\u4f20"),description:"",keywords:""}),Object(l.a)(Object(u.a)(r),"beforeUpload",(function(t){var e="image/jpg"===t.type||"image/png"===t.type||"image/gif"===t.type||"image/jpeg"===t.type;e||E.a.error("\u8bf7\u4e0a\u4f20\u540e\u7f00\u540d\u4e3ajpg,png,gif,jpeg\u7684\u56fe\u7247");var n=t.size/1024/1024<5;return n||E.a.error("\u5fc5\u987b\u5c0f\u4e8e5M"),e&&n})),Object(l.a)(Object(u.a)(r),"addCertification",function(){var t=Object(i.a)(a.a.mark((function t(e){var n,i,o,c,u,s,f,p,l,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.fileList&&e.fileList[0]&&e.fileList[0].response&&e.fileList[0].response.code===j.SUCCESS_CODE)){t.next=40;break}if(!((n=e.fileList.length-1)>0)){t.next=23;break}if(!e.fileList[n]||!e.fileList[n].response||0!==e.fileList[n].response.code){t.next=21;break}return i=[{image_url:e.fileList[n].response.data.key,image_name:e.fileList[n].name}],o={image_infos:JSON.stringify(i),auth_token:r.props.token.data},t.next=8,R(o);case 8:if((c=t.sent).data.code!==j.SUCCESS_CODE){t.next=20;break}return u=String(r.props.userInfo.unWrap().company_id),t.next=13,U({company_id:u});case 13:s=t.sent,r.setState({compangCertificationList:s.data.data}),"IE/11"===Object(S.a)(window.navigator.userAgent)&&window.location.reload(),E.a.success(c.data.msg),t.next=21;break;case 20:E.a.error(c.data.msg);case 21:t.next=40;break;case 23:return f=[{image_url:e.fileList[0].response.data.key,image_name:e.fileList[0].name}],p={image_infos:JSON.stringify(f),auth_token:r.props.token.data},t.next=27,R(p);case 27:if((l=t.sent).data.code!==j.SUCCESS_CODE){t.next=39;break}return d=String(r.props.userInfo.unWrap().company_id),t.next=32,U({company_id:d});case 32:m=t.sent,r.setState({compangCertificationList:m.data.data}),"IE/11"===Object(S.a)(window.navigator.userAgent)&&window.location.reload(),E.a.success(l.data.msg),t.next=40;break;case 39:E.a.error(l.data.msg);case 40:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Object(l.a)(Object(u.a)(r),"deletCertification",function(){var t=Object(i.a)(a.a.mark((function t(e){var n,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A({delete_id:String(e),auth_token:r.props.token.data});case 2:if((n=t.sent).data.code!==j.SUCCESS_CODE){t.next=14;break}return i=String(r.props.userInfo.unWrap().company_id),t.next=7,U({company_id:i}
1);case 7:o=t.sent,r.setState({compangCertificationList:o.data.data}),"IE/11"===Object(S.a)(window.navigator.userAgent)&&window.location.reload(),E.a.success(n.data.msg),t.next=15;break;case 14:E.a.error(n.data.msg);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),r.state={compangCertificationList:r.props.compangCertificationList},r}return Object(c.a)(n,[{key:"shouldComponentUpdate",value:function(t,e){return e.compangCertificationList!==this.state.compangCertificationList}},{key:"componentWillUnmount",value:function(){this.setState=function(t,e){}}},{key:"render",value:function(){var t=this;return D(m.a.Fragment,null,D(b.a,null,D("link",{rel:"stylesheet",href:"/static/css/certifications.css"})),D(I.a,{className:B.a.main,userInfo:this.props.userInfo,id:this.id,TDK:this.TDK},D("div",{className:B.a.certificationsContent},this.state.compangCertificationList.length>0?D("div",null,D("div",{className:B.a.certifications},this.state.compangCertificationList.map((function(e,n){return D("div",{className:B.a.singleImg,key:n},D("img",{src:e.ImageUrl,alt:""}),D("div",{className:B.a.cover,onClick:t.deletCertification.bind(t,e.Id)},"X"),D("div",{className:B.a.name},e.ImageName))}))),D(O.a,{listType:"picture-card",className:B.a.addCertification,showUploadList:!1,method:"post",name:"upload",action:"".concat(y()().publicRuntimeConfig.localHost,"/api/usercenter/post_avatar"),onChange:this.addCertification,beforeUpload:this.beforeUpload,style:{backgroundColor:"red"}},"\u6dfb\u52a0\u8bc1\u4e66")):D("div",{className:B.a.noCertifications},D("img",{src:"".concat(Object(k.a)(),"/static/images/common/no_certifications.png"),alt:""}),D("p",null,"\u60a8\u8fd8\u672a\u4e0a\u4f20\u4f01\u4e1a\u8d44\u8d28\u8bc1\u4e66"),D("div",null,D(O.a,{listType:"picture-card",className:B.a.addCertificationNo,showUploadList:!1,method:"post",name:"upload",action:"".concat(y()().publicRuntimeConfig.localHost,"/api/usercenter/post_avatar"),onChange:this.addCertification,beforeUpload:this.beforeUpload,style:{backgroundColor:"red"}},"\u6dfb\u52a0\u8bc1\u4e66"))))))}}],[{key:"getInitialProps",value:function(){var t=Object(i.a)(a.a.mark((function t(e){var n,r,o,c,u,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.req?e.req.headers.cookie:"",r=Object(w.GetCookie)(_.a.DefaultKey,n),t.next=4,r.asyncMap(function(){var t=Object(i.a)(a.a.mark((function t(e){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(H.a)(e);case 2:return n=t.sent,t.abrupt("return",n.map((function(t){if(t.code===j.SUCCESS_CODE)return x.Options.Some(t.data.user)})));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:return o=t.sent,c=o.some()?o.getValue():{},t.next=8,U({company_id:c.company_id});case 8:return u=t.sent,s=u.data.data,t.abrupt("return",{token:r,compangCertificationList:s});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),n}(m.a.Component)},"714G":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o}));var r=function(t){var e,n=((null===(e=t.req)||void 0===e?void 0:e.headers["x-forwarded-for"])||"").split(",")[0]||t.req.connection.remoteAddress||t.req.headers["x-real-ip"];return n&&"::ffff:"==n.substr(0,7)?n.substr(7):n},a=function(t,e){var n=t?t.toLowerCase():"",r=/firefox\/[\d.]+/gi,a=/chrome\/[\d.]+/gi,i=/360se\/[\d.]+/gi,o=/metasr\s[\d.]+/gi,c=/qqbrowser\/[\d.]+/gi,u=/safari\/[\d.]+/gi,s=/micromessenger\/[\d.]+/gi,f=function(t){return!!e&&Array.from(e).some((function(e){return e.type===t}))};if(n.indexOf("micromessenger")>0)return n.match(s)?n.match(s)[0]:"micromessenger";if(n.indexOf("360se")>0)return n.match(i)?n.match(i)[0]:"360se";if(n.indexOf("metasr")>0)return n.match(o)?n.match(o)[0].replace("metasr","sougou"):"sougou";if(n.indexOf("qqbrowser")>0)return n.match(c)?n.match(c)[0]:"qqbrowser";if(n.indexOf("firefox")>0)return n.match(r)?n.match(r)[0]:"firefox";if(n.indexOf("safari")>0&&n.indexOf("chrome")<0)return n.match(u)?n.match(u)[0]:"safari";if(n.includes("edg/")){var p=n.match(/edg\/([\d.]+)/i);return p?"edge/".concat(p[1]):"edge"}if(n.includes("chrome")&&!n.includes("edg/")&&!n.includes("qqbrowser")&&!n.includes("metasr")&&!n.includes("360se")&&f("application/hwepass2001.installepass2001")&&f("application/asx"))return"360se";if(n.indexOf("chrome")>0&&-1==n.indexOf("360se")&&-1==n.indexOf("metasr"))return n.match(a)?n.match(a)[0]:"chrome";var l=n.indexOf("compatible")>-1&&n.indexOf("msie")>-1,d=(n.indexOf("edge"),n.indexOf("trident")>-1&&n.indexOf("rv:11.0")>-1);if(l){new RegExp("msie (\\d+\\.\\d+);").test(n);var m=parseFloat(RegExp.$1);if(7==m)return"IE/7";if(8==m)return"IE/8";if(9==m)return"IE/9";if(10==m)return"IE/10"}return d?"IE/11":""},i=function(t){return!!t.match(/(phone|iPhone|iPod|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},o=function(t,e){var n=new RegExp("[?&]"+e+"=([^&#]*)","i");if(!t.split("?")[1])return null;var r=t.match(n);return r?decodeURIComponent(r[1].replace(/\+/g," ")):null}},"BGR+":function(t,e,n){"use strict";n.r(e);var r=n("QbLZ"),a=n.n(r);e.default=function(t,e){for(var n=a()({},t),r=0;r<e.length;r++){delete n[e[r]]}return n}},BsWD:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("a3WO");function a(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},HAJ0:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/enterprise/certificate",function(){return n("3kmJ")}])},JX7q:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},Ji7U:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}n.d(e,"a",(function(){return a}))},KEtS:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.tupleNum=e.tuple=void 0;e.tuple=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e};e.tupleNum=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}},ODXe:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("BsWD");function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,a=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},TSYQ:function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=o(t,i(n)))}return t}function i(t){if("string"===typeof t||"number"===typeof t)return t;if("object"!==typeof t)return"";if(Array.isArray(t))return a.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=o(e,r));return e}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(a.default=a,t.exports=a):void 0===(r=function(){return a}.apply(e,[]))||(t.exports=r)}()},a2ph:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("o0o1"),a=n.n(r),i=n("HaE+"),o=n("yLiY"),c=n.n(o),u=n("0Z5F"),s=(n("EcEY"),n("Nsog")),f=(n("rZbH"),"".concat(c()().publicRuntimeConfig.center.user,"/user_info"),function(){var t=Object(i.a)(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.Http.post("".concat(c()().publicRuntimeConfig.localHost,"/api/usercenter/get_user_info"),Object(s.c)({auth_token:e}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},a3WO:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},dOBS:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.CN="86",t.HK="852",t.MO="853",t.TW="886"}(r||(r={}))},foSv:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},md7G:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("U8pU"),a=n("JX7q");function i(t,e){if(e&&("object"==Object(r.a)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Object(a.a)(t)}}},[["HAJ0",0,1,12,3,4,5,6,7,8,9,10,11,13,14,15,25,26,28,38,2]]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.