Files

33 lines
48 KiB
Plaintext
Raw Normal View History

2026-11-06 08:29:11 +08:00
0\r§mûüVؼ™Æhttps://now.bdstatic.com/store/v2/e8a15f8/fe-cms/46416aa/js/sunray.49dd947b14e80e1b.js"use strict";(self.webpackChunkFeReactApp=self.webpackChunkFeReactApp||[]).push([["4578"],{395093:function(t,e,i){i.r(e),i.d(e,{default:function(){return S}}),i(271309),i(153998),i(821633);var s=i(491188),a=i(728359),n=i.n(a);i(428995);var r=i(941669),l=i.n(r),o=i(100113),c=i.n(o),d=i(945091),h=i(730681),m=i(696157);class p extends n().Component{componentDidMount(){var t=this,e=this.formatDate(new Date),i="";i="baijiahao.baidu.com"===window.location.hostname?"https://passport.baidu.com/passApi/js/uni_login_wrapper.js?cdnversion=".concat(e):"https://passport.rdtest.baidu.com/passApi/js/uni_login_wrapper.js?cdnversion=".concat(e),l().getScript(i,()=>{t.initLogin(),t.props.passLoadOk&&t.props.passLoadOk()}),this.getStatus()}getStatus(){m.request.post(d.bu.appstatus).then(t=>{0===+t.errno?(window.MP&&window.MP.appInfo&&(0===+t.data.bjh_status&&(window.MP.appInfo.needLogin=0),window.MP.appInfo.appid=t.data.app_id),this.setState({login:t.data.bjh_status,app_name:t.data.bd_display_name,avatar:t.data.bd_avatar,bd_status:t.data.bd_status},()=>{this.props.getUser&&this.props.getUser(t.data)})):h.message.error(t.errmsg)}).catch(t=>{})}formatDate(t){var e=t.getFullYear(),i=t.getMonth()+1,s=t.getDate(),a=t.getHours(),n=t.getMinutes();return""+e+(i=i<10?"0"+i:i)+(s=s<10?"0"+s:s)+(a=a<10?"0"+a:a)+(n=n<10?"0"+n:n)}initLogin(){window.passInstance=window.passport&&window.passport.pop.init({id:"pass-login",apiOpt:{staticPage:window.location.protocol+"//"+window.location.hostname+"/content/static/third_party/passport/v3Jump.html",product:"lightwebapp",u:window.location.href,memberPass:!0,safeFlag:0},cache:!0,registerLink:"https://passport.baidu.com/v2/?reg&tpl=mn&u="+window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),tangram:!0,onLoginSuccess(){window.location.reload()}})}handleClickSubTitle(t){window.MP&&window.MP.stats({urlkey:"header-\u526F\u6807\u9898\u70B9\u51FBpv/uv-".concat(t)})}render(){var t=this.props,e=t.options,i=void 0===e?{}:e,a=t.newLogin,n=t.style,r=this.state,l=i.logo,o="//passport.baidu.com/?logout&tpl=bjh&u=".concat(window.location.href),d="black"===l?"black":"",h=i.titleLink?(0,s.jsx)("a",{href:i.titleLink,target:"_blank",rel:"noopener noreferrer",onClick:this.handleClickSubTitle.bind(this,i.title),children:i.title}):i.titleLink;return(0,s.jsx)("header",{className:"client_layouts_passHeader",style:n,children:(0,s.jsx)("header",{className:"head-wrap",children:(0,s.jsxs)("div",{className:"head",children:[(0,s.jsxs)("div",{className:"left",children:[(0,s.jsx)("div",{className:c()("img-index",{"img-index-black":"black"===l,"img-index-activity":"activity"===l}),onClick:()=>window.open("/")}),i.title?(0,s.jsx)("div",{className:"head-title ".concat(d),children:h}):null]}),!r.bd_status&&void 0!==a&&a?(0,s.jsx)("div",{className:"right login-container",onClick:()=>{this.props.onClickLogin?this.props.onClickLogin():window.passInstance&&window.passInstance.show()},children:(0,s.jsx)("div",{className:"login-btn ".concat(d),children:"\u767B\u5F55"})}):(0,s.jsxs)("div",{className:"img-avatar right",children:[(0,s.jsx)("div",{className:"img-avatar-circle",children:r.avatar?(0,s.jsx)("img",{className:"portrait",src:r.avatar,alt:"\u5934\u50CF"}):(0,s.jsx)("img",{className:"portrait",src:"https://pic.rmb.bdstatic.com/be8c2ceac240d87276f5c1353ab49b3b.gif",alt:"\u5934\u50CF"})}),(0,s.jsx)("div",{className:"black"===l?"":"img-avatar-text",children:r.app_name}),(0,s.jsxs)("div",{className:"author-hover",children:[(0,s.jsx)("div",{className:"hover-top"}),(0,s.jsx)("ul",{children:(0,s.jsx)("li",{children:(0,s.jsx)("a",{id:"pass-login",onClick:()=>{r.bd_status?window.location.href=o:this.props.onClickLogin?this.props.onClickLogin():window.passInstance&&window.passInstance.show()},children:r.bd_status?"\u9000\u51FA\u767B\u5F55":"\u767B\u5F55"})})})]})]})]})})})}constructor(t){super(t),this.state={app_name:"",avatar:"",login:!1},this.initLogin=this.initLogin.bind(this),this.getStatus=t
//# sourceMappingURL=sunray.49dd947b14e80e1b.js.mapØA
—EoúôÈñnD
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-md5UxNDSXLFUDjavtbb/lVMpw=="5
content-type%application/javascript; charset=utf-8"%
dateThu, 05 Nov 2026 09:11:41 GMT"*
etag""5313434972c55038dabed6dbfe554ca7""(
expiresSun, 08 Nov 2026 07:56:25 GMT".
last-modifiedThu, 05 Nov 2026 06:18:39 GMT")
ohc-cache-hitcz7cm59 [2], cdix127 [2]"
ohc-file-size12112"6
ohc-global-saved-timeThu, 05 Nov 2026 07:56:25 GMT"
server JSP3/2.0.14"+
strict-transport-securitymax-age=259200"
timing-allow-origin*"!
x-bce-content-crc32
1148121544""
x-bce-content-crc32c
1630910511"/
x-bce-content-crc64ecma13866834083377800743"j