Files

33 lines
13 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüVuyŠëhttps://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/rights.6ffb8acef9dce5be.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["6075"],{794790:function(e,t,s){s.r(t),s.d(t,{default:function(){return p}}),s(562066),s(978620),s(428995),s(153998),s(111675),s(128791),s(821633),s(271309);var a=s(491188),r=s(945091),i=s(696157),l=s(730681),n=s(202633),c=s(592431),o=s(728359),h=s.n(o);function u(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var d=i.urlHelp.getUrlParam;class p extends h().Component{componentDidMount(){}componentDidUpdate(){}getAuthList(){i.request.get(r.Nx.authList,{}).then(e=>{if(0===+e.errno&&e.data){var t=["govt","media","other"].includes(this.props.global.user.sub_type);e.data.authlist&&e.data.authlist.original_cert&&t&&(e.data.authlist.original_cert.is_display=0),e.data.authlist&&e.data.authlist.v_cert&&"company"===this.props.global.user.sub_type&&(e.data.authlist.v_cert.is_display=0),this.setState({authListData:e.data.authlist})}else l.message.error(e.errmsg)}).catch(e=>{window.$weirwood.error(e)})}applyOpenModal(e){if("authenticity_cert"===e&&"organization"===this.props.global.user.type){window.open().location="https://auth.baidu.com/thrones/auth/center?officialid=".concat(this.props.global.user.shoubai_c_appid);return}if("org_license_cert"===e){var t=window.open();t&&(t.location="https://auth.baidu.com/s/index.html?appid=202104#/officialLetter-pass");return}this.applyPermRequest({type:e,appKey:"bjhPc"},e)}applyPermRequest(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=this;if(!s.state.applyPermSign){s.setState({applyPermSign:!0});var a=r.Nx.applyMediaRights;i.request.get(a,e,!0).then(e=>{if(0===+e.errno){if(["official_cert","doctor_cert","bendirenzheng_cert"].includes(t)){var a=(e.data||{}).jump_url;window.open(a,"_blank")}else l.message.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4,\u8BF7\u8010\u5FC3\u7B49\u5019...");s.setState({applyPermSign:!1,modal:!1})}else{var r=e.errmsg;l.message.info(r||"\u7533\u8BF7\u63D0\u4EA4\u5931\u8D25,\u8BF7\u7A0D\u540E\u518D\u8BD5..."),s.setState({applyPermSign:!1})}})}}noApplyReasonPopover(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.key&&this.state.authListData){var s=(0,a.jsx)("span",{className:"link-disabled",onMouseOver:this.getVrightsReason.bind(this,t.key,"bjh"),children:e}),r=this.state.authListData[t.key]&&this.state.authListData[t.key].hover;return r&&(0,n.A)(r)?s:(t.label="function"==typeof t.label?t.label():t.label,(0,a.jsx)(l.Popover,{content:this.noApplyReasonElement(),title:"\u6EE1\u8DB3\u4EE5\u4E0B\u6761\u4EF6\u53EF\u4EE5\u7533\u8BF7".concat(t.label),placement:"v_cert"===t.key?"top":"bottom",mouseEnterDelay:.6,mouseLeaveDelay:.3,overlayClassName:"rights-apply-reason",children:s}))}}render(){var e=this.state.authListData,t=void 0===e?{}:e,s=this.STATUS,r=(0,c.A)(this.permPre),i={user:[],edit:[],function:[]};return r.forEach(e=>{var r=e.key,l=t[r]||{},c=l.status,o=l.hover,h=l.can_cert,u=l.is_display;if("CERT"===e.type)if("function"==typeof e.status)e.status=e.status(t);else{var d="";d=1===h?(0,a.jsx)("span",{className:"link-disabled",children:(0,a.jsx)("span",{className:"link",onClick:this.applyOpenModal.bind(this,r),children:s.VUTHSTATUS[+c]})}):(0,a.jsx)("span",{className:"link-disabled",children:o&&!(0,n.A)(o)?this.noApplyReasonPopover(s.VUTHSTATUS[+c],e):(0,a.jsx)("span",{children:s.VUTHSTATUS[+c]})}),e.status=d}("CERT"!==e.type||1===u)&&i[e.tab].push(e)}),(0,a.jsx)("div",{className:"client_pages_rights",children:(0,a.jsx)("iframe",{src:"https://auth.baidu.com/trust/vmagic/myauth?from=bjh",frameBorder:"0"})})}constructor(e){super(e),u(this,"touchKey",()=>{var e=d("key");if(e&&!this.hasTouchKey){var t=this.findTabByKey(this.permPre,e);this.handleTabChange(t),setTimeout(()=>{var t=document.querySelector(".ant-table-row.".concat(e)),s=t&&t.offsetTop||0;window.scrollTo(0,s)},0),this.hasTouchKey=!0}}),u(this,"findTabByKey",(e,t)=>{var s=e.filter(e=>e.key===t);return s.length>0?s[0].tab:"user"})
//# sourceMappingURL=rights.6ffb8acef9dce5be.js.mapØA
—Eoúôoí˜ý
GET (Ý È"
accept-rangesbytes"(
access-control-allow-credentialstrue"
access-control-allow-origin*"
age3638"G
cache-control6public, max-age=31536000, s-maxage=31536000, immutable"
content-encodingbr"'
content-md5gsx3Hye7rTeZkqImHLKB6w=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:40 GMT"*
etag""82cc771f27bbad379992a2261cb281eb""(
expiresSun, 08 Nov 2026 07:56:21 GMT".
last-modifiedThu, 05 Nov 2026 06:18:39 GMT"(
ohc-cache-hitcz7cm50 [2], csix63 [2]"
ohc-file-size4047"6
ohc-global-saved-timeThu, 05 Nov 2026 07:56:21 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
4254657903""
x-bce-content-crc32c
4046748965".
x-bce-content-crc64ecma5219546853983061729"j