|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"1Sn+":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/components/Header/search-input.less ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){},"55Ip":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/react-router-dom/esm/react-router-dom.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter, BrowserRouter, HashRouter, Link, NavLink */
|
|
|
/*! exports used: Link, NavLink */function(e,t,a){"use strict";a.d(t,"a",(function(){return f})),a.d(t,"b",(function(){return b}));var n=a(/*! react-router */"Ty5D"),o=a(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),i=a(/*! react */"q1tI"),c=a.n(i),r=a(/*! history */"YS25"),l=(a(/*! prop-types */"17x9"),a(/*! @babel/runtime/helpers/esm/extends */"wx14")),s=a(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),u=a(/*! tiny-invariant */"9R94");c.a.Component;c.a.Component;var m=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?Object(r.c)(e,null,null,t):e},g=function(e){return e},p=c.a.forwardRef;void 0===p&&(p=g);var _=p((function(e,t){var a=e.innerRef,n=e.navigate,o=e.onClick,i=Object(s.a)(e,["innerRef","navigate","onClick"]),r=i.target,u=Object(l.a)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||r&&"_self"!==r||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return u.ref=g!==p&&t||a,c.a.createElement("a",u)}));var f=p((function(e,t){var a=e.component,o=void 0===a?_:a,i=e.replace,r=e.to,f=e.innerRef,h=Object(s.a)(e,["component","replace","to","innerRef"]);return c.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=e.history,n=d(m(r,e.location),e.location),s=n?a.createHref(n):"",_=Object(l.a)({},h,{href:s,navigate:function(){var t=m(r,e.location);(i?a.replace:a.push)(t)}});return g!==p?_.ref=t||f:_.innerRef=f,c.a.createElement(o,_)}))})),h=function(e){return e},v=c.a.forwardRef;void 0===v&&(v=h);var b=v((function(e,t){var a=e["aria-current"],o=void 0===a?"page":a,i=e.activeClassName,r=void 0===i?"active":i,g=e.activeStyle,p=e.className,_=e.exact,b=e.isActive,x=e.location,y=e.sensitive,w=e.strict,E=e.style,k=e.to,j=e.innerRef,O=Object(s.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c.a.createElement(n.e.Consumer,null,(function(e){e||Object(u.a)(!1);var a=x||e.location,i=d(m(k,a),a),s=i.pathname,I=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=I?Object(n.f)(a.pathname,{path:I,exact:_,sensitive:y,strict:w}):null,S=!!(b?b(N,a):N),C=S?function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(p,r):p,q=S?Object(l.a)({},E,{},g):E,T=Object(l.a)({"aria-current":S&&o||null,className:C,style:q,to:i},O);return h!==v?T.ref=t||j:T.innerRef=j,c.a.createElement(f,T)}))}))},"7A1C":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./src/layouts/user/index.less ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){},"Cs+z":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/components/HomeModal/jqr.png ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/jqr.b801d45b.png"},RhLm:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./src/components/User/OauthPanel/index.less ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){},XmPC:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./src/components/User/OauthPanel/wechat.svg ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/wechat.a53d22ca.svg"},p3IR:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./src/components/User/OauthPanel/qq.svg ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/qq.ee284be0.svg"},ruvs:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/components/Header/index.tsx + 2 modules ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: getCourseParam, default */
|
|
|
/*! exports used: default, getCourseParam */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/components/User/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/ImagesIcon/index.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/user.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/HomeModal/jqr.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/layout/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/layout/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.d(t,"b",(function(){return H}));a("2qtc");var n=a("kLXV"),o=a("tJVT"),i=a("PpiC"),c=a("k1fw"),r=(a("B9cy"),a("Ol7k")),l=a("q1tI"),s=a.n(l),u=a("Ty5D"),m=a("55Ip"),d=a("9kvl"),g=a("lzim"),p=a("xrsn"),_=a.n(p),f=(a("1Sn+"),a("qVdP"),a("jsC+")),h=(a("miYZ"),a("tsqr")),v=a("9og8"),b=(a("lUTK"),a("BvKs")),x=a("WmNS"),y=a.n(x),w=a("vToQ"),E=a.n(w),k=a("xKgJ"),j=a("jb+D"),O=a("m3rI"),I=function(e){var t=new Date;t.setTime(t.getTime()-1);var a,n,o=(n=RegExp("(^| )"+e+"=([^;]+)(;|$)"),(a=document.cookie.match(n))?decodeURIComponent(a[2]):null);null!=o&&(document.cookie=e+"="+o+";expires="+t.toGMTString())},N=Object(d.a)((function(e){var t=e.homePage,a=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,shixunHomeworks:e.shixunHomeworks,loading:a.models.index}}))((function(e){e.homePage;var t,a,n,o,r,l,u=e.user,g=e.globalSetting,p=(e.loading,e.dispatch),_=e.shixunHomeworks,x=(e.location,e.payload),w=void 0===x?{}:x;Object(i.a)(e,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),(null===(t=u.userInfo)||void 0===t?void 0:t.admin)||(null===(a=u.userInfo)||void 0===a?void 0:a.business)||(null===(n=u.userInfo)||void 0===n?void 0:n.is_shixun_marker)||(null===(o=u.userInfo)||void 0===o?void 0:o.is_teacher)||null===(r=u.userInfo)||void 0===r||r.user_identity;return Object(k.o)()?s.a.createElement(f.a,{className:"".concat(E.a.height67," pr25"),overlay:function(){var e;return s.a.createElement(b.a,{className:"".concat(E.a.rightMenu," ").concat(E.a.menuWrap)},Object(k.w)().is_teacher&&s.a.createElement(b.a.Item,null,s.a.createElement(m.a,{to:"/users/".concat(null===(e=u.userInfo)||void 0===e?void 0:e.login,"/shixuns")},"我的实训项目")),s.a.createElement(b.a.Item,{className:E.a.exit},s.a.createElement("a",{onClick:Object(v.a)(y.a.mark((function e(){var t;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(j.c)({});case 2:1===(null==(t=e.sent)?void 0:t.status)&&(p({type:"user/getUserInfo",payload:Object(c.a)({},w)}),p({type:"user/getNavigationInfo",payload:Object(c.a)({},w)}),I("autologin_trustie"),I("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),h.b.success(null==t?void 0:t.message),d.d.replace("/login"));case 4:case"end":return e.stop()}}),e)})))},"退出")))},placement:"bottomRight"},s.a.createElement("section",null,s.a.createElement("aside",null,s.a.createElement("div",{className:1===_.actionTabs.type?E.a.classromediv:""},s.a.createElement("img",{className:"".concat(E.a.userPic," current ml15"),src:"".concat(null===O.a||void 0===O.a?void 0:O.a.IMG_SERVER,"/images/").concat(null===(l=u.userInfo)||void 0===l?void 0:l.image_url),alt:""}))))):s.a.createElement("div",{className:"font15 ".concat(g.isIlearning?E.a.login:"")},s.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){p({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"登录"),s.a.createElement("span",{className:"ml5 mr5"},"|"),s.a.createElement(m.a,{to:"/user/register",className:"ml5 current c-white pr25"},"注册"))})),S=a("1vsH"),C=(a("+L6B"),a("2/Rp")),q=a("Cs+z"),T=a.n(q),P=Object(d.a)((function(e){var t=e.homePage,a=e.loading,n=e.user,o=e.globalSetting,i=e.shixunHomeworks;return{homePage:t,user:n,globalSetting:o,loading:a.models.index,shixunHomeworks:i}}))((function(e){e.homePage,e.user,e.globalSetting,e.loading;var t=e.dispatch,a=(e.location,e.text,e.shixunHomeworks),n=(e.payload,Object(i.a)(e,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Object(l.useState)("none")),c=Object(o.a)(n,2),r=c[0],u=c[1];return Object(l.useEffect)((function(){"底部弹窗"===a.actionTabs.key&&u("flex")}),[a.actionTabs.key]),Object(l.useEffect)((function(){"隐藏"===a.actionTabs.key&&(u("none"),localStorage.setItem("Noviceguide","0"))}),[a.actionTabs.key]),s.a.createElement("div",{style:{display:r,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},s.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},s.a.createElement("img",{src:T.a,style:{position:"absolute",top:"-32px"}}),s.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},a.actionTabs.text),9===a.actionTabs.type?s.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},s.a.createElement(C.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),u("none"),t({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"呆会见,有事呼我")):s.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},s.a.createElement(C.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),t({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),u("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"跳过,我自己来"))))})),R=r.a.Header;function H(){var e,t,a=window.location.pathname.split("/"),n={};return!("classrooms"==a[1]&&a.length>3)||null!==(e=a[4])&&void 0!==e&&e.includes("newgold")||null!==(t=a[5])&&void 0!==t&&t.includes("newgold")||"coursesId"===a[2]||(n.course_id=a[2]),"shixuns"===a[1]&&a.length>3&&(n.objective_type="shixun",n.objective_id=a[2]),"paths"===a[1]&&a.length>3&&(n.objective_type="path",n.objective_id=a[2]),Object(c.a)(Object(c.a)({},n),{school:1})}var D=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],F=[{name:"实践项目",link:"/shixuns",key:1},{name:"试题库",link:"/problemset",key:2},{name:"试卷库",link:"/paperlibrary",key:3}],L=[{name:"实践项目",link:"/shixuns",key:4},{name:"在线刷题",link:"/onlineexercise",key:5},{name:"模拟考试",link:"/practicetest",key:6}];t.a=Object(d.a)((function(e){var t=e.homePage,a=e.loading,n=e.user,o=e.globalSetting,i=e.shixunHomeworks;return{homePage:t,user:n,globalSetting:o,loading:a.models.index,shixunHomeworks:i}}))((function(e){e.homePage,e.user;var t=e.globalSetting,a=(e.loading,e.dispatch),d=e.location,p=e.shixunHomeworks,f=(Object(i.a)(e,["homePage","user","globalSetting","loading","dispatch","location","shixunHomeworks"]),Object(u.g)(),Object(l.useState)(!1)),h=Object(o.a)(f,2),v=(h[0],h[1],Object(l.useState)(-1)),b=Object(o.a)(v,2),x=b[0],y=(b[1],Object(l.useState)(!1)),w=Object(o.a)(y,2),E=w[0],j=w[1],O=H();d.pathname;return Object(l.useEffect)((function(){a({type:"user/getNavigationInfo",payload:Object(c.a)({},O)})}),[t.name]),Object(l.useEffect)((function(){"底部弹窗"===p.actionTabs.key&&(null!=D&&D.includes(null==d?void 0:d.pathname)||0===(null==d?void 0:d.pathname.indexOf("/classrooms"))||a({type:"shixunHomeworks/setActionTabs",payload:{key:"隐藏"}}))}),[d.pathname]),Object(l.useEffect)((function(){"底部弹窗"===p.actionTabs.key||p.actionTabs.key||localStorage.setItem("Noviceguide","0")}),[p.actionTabs.key]),t.showHeader&&t.showHeaderFooter?s.a.createElement(r.a,{className:"".concat(t.isIlearning?_.a["header-iearning"]:_.a.header," ").concat(t.showHeaderFixed?_.a.headerFixed:"")},s.a.createElement(R,{className:"header"},s.a.createElement("section",{className:_.a["edu-menu"]},Object(k.o)()&&s.a.createElement("ul",{className:_.a.menu},Object(k.w)().is_teacher&&F.map((function(e){return s.a.createElement("li",{key:e.link,className:x===e.key?_.a.actived:""},s.a.createElement(m.a,{to:e.link},e.name))})),!Object(k.w)().is_teacher&&L.map((function(e){return s.a.createElement("li",{key:e.link,className:x===e.key?_.a.actived:""},s.a.createElement(m.a,{to:e.link},e.name))}))),s.a.createElement("div",{className:"search-bar",style:{flex:t.isIlearning?"initial":"1 0 auto"}},Object(k.o)()&&s.a.createElement(N,{payload:O}))),s.a.createElement(n.a,{centered:!0,destroyOnClose:!0,visible:E,title:"提示",width:"500px",okText:"立即联系",cancelText:"取消",onOk:function(){Object(S.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return j(!1)}},s.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},s.a.createElement("p",null,"您可以在QQ服务群向管理员申请,获得继续操作的权限"),s.a.createElement("img",{src:g.D,width:200,height:200}),s.a.createElement("p",null,"群号:693542422 ")))),s.a.createElement(P,null)):s.a.createElement(s.a.Fragment,null)}))},vToQ:
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./src/components/Header/components/User/index.less?modules ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},xrsn:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/components/Header/index.less?modules ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},zCei:
|
|
|
/*!************************************************!*\
|
|
|
!*** ./src/layouts/user/index.tsx + 1 modules ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/OauthPanel/qq.svg (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/OauthPanel/wechat.svg (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t);var n=a("0Owb"),o=a("tJVT"),i=a("PpiC"),c=a("q1tI"),r=a.n(c),l=a("XmPC"),s=a.n(l),u=a("p3IR"),m=a.n(u),d=a("1vsH"),g=(a("RhLm"),a("m3rI")),p=window.location.host,_=g.a.QQLoginCB,f=function(e){var t=e.onWechatLogin;return r.a.createElement(r.a.Fragment,null,r.a.createElement("p",{className:"driver"}," ———————— ",r.a.createElement("span",{style:{color:"#444444"}},"快速登录")," ———————— "),r.a.createElement("div",{className:"other-login"},r.a.createElement("a",{title:"微信登录",onClick:t},r.a.createElement("img",{src:s.a,alt:"微信",width:46})),r.a.createElement("a",{title:"qq登录",onClick:function(){Object(d.M)()?window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(_,"%2fotherloginqq&state=null,").concat(p,"&response_type=code"):Object(d.Q)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(_,"%2fotherloginqq&state=null,").concat(p,"&response_type=code"))}},r.a.createElement("img",{src:m.a,alt:"QQ",width:46}))))};function h(e){var t=e.onBack;return r.a.createElement(r.a.Fragment,null,r.a.createElement("iframe",{className:"wechat-qrcode",frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(_,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(p,"#wechat_redirect")}),r.a.createElement("a",{className:"btn-link",onClick:t},"返回账号登录"))}var v=a("ruvs"),b=(a("7A1C"),a("9kvl")),x=a("Ty5D");t.default=Object(b.a)((function(e){var t=e.loading;return{globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var t,a,l,s=e.dispatch,u=e.globalSetting,m=e.children,g=Object(i.a)(e,["dispatch","globalSetting","children"]),p=Object(c.useState)(!1),_=Object(o.a)(p,2),y=_[0],w=_[1];Object(c.useEffect)((function(){u.setting||s({type:"globalSetting/query"})}),[]);var E,k=null===(t=u.setting)||void 0===t?void 0:t.main_site,j=(null===(a=u.setting)||void 0===a||a.login_logo_url,null===(l=u.setting)||void 0===l?void 0:l.is_local);return r.a.createElement("div",{className:"register-container"},!Object(d.p)()&&r.a.createElement(v.a,Object(n.a)({isLogin:!0},g)),r.a.createElement("div",{className:"register-bg"},r.a.createElement("div",{className:"register-introduce"}),r.a.createElement("div",{className:"register-panel"},y?null:"/user/reset-password"===(E=Object(x.h)().pathname)?r.a.createElement("div",{className:"register-nav"},r.a.createElement("div",{style:{color:"#333"}},"找回密码")):r.a.createElement("div",{className:"register-nav"},r.a.createElement("div",{onClick:function(){return b.d.push("/user/login")},className:"/user/login"===E||"/login"===E?"nav-active":""},"登录")),y?null:m,y?r.a.createElement(h,{onBack:function(){w(!1),b.d.push("/user/login")}}):r.a.createElement(r.a.Fragment,null,k&&!j&&r.a.createElement(f,{onWechatLogin:function(){w(!0)}})))),!j&&r.a.createElement("div",{className:"register-footer"},r.a.createElement("span",null,"©")," 2021 EduCoder 湘ICP备17009477号"," ",r.a.createElement("a",{href:"https://team.trustie.net/",target:"_blank"},"Trustie"),"& IntelliDE inside"))}))}}]); |