|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[24,13],{"+ego":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/layouts/index.tsx + 7 modules ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js */
|
|
|
/*! 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/User/PopLoginRegister/PopLogin.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/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/Header/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/user.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/styles/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg (<- 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/checkbox/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/locale/zh_CN.js (<- Module is referenced from these modules with unsupported syntax: ./src/.umi-production/plugin-locale/locale.tsx (referenced with cjs require)) */
|
|
|
/*! 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/antd/es/row/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/moment/moment.js (<- Module is not an ECMAScript module) */
|
|
|
/*! 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,n){"use strict";n.r(t);n("GNNt");var a,r=n("wEI+"),o=(n("T2oS"),n("W9HT")),i=(n("2qtc"),n("kLXV")),l=n("k1fw"),c=n("9og8"),s=n("PpiC"),u=n("WmNS"),d=n.n(u),m=n("q1tI"),f=n.n(m),p=n("+Gva"),g=n("9kvl"),v=(n("jCWc"),n("kPKH")),h=(n("14J3"),n("BMrR")),b=(n("miYZ"),n("tsqr")),x=n("tJVT"),E=(n("Znn+"),n("ZTPi")),w=(n("+L6B"),n("2/Rp")),y=(n("sRBo"),n("kaz8")),_=(n("5NDa"),n("5rEg")),j=(n("y8nQ"),n("Vl3Y")),O=n("55Ip"),k=n("jb+D"),I=n("4i/N"),S=n("Ty5D"),C=n("m3rI"),T=(n("0zpY"),{height:48,borderRadius:4}),A=Object(g.a)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.dispatch,n=(e.setType,e.user),a=(e.setusername,j.a.useForm()),r=Object(x.a)(a,1)[0],o=Object(S.h)(),i=Object(m.useState)(""),l=Object(x.a)(i,2),s=l[0],u=l[1],p=Object(m.useState)(0),v=Object(x.a)(p,2),h=v[0],E=v[1],A=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,N=Object(m.useMemo)((function(){return"/rucaptcha?t="+(new Date).getTime()}),[h]),z=function(){var e=Object(c.a)(d.a.mark((function e(t){var n,a,i,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.b)(t);case 2:if(!(n=e.sent).status){e.next=6;break}return u(null==n?void 0:n.message),e.abrupt("return");case 6:null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),console.log(g.d,"history"),"/user/login"===o.pathname||"/login"===o.pathname?(l=(null===(a=o.query)||void 0===a?void 0:a.from)||(null===(i=o.query)||void 0===i?void 0:i.back_url))?window.location.href=decodeURIComponent(l):A.test(t.password)?window.location.reload():(b.b.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure"):window.location.href="/users/".concat(n.login,"/classrooms"),r.resetFields();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return f.a.createElement(j.a,{layout:"vertical",form:r,initialValues:{autologin:!0,login:n.actionTabs.phone},onFinish:z,onValuesChange:function(){return u("")}},!!s&&f.a.createElement("div",{className:"res-error-values"},f.a.createElement("span",null,s),f.a.createElement(I.a,{onClick:function(){return u("")}})),f.a.createElement(j.a.Item,{name:"login",rules:[{required:!0,message:"请输入学号、工号、手机号或邮箱"}]},f.a.createElement(_.a,{style:T,size:"large",placeholder:"请输入有效的手机号/邮箱/学号/工号",onBlur:function(){t({type:"user/setActionTabs",payload:{phone:r.getFieldValue("login")}})}})),f.a.createElement(j.a.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"}]},f.a.createElement(_.a.Password,{style:T,size:"large",placeholder:"密码"})),f.a.createElement(j.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},f.a.createElement("div",{style:{display:"flex"}},f.a.createElement(_.a,{style:T,size:"large",placeholder:"验证码"}),f.a.createElement("img",{src:(null===C.a||void 0===C.a?void 0:C.a.API_SERVER)+N,style:{height:"32px",marginLeft:"10px"},onClick:function(){E(h+1)}}))),f.a.createElement(j.a.Item,null,f.a.createElement("div",{className:"flex-container",style:{justifyContent:"space-between"}},f.a.createElement(j.a.Item,{name:"autologin",noStyle:!0,valuePropName:"checked"},f.a.createElement(y.a,null,"下次自动登录")),f.a.createElement("div",null,f.a.createElement("span",{className:"current font14 c-blue"},f.a.createElement(O.a,{className:"c-grey-333 font14",onClick:function(){t({type:"user/showPopLogin",payload:{showPopLogin:!1}})},to:"/user/reset-password?from=".concat(o.pathname)},"找回密码"))))),f.a.createElement(j.a.Item,null,f.a.createElement(w.a,{size:"large",type:"primary",htmlType:"submit",block:!0,className:"font16",style:T},"登录")))})),N=(n("5Dmo"),n("3S7+")),z=n("1vsH"),P={height:48},R=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,F=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,q={timer:0};function M(e,t){switch(t.type){case a.setTimer:return Object(l.a)(Object(l.a)({},e),{},{timer:t.payload});default:throw new Error}}!function(e){e[e.setTimer=0]="setTimer"}(a||(a={}));var V,H=Object(g.a)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,n=e.validateName,r=e.getCode,o=e.register,i=e.style,l=void 0===i?{}:i,s=e.buttonText,u=void 0===s?"注册":s,p=e.globalSetting,g=j.a.useForm(),v=Object(x.a)(g,1)[0],h=Object(m.useReducer)(M,q),b=Object(x.a)(h,2),E=b[0],y=b[1],O=Object(m.useState)(!1),k=Object(x.a)(O,2),I=k[0],S=k[1],C=E.timer;function T(){return(T=Object(c.a)(d.a.mark((function e(t){var n,a,r,i,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,a=t.password,r=t.code,e.next=3,o({login:n,password:a,code:r});case 3:if(i=e.sent,l=i.message,!(i.status<0)){e.next=9;break}return v.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:window.location.reload();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(){return V.apply(this,arguments)}function V(){return(V=Object(c.a)(d.a.mark((function e(){var t,a,r,o,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=v.getFieldValue("login"),a=0,R.test(t)&&!(t.indexOf(" ")>-1)){e.next=6;break}return v.setFields([{name:"login",errors:["请输入正确的手机号或邮箱"]}]),a=1,e.abrupt("return",a);case 6:return e.next=8,n({login:t,type:1});case 8:return r=e.sent,o=r.status,i=r.message,o>0?a=2:(v.setFields([{name:"login",errors:[i]}]),a=1),e.abrupt("return",a);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var H=function(){var e=Object(c.a)(d.a.mark((function e(){var t,o,i,l,c;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v.getFieldValue("verify"),t=v.getFieldValue("login")){e.next=6;break}v.validateFields(["login"]),e.next=21;break;case 6:return e.next=8,n({login:t,type:1});case 8:if(1===(null==(o=e.sent)?void 0:o.status)){e.next=12;break}return v.setFields([{name:"login",errors:[null==o?void 0:o.message]}]),e.abrupt("return");case 12:return S(!0),e.next=15,r({login:t,type:1,smscode:Object(z.V)(t)});case 15:i=e.sent,l=i.status,c=i.message,l<0&&v.setFields([{name:"code",errors:[c]}]),y({type:a.setTimer,payload:60}),S(!1);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){C>0&&setTimeout((function(){y({type:a.setTimer,payload:C-1})}),1e3)}),[C]);return f.a.createElement(j.a,{layout:"vertical",form:v,style:l,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return T.apply(this,arguments)}},f.a.createElement(j.a.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):R.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}]},f.a.createElement(_.a,{style:P,autoComplete:"new-login",size:"large",placeholder:"请输入有效的手机号/邮箱号",onBlur:function(){return A},onChange:function(){return v.setFieldsValue({verify:0})}})),!(null!=p&&null!==(t=p.setting)&&void 0!==t&&t.is_local)&&f.a.createElement(j.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},f.a.createElement(_.a,{suffix:f.a.createElement(w.a,{loading:I,type:"link",onClick:H,disabled:C>0}," ",0===C?"获取验证码":"".concat(C,"秒可重新获取")),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"large"})),f.a.createElement(N.a,{title:f.a.createElement("div",null,f.a.createElement("span",null,"长度为8-16位字符"),f.a.createElement("br",null),f.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),f.a.createElement("br",null),f.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},f.a.createElement(j.a.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!F.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位密码,区分大小写、不能使用空格")}}]},f.a.createElement(_.a.Password,{autoComplete:"new-password",style:P,size:"large",placeholder:"请输入8~16位字符,字母、数字和特殊符号至少包含2种"}))),f.a.createElement(j.a.Item,null,f.a.createElement(w.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:P,className:"font16"}," ",u," ")),f.a.createElement("div",{className:"tc",style:{paddingTop:0,paddingBottom:35}},"注册并登录即代表您已阅读并同意",f.a.createElement("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank"},"《服务协议条款》")))})),L={height:48},B=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,D=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,G={timer:0};function J(e,t){switch(t.type){case V.setTimer:return Object(l.a)(Object(l.a)({},e),{},{timer:t.payload});default:throw new Error}}!function(e){e[e.setTimer=0]="setTimer"}(V||(V={}));var Y=Object(g.a)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,n=e.validateName,a=e.getCode,r=e.register,o=e.style,i=void 0===o?{}:o,l=e.buttonText,s=void 0===l?"注册":l,u=e.globalSetting,p=j.a.useForm(),g=Object(x.a)(p,1)[0],v=Object(m.useReducer)(J,G),h=Object(x.a)(v,2),b=h[0],E=h[1],y=Object(m.useState)(!1),O=Object(x.a)(y,2),k=O[0],I=O[1],S=b.timer;function C(){return(C=Object(c.a)(d.a.mark((function e(t){var n,a,o,i,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.login,a=t.new_password,o=t.code,e.next=3,r({login:n,new_password:a,code:o});case 3:if(i=e.sent,l=i.message,!(i.status<0)){e.next=9;break}return g.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:location.reload();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var T=function(){var e=Object(c.a)(d.a.mark((function e(){var t,n,r,o;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g.getFieldValue("verify"),t=g.getFieldValue("login"),e.next=4,g.validateFields(["login"]);case 4:if(t){e.next=8;break}g.validateFields(["login"]),e.next=17;break;case 8:return I(!0),e.next=11,a({login:t,type:2,smscode:Object(z.V)(t)});case 11:n=e.sent,r=n.status,o=n.message,r<0&&g.setFields([{name:"code",errors:[o]}]),E({type:V.setTimer,payload:60}),I(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){S>0&&setTimeout((function(){E({type:V.setTimer,payload:S-1})}),1e3)}),[S]);var A=function(){var e=Object(c.a)(d.a.mark((function e(t,a){var r,o,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(!(a.indexOf(" ")>-1)){e.next=4;break}return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 4:if(!B.test(a)){e.next=18;break}return e.next=7,n({login:a,type:2});case 7:if(r=e.sent,o=r.status,i=r.message,!(o>0)){e.next=15;break}return e.abrupt("return",Promise.resolve());case 15:return e.abrupt("return",Promise.reject(i));case 16:e.next=19;break;case 18:return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 19:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return f.a.createElement(j.a,{layout:"vertical",form:g,style:i,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return C.apply(this,arguments)}},f.a.createElement(j.a.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:A}]},f.a.createElement(_.a,{style:L,autoComplete:"new-login",size:"large",placeholder:"请输入有效的手机号/邮箱号",onChange:function(){return g.setFieldsValue({verify:0})}})),f.a.createElement(N.a,{title:f.a.createElement("div",null,f.a.createElement("span",null,"长度为8-16位字符"),f.a.createElement("br",null),f.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),f.a.createElement("br",null),f.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},f.a.createElement(j.a.Item,{name:"new_password",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!D.test(t))return Promise.reject("请输入8~16位字符,字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格");var n=t.length;return n>=8&&n<=16?Promise.resolve():Promise.reject("请输入8-16位新密码,区分大小写、不能使用空格")}}]},f.a.createElement(_.a.Password,{autoComplete:"new-password",style:L,size:"large",placeholder:"输入8~16位新密码,区分大小写"}))),!(null!=u&&null!==(t=u.setting)&&void 0!==t&&t.is_local)&&f.a.createElement(j.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},f.a.createElement(_.a,{suffix:f.a.createElement(w.a,{loading:k,type:"link",onClick:T,disabled:S>0}," ",0===S?"获取验证码":"".concat(S,"秒可重新获取")),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"large"})),f.a.createElement(j.a.Item,null,f.a.createElement(w.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:L,className:"font16"}," ",s," ")),f.a.createElement("div",{className:"tc",style:{paddingTop:0,paddingBottom:20}},"修改并登录即代表您已阅读并同意",f.a.createElement("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank"},"《服务协议条款》")))})),Z=n("h0ge"),W=n.n(Z),U=n("/nL+"),K=n.n(U),Q=n("IxGP"),X=n.n(Q),$=window.location.host,ee=C.a.QQLoginCB,te=function(e){var t=e.onWechatLogin,n=e.setType,a=e.loginType;return f.a.createElement(f.a.Fragment,null,(1===a||2===a)&&f.a.createElement("div",{style:{marginTop:4===a?20:92,marginBottom:60},className:"font16 tc"},"没有账号?",f.a.createElement("span",{onClick:function(){return n(3)},className:"c-blue current"},"免费注册")),(3===a||4===a||5===a)&&f.a.createElement("div",{style:{marginTop:92,marginBottom:60},className:"font16 tc"},"已有账号?",f.a.createElement("span",{onClick:function(){return n(1)},className:"c-blue current"},"立即登录")),f.a.createElement("p",{className:X.a.driver},f.a.createElement("span",{style:{color:"#444444"}},"快速登录")),f.a.createElement("div",{className:X.a["other-login"]},f.a.createElement("a",{title:"微信登录",onClick:t},f.a.createElement("img",{src:W.a,alt:"微信",width:66})),f.a.createElement("a",{title:"qq登录",onClick:function(){Object(z.K)()?window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(ee,"%2fotherloginqq&state=null,").concat($,"&response_type=code"):Object(z.O)("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(ee,"%2fotherloginqq&state=null,").concat($,"&response_type=code"))}},f.a.createElement("img",{src:K.a,alt:"QQ",width:66}))))};function ne(e){e.onBack;var t=e.setType;return f.a.createElement(f.a.Fragment,null,f.a.createElement("div",{style:{overflow:"hidden",width:300,height:300,margin:"20px auto 0 auto"}},f.a.createElement("iframe",{className:X.a["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(ee,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat($,"#wechat_redirect")})),f.a.createElement("div",{style:{marginTop:17,marginBottom:10},className:"font16 bold tc c-blue current"},f.a.createElement("span",{onClick:function(){return t(1)},style:{borderBottom:"2px solid #0152d9"}},"返回账号登录")))}var ae,re={height:48},oe=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,ie={timer:0};function le(e,t){switch(t.type){case ae.setTimer:return Object(l.a)(Object(l.a)({},e),{},{timer:t.payload});default:throw new Error}}!function(e){e[e.setTimer=0]="setTimer"}(ae||(ae={}));var ce=Object(g.a)((function(e){return{globalSetting:e.globalSetting}}))((function(e){e.validateName,e.getCode;var t=e.register,n=e.style,a=void 0===n?{}:n,r=e.buttonText,o=void 0===r?"注册":r,i=(e.globalSetting,j.a.useForm()),l=Object(x.a)(i,1)[0],s=Object(m.useReducer)(le,ie),u=Object(x.a)(s,2),p=u[0],g=u[1],v=Object(m.useState)(!1),h=Object(x.a)(v,2),b=(h[0],h[1],p.timer);function E(){return(E=Object(c.a)(d.a.mark((function e(n){var a,r,o,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.old_password,r=n.newPassword,e.next=3,t({old_password:a,newPassword:r});case 3:if(o=e.sent,i=o.message,!(o.status<0)){e.next=9;break}return l.setFields([{name:"code",errors:[i]}]),e.abrupt("return");case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(m.useEffect)((function(){b>0&&setTimeout((function(){g({type:ae.setTimer,payload:b-1})}),1e3)}),[b]),f.a.createElement(j.a,{layout:"vertical",form:l,style:a,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return E.apply(this,arguments)}},f.a.createElement(j.a.Item,{name:"old_password",rules:[{required:!0,message:"请输入8~16位密码,区分大小写"}]},f.a.createElement(_.a,{style:re,autoComplete:"new-login",size:"large",type:"password",placeholder:"请输入旧密码",onChange:function(){return l.setFieldsValue({verify:0})}})),f.a.createElement(N.a,{title:f.a.createElement("div",null,f.a.createElement("span",null,"长度为8-16位字符"),f.a.createElement("br",null),f.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),f.a.createElement("br",null),f.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},f.a.createElement(j.a.Item,{name:"newPassword",rules:[{required:!0,message:"请输入8-16位新密码,区分大小写、不能使用空格"},{validator:function(e,t,n){t?t.indexOf(" ")>-1?n("请输入8-16位密码,区分大小写、不能使用空格"):t.length<8||t.length>16?n("请输入8-16位字符的新密码,区分大小写!"):oe.test(t)?n():n("请输入8~16位字符,字母、数字和特殊符号至少包含2种"):n("请输入8-16位字符的新密码,区分大小写!")}}]},f.a.createElement(_.a.Password,{autoComplete:"new-password",style:re,size:"large",placeholder:"输入8~16位新密码,区分大小写"}))),f.a.createElement(N.a,{title:f.a.createElement("div",null,f.a.createElement("span",null,"长度为8-16位字符"),f.a.createElement("br",null),f.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),f.a.createElement("br",null),f.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},f.a.createElement(j.a.Item,{name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,n){t!=l.getFieldsValue().newPassword?n("两次输入的新密码必须一致!"):n()}}]},f.a.createElement(_.a.Password,{autoComplete:"new-password",style:re,size:"large",placeholder:"请再次输入新密码"}))),f.a.createElement(j.a.Item,null,f.a.createElement(w.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:re,className:"font16"}," ",o," ")),f.a.createElement("div",{className:"tc",style:{paddingTop:0,paddingBottom:20}},"修改并登录即代表您已阅读并同意",f.a.createElement("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank"},"《服务协议条款》")))})),se=n("4R62"),ue=n.n(se),de=E.a.TabPane,me=function(e){e.dispatch,e.is_main_site;var t=e.is_local,n=e.style,a=void 0===n?{}:n,r=e.globalSetting,o=Object(m.useState)(!1),i=Object(x.a)(o,2),s=(i[0],i[1]),u=Object(m.useState)("1"),p=Object(x.a)(u,2),g=p[0],w=p[1],y=Object(m.useState)(1),_=Object(x.a)(y,2),j=_[0],O=_[1],I=Object(m.useState)(),S=Object(x.a)(I,2),C=S[0],T=S[1];function N(){O(1),s(!1)}function z(e){console.log(e),w(e)}k.L,k.A,P=Object(c.a)(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.a)({phone:t.login,code:t.code});case 2:if(0!==(n=e.sent).status){e.next=6;break}return null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),e.abrupt("return","/");case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));var P,R,F,q,M={buttonText:"注册并登录",validateName:k.L,getCode:k.A,register:(R=Object(c.a)(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.E)(Object(l.a)({},t));case 2:if(0!==(n=e.sent).status){e.next=9;break}return"1"===localStorage.getItem("addinfo")?localStorage.setItem("addinfo","2"):localStorage.setItem("registeruser","1"),localStorage.removeItem("extension-modal"),b.b.info("注册并登陆成功"),e.abrupt("return","/");case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)}))),function(e){return R.apply(this,arguments)})},V={buttonText:"修改密码",validateName:k.L,getCode:k.A,register:(F=Object(c.a)(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(k.f)(Object(l.a)({login:C},t));case 2:return n=e.sent,b.b.info("修改密码成功"),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(e){return F.apply(this,arguments)})},L={buttonText:"修改并登录",validateName:k.L,getCode:k.A,register:(q=Object(c.a)(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.new_password_confirmation=t.new_password,e.next=3,Object(k.F)(Object(l.a)({},t));case 3:if(0!==(n=e.sent).status){e.next=8;break}return null!=n&&n.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==n?void 0:n.start_date)):localStorage.removeItem("extension-modal"),b.b.info("修改成功"),e.abrupt("return","/");case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)}))),function(e){return q.apply(this,arguments)})},B=Object(m.useCallback)((function(){switch(j){case 1:return f.a.createElement(E.a,{tabBarExtraContent:f.a.createElement("div",null,r.setting.zcst_authorize_url&&f.a.createElement(h.a,{onClick:function(){window.location.href=r.setting.zcst_authorize_url},style:{alignItems:"center",marginRight:40}},f.a.createElement("img",{style:{width:40,cursor:"pointer",marginRight:5},src:"https://t15.baidu.com/it/u=1067996267,3024058787&fm=179&app=42&size=w54&n=0&f=JPEG&fmt=auto?s=37F0E9365892F7E1429603EC0300E02F&sec=1678467600&t=07e25c502c22ff21e8b8f4e74e506e58"}),f.a.createElement("span",{style:{cursor:"pointer"}},"认证中心"))),defaultActiveKey:g,onChange:z,className:ue.a.tabs},f.a.createElement(de,{tab:"账号登录",key:"1"},f.a.createElement("div",{className:"mt20"},"1"===g&&f.a.createElement(A,{setusername:T,setType:O}))));case 2:return f.a.createElement(ne,{setType:O,onBack:N});case 3:return f.a.createElement("div",{className:"ml40"},f.a.createElement("h1",{className:"font18 mb20 mt35"},"新用户注册"),f.a.createElement(H,M));case 4:return f.a.createElement("div",{className:"ml40"},f.a.createElement("h1",{className:"font18 mb20 mt35"},"找回密码"),f.a.createElement(Y,L));case 5:return f.a.createElement("div",{className:"ml40"},f.a.createElement("h1",{className:"font18 mb20 mt35"},"修改密码"),f.a.createElement(ce,V))}}),[j,g]);return f.a.createElement("div",{className:ue.a["login-panel-wrapper2"],style:a},f.a.createElement(h.a,null,f.a.createElement(v.a,{flex:"1"},B()),f.a.createElement(v.a,{flex:"295px",className:ue.a["login-panel-right-wrp"]},!t&&f.a.createElement(te,{loginType:j,setType:O,onWechatLogin:function(){O(2),s(!0)}}))))},fe=n("1TMG"),pe=n.n(fe),ge=Object(g.a)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,n,a=e.user,r=e.globalSetting,o=(e.loading,e.dispatch),l=null===(t=r.setting)||void 0===t?void 0:t.main_site,c=null===(n=r.setting)||void 0===n?void 0:n.is_local;return f.a.createElement(i.a,{centered:!0,visible:a.showPopLogin,footer:null,width:c?420:765,keyboard:!1,maskClosable:!1,wrapClassName:pe.a.popLogin,closable:a.showClosable,onCancel:function(){o({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})}},a.showPopLogin&&f.a.createElement(me,{globalSetting:r,is_main_site:l,is_local:c}))})),ve=(n("wd/R"),n("ruvs")),he=n("JatN"),be=n("ErOA");t.default=Object(g.a)((function(e){return{loading:e.loading,globalSetting:e.globalSetting,user:e.user}}))((function(e){e.loading;var t=e.globalSetting,n=e.children,a=(e.user,e.dispatch),u=e.location,v=(Object(s.a)(e,["loading","globalSetting","children","user","dispatch","location"]),Object(S.h)()),h=Object(ve.b)(),b=t.globalLoading,x=function(){var e=Object(c.a)(d.a.mark((function e(){var t,n,r,o;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==u||!u.search){e.next=9;break}return(o=u.pathname.split("/")).includes("paths")&&(r=o[2]),e.next=6,a({type:"user/getUserInfo",payload:Object(l.a)(Object(l.a)(Object(l.a)({},h),u.query),{},{subject_id:r,websiteName:"educoder"})});case 6:n=e.sent,e.next=12;break;case 9:return e.next=11,a({type:"user/getUserInfo",payload:Object(l.a)({},h)});case 11:n=e.sent;case 12:null!==(t=n)&&void 0!==t&&t.username&&"/login"===v.pathname&&(u.href="/");case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){window.less.modifyVars(Object(l.a)({},he.a[t.theme]))}),[t.theme]),Object(m.useEffect)((function(){x()}),[u.pathname]),Object(m.useEffect)((function(){var e,t;if(u.pathname.indexOf("classrooms")>-1&&-1===u.pathname.indexOf("detail")||document.body.scrollIntoView(),u.pathname.indexOf("/classrooms/4RW9CYHY")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise";else if(u.pathname.indexOf("/classrooms/qb4ft587")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/qb4ft587/exercise";else if(u.pathname.indexOf("/classrooms/c5q9bsp2")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";else if(a({type:"globalSetting/query",payload:{}}),a({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),"https://jetcoder.educoder.net"!==window.location.href&&"https://jetcoder.educoder.net/"!==window.location.href)if(null!==(e=window.location.href)&&void 0!==e&&e.includes("/problems")&&null!==(t=window.location.href)&&void 0!==t&&t.includes("/share")){var n,r,o,l=null===(n=window.location)||void 0===n||null===(r=n.pathname)||void 0===r||null===(o=r.split("/"))||void 0===o?void 0:o[2];Object(be.a)("/api/practices/".concat(l,"/start"),{method:"get"}).then((function(e){0===(null==e?void 0:e.status)&&g.d.replace("/problems/".concat(null==e?void 0:e.identifier,"/oj/").concat(l))}))}else{if("/admins"===u.pathname||"/sidekiq"===u.pathname){var c=document.domain;if(c.indexOf("educoder.net")>-1)switch(c){case"www.educoder.net":case"educoder.net":window.location.href="https://data.educoder.net".concat(u.pathname);break;default:var s=document.domain.split(".");s[0]=s[0]+"-data",window.location.href="https://".concat(s.join(".")).concat(u.pathname)}}i.a.destroyAll(),Object(z.J)()&&Object(z.r)("2.0.0")>0&&i.a.info({title:"客户端版本过低",centered:!0,content:f.a.createElement("div",null,f.a.createElement("span",{className:"c-red"},"您的头歌考试系统柜客户端版本过低"),',请升级至最新版本后再使用,点击"确定"后将下载最新版本的客户端,',f.a.createElement("span",{className:"c-red"},"下载后请先退出客户端再安装")),okText:"立即升级",visible:!0,maskClosable:!1,onOk:function(){return Object(z.t)("Educoder.exe","https://www-cdn.educoder.net/app/Educoder.exe"),new Promise((function(){}))}}),Object(g.f)("zh-CN",!1)}else window.location.href="https://www.educoder.net/problems"}),[u.pathname]),Object(m.useEffect)((function(){t.updateData.system_update?localStorage.updateEndTime||(new Date).getTime()<new Date(t.updateData.end_time).getTime()&&i.a.info({title:t.updateData.subject,content:t.updateData.system_score,onOk:function(){localStorage.updateEndTime=t.updateData.end_time}}):localStorage.removeItem("updateEndTime")}),[t.updateData.system_update]);return f.a.createElement(r.b,{locale:p.default},f.a.createElement(ge,null),f.a.createElement(o.a,{size:"large",spinning:b.show,tip:b.text,className:"ant-spin-nested-loading-black"},n))}))},"/nL+":
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg ***!
|
|
|
\***************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/qq.ee284be0.svg"},"0zpY":
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** ./src/components/User/PopLoginRegister/components/LoginPanel/index.less ***!
|
|
|
\*******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},"1Sn+":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/components/Header/search-input.less ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},"1TMG":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./src/components/User/PopLoginRegister/PopLogin.less?modules ***!
|
|
|
\********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={popLogin:"popLogin___3dT1f"}},"1XHU":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/components/AuthModal/index.tsx ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/modal/style */"2qtc");var a=n(/*! antd/es/modal */"kLXV"),r=n(/*! react */"q1tI"),o=n.n(r),i=n(/*! umi */"9kvl"),l=n(/*! @/assets/images/cert/shimingrenzheng.png */"3wET"),c=n.n(l),s=n(/*! @/assets/images/cert/zhiyerenzheng.png */"bUJZ"),u=n.n(s),d=n(/*! ./index.less?modules */"Ct/S"),m=n.n(d);t.a=Object(i.a)((function(e){var t=e.paperlibrary,n=e.loading;return{paperlibrary:t,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t=e.visible,n=e.occupationValue,r=e.onCancel,l=void 0===r?function(){}:r,s=function(){return o.a.createElement("div",{className:m.a.flexColumn},o.a.createElement("img",{className:m.a.img,src:u.a}),o.a.createElement("span",{className:m.a.content},"未职业认证"))},d=function(){return o.a.createElement("div",{className:m.a.flexColumn},o.a.createElement("img",{className:m.a.img,src:c.a}),o.a.createElement("span",{className:m.a.content},"未实名认证"))};return o.a.createElement(a.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:t,title:"因为以下原因,您暂时不能进行操作",okText:"立即认证",cancelText:"取消",width:"600px",onOk:function(){l(),i.d.push("/account/certification")},onCancel:function(){l()}},o.a.createElement("div",{className:m.a.tilte},"请在完成条件后重试"),o.a.createElement("div",{className:m.a.flexRow},3===n?o.a.createElement(o.a.Fragment,null,d(),s()):2===n?s():d()))}))},"1ZF9":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/Authorize.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/Authorize.cc9c212f.png"},"3wET":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./src/assets/images/cert/shimingrenzheng.png ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,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"},"498V":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./src/components/Header/logo.svg ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/logo.22b9a281.svg"},"4R62":
|
|
|
/*!***************************************************************************************!*\
|
|
|
!*** ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules ***!
|
|
|
\***************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={"login-panel-wrapper2":"login-panel-wrapper2___togLZ","ant-form-item-explain":"ant-form-item-explain___ThRBE","ant-form-item":"ant-form-item___3IV6B","ant-form-item-with-help":"ant-form-item-with-help___tz-ky","login-panel-right-wrp":"login-panel-right-wrp___2GQ8_","res-error-values":"res-error-values___2aGnb",tabs:"tabs___2wmM-"}},"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,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return x}));var a=n(/*! react-router */"Ty5D"),r=n(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),o=n(/*! react */"q1tI"),i=n.n(o),l=n(/*! history */"YS25"),c=(n(/*! prop-types */"17x9"),n(/*! @babel/runtime/helpers/esm/extends */"wx14")),s=n(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),u=n(/*! tiny-invariant */"9R94");i.a.Component;i.a.Component;var d=function(e,t){return"function"==typeof e?e(t):e},m=function(e,t){return"string"==typeof e?Object(l.c)(e,null,null,t):e},f=function(e){return e},p=i.a.forwardRef;void 0===p&&(p=f);var g=p((function(e,t){var n=e.innerRef,a=e.navigate,r=e.onClick,o=Object(s.a)(e,["innerRef","navigate","onClick"]),l=o.target,u=Object(c.a)({},o,{onClick:function(e){try{r&&r(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),a())}});return u.ref=f!==p&&t||n,i.a.createElement("a",u)}));var v=p((function(e,t){var n=e.component,r=void 0===n?g:n,o=e.replace,l=e.to,v=e.innerRef,h=Object(s.a)(e,["component","replace","to","innerRef"]);return i.a.createElement(a.e.Consumer,null,(function(e){e||Object(u.a)(!1);var n=e.history,a=m(d(l,e.location),e.location),s=a?n.createHref(a):"",g=Object(c.a)({},h,{href:s,navigate:function(){var t=d(l,e.location);(o?n.replace:n.push)(t)}});return f!==p?g.ref=t||v:g.innerRef=v,i.a.createElement(r,g)}))})),h=function(e){return e},b=i.a.forwardRef;void 0===b&&(b=h);var x=b((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,l=void 0===o?"active":o,f=e.activeStyle,p=e.className,g=e.exact,x=e.isActive,E=e.location,w=e.sensitive,y=e.strict,_=e.style,j=e.to,O=e.innerRef,k=Object(s.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.a.createElement(a.e.Consumer,null,(function(e){e||Object(u.a)(!1);var n=E||e.location,o=m(d(j,n),n),s=o.pathname,I=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),S=I?Object(a.f)(n.pathname,{path:I,exact:g,sensitive:w,strict:y}):null,C=!!(x?x(S,n):S),T=C?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(p,l):p,A=C?Object(c.a)({},_,{},f):_,N=Object(c.a)({"aria-current":C&&r||null,className:T,style:A,to:o},k);return h!==b?N.ref=t||O:N.innerRef=O,i.a.createElement(v,N)}))}))},"6Fuo":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./src/components/Header/components/Join/index.less?modules ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6cGi":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/hooks/useMergedState.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(/*! @babel/runtime/helpers/esm/slicedToArray */"ODXe"),r=n(/*! react */"q1tI");function o(e,t){var n=t||{},o=n.defaultValue,i=n.value,l=n.onChange,c=n.postState,s=r.useState((function(){return void 0!==i?i:void 0!==o?"function"==typeof o?o():o:"function"==typeof e?e():e})),u=Object(a.a)(s,2),d=u[0],m=u[1],f=void 0!==i?i:d;c&&(f=c(f));var p=r.useRef(l);p.current=l;var g=r.useCallback((function(e){m(e),f!==e&&p.current&&p.current(e,f)}),[f,p]),v=r.useRef(!0);return r.useEffect((function(){v.current?v.current=!1:void 0===i&&m(i)}),[i]),[f,g]}},BU3w:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: injectCSS, updateCSS */
|
|
|
/*! exports used: updateCSS */function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(/*! ./canUseDom */"MNnm");function r(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(a.a)())return null;var o,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(o=n.csp)||void 0===o?void 0:o.nonce);i.innerHTML=e;var l=r(n),c=l.firstChild;return n.prepend&&l.prepend?l.prepend(i):n.prepend&&c?l.insertBefore(i,c):l.appendChild(i),i}var i=new Map;function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r(n);if(!i.has(a)){var l=o("",n),c=l.parentNode;i.set(a,c),c.removeChild(l)}var s=Array.from(i.get(a).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(s){var u,d,m;if((null===(u=n.csp)||void 0===u?void 0:u.nonce)&&s.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))s.nonce=null===(m=n.csp)||void 0===m?void 0:m.nonce;return s.innerHTML!==e&&(s.innerHTML=e),s}var f=o(e,n);return f["rc-util-key"]=t,f}},"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,n){e.exports=n.p+"static/jqr.b801d45b.png"},"Ct/S":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/components/AuthModal/index.less?modules ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},IxGP:
|
|
|
/*!***************************************************************************************!*\
|
|
|
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules ***!
|
|
|
\***************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={"other-login":"other-login___re0Nc","btn-link":"btn-link___1uZTy","wechat-qrcode":"wechat-qrcode___14L6l",driver:"driver___1fhl_"}},JatN:
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/styles/index.tsx + 2 modules ***!
|
|
|
\******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";var a={"@primary-color":"#0152d9"},r={"@primary-color":"#196efd"};t.a={defaults:a,vspaces:r}},Jky8:
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./src/components/Header/components/Join/JoinClassroomModal.tsx ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/checkbox/style */"sRBo");var a,r=n(/*! antd/es/checkbox */"kaz8"),o=(n(/*! antd/es/input/style */"5NDa"),n(/*! antd/es/input */"5rEg")),i=(n(/*! antd/es/message/style */"miYZ"),n(/*! antd/es/message */"tsqr")),l=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),c=(n(/*! antd/es/modal/style */"2qtc"),n(/*! antd/es/modal */"kLXV")),s=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),u=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),d=n.n(u),m=n(/*! react */"q1tI"),f=n.n(m),p=n(/*! umi */"9kvl"),g=n(/*! @/service/home */"6CvP"),v=n(/*! @/components/AuthModal */"1XHU"),h=n(/*! @/utils/util */"1vsH");!function(e){e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student"}(a||(a={}));t.a=Object(p.a)((function(e){return{user:e.user}}))((function(e){var t=e.visible,n=e.user,u=e.onCancel,b=void 0===u?function(){}:u,x=Object(m.useState)(),E=Object(s.a)(x,2),w=E[0],y=E[1],_=Object(m.useState)([]),j=Object(s.a)(_,2),O=j[0],k=j[1],I=Object(m.useState)(!1),S=Object(s.a)(I,2),C=S[0],T=S[1],A=Object(m.useState)(!1),N=Object(s.a)(A,2),z=N[0],P=N[1],R=Object(m.useState)(),F=Object(s.a)(R,2),q=F[0],M=F[1];Object(m.useEffect)((function(){var e,t;null!=n&&null!==(e=n.userInfo)&&void 0!==e&&e.identity&&k(["student"===(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[n]);var V=function(e,t){O.includes(a.Professor)?c.a.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:f.a.createElement("div",{className:"tc"},t||"申请已提交,请等待审核"),onOk:function(){p.d.push("/classrooms/".concat(e,"/students"))}}):p.d.push("/classrooms/".concat(e,"/students"))},H=function(){var e=Object(l.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w){e.next=3;break}return i.b.info("邀请码不能为空"),e.abrupt("return");case 3:return T(!0),e.next=6,Object(g.c)({invite_code:w,professor:O.includes(a.Professor)?1:null,assistant_professor:O.includes(a.AssistantProfessor)?1:null,student:O.includes(a.Student)?1:null});case 6:if(t=e.sent,T(!1),-2!==(null==t?void 0:t.status)){e.next=22;break}if(L(),"该课堂要求成员完成实名认证"!==t.message){e.next=14;break}return P(!0),M(1),e.abrupt("return");case 14:if("该课堂要求成员完成职业认证"!==t.message){e.next=18;break}return P(!0),M(2),e.abrupt("return");case 18:if("该课堂要求成员完成实名和职业认证"!==t.message){e.next=22;break}return P(!0),M(3),e.abrupt("return");case 22:if(0!==(null==t?void 0:t.status)){e.next=27;break}return Object(h.Y)(["教学课堂","首页","加入课堂"]),L(),(null==t?void 0:t.course_id)&&V(t.course_id,t.message),e.abrupt("return");case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=Object(l.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return f.a.createElement(f.a.Fragment,null,f.a.createElement(c.a,{centered:!0,keyboard:!1,closable:!1,title:"加入课堂",visible:t,confirmLoading:C,onOk:H,onCancel:L},f.a.createElement("div",{className:"tc"},f.a.createElement("div",null,f.a.createElement("span",null,"课堂邀请码:"),f.a.createElement(o.a,{placeholder:"请输入5位课堂邀请码或6位分班邀请码",style:{width:270},value:w,onChange:function(e){e.target.value.length>=7?i.b.info("请输入5位课堂邀请码或6位分班邀请码!"):y(e.target.value)}})),f.a.createElement("div",{className:"mt10 font14"},f.a.createElement("span",null,"身份:"),f.a.createElement(r.a.Group,{value:O,onChange:function(e){return k(e)}},f.a.createElement(r.a,{value:a.Professor,disabled:O.includes(2)},"教师"),f.a.createElement(r.a,{value:a.AssistantProfessor,disabled:O.includes(1)},"助教"),f.a.createElement(r.a,{value:a.Student},"学生/参赛者"))))),f.a.createElement(v.a,{visible:z,onCancel:function(){return P(!1)},occupationValue:q}))}))},NLgs:
|
|
|
/*!***********************************!*\
|
|
|
!*** ./src/utils/verifyLogin.tsx ***!
|
|
|
\***********************************/
|
|
|
/*! exports provided: handleVerify, handleVerifyLogin, handleProfleCompletedModal, handleProfessionalCertificationModal, handleCanShixunAddModal, AuthorizeModel, ShixunStatusModel */
|
|
|
/*! exports used: AuthorizeModel, ShixunStatusModel, handleCanShixunAddModal, handleProfessionalCertificationModal, handleVerify, handleVerifyLogin */function(e,t,n){"use strict";n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return y})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return O})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return I}));n(/*! antd/es/message/style */"miYZ");var a=n(/*! antd/es/message */"tsqr"),r=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),o=(n(/*! antd/es/modal/style */"2qtc"),n(/*! antd/es/modal */"kLXV")),i=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),l=n.n(i),c=n(/*! react */"q1tI"),s=n.n(c),u=n(/*! umi */"9kvl"),d=n(/*! ./authority */"xKgJ"),m=n(/*! ./util */"1vsH"),f=n(/*! @ant-design/icons */"RCxd"),p=n(/*! @/assets/images/403Qrcode.png */"mOS8"),g=n.n(p),v=n(/*! @/assets/images/Authorize.png */"1ZF9"),h=n.n(v),b=n(/*! @/assets/images/studnetqun.png */"WdTA"),x=n.n(b),E=n(/*! ./env */"m3rI"),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!y(e)||!_(t))},y=function(e){return!!Object(d.q)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},_=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Object(u.c)()._store.getState(),a=n.user;return!(null===(e=a.userInfo)||void 0===e||!e.profile_completed)||(o.a.confirm({title:"提示",width:530,centered:!0,content:t?"按照有关政策规定,特殊实验需要先绑定手机号才能使用,请先绑定手机号码":"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){u.d.push("/account/profile/edit")}}),!1)},j=function(){var e;return!(null===(e=Object(u.c)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(o.a.confirm({title:"提示",centered:!0,content:s.a.createElement("div",{className:"tc"},"您需要去完成您的职业认证,才能使用此功能"),okText:"立即完善",cancelText:"稍后完善",onOk:function(){Object(m.O)("/account/certification")}}),!1)},O=function(){return!!Object(d.b)()||(o.a.warning({centered:!0,width:530,title:"提示",content:s.a.createElement("div",{className:"tc",style:{marginLeft:-38}},s.a.createElement("p",null,"您可以扫码加群@群管理员,申请操作权限哦!"),s.a.createElement("img",{src:Object(d.u)()?x.a:"".concat(E.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"我知道了",maskClosable:!0}),!1)},k=function(e,t){return!!e||(o.a.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:s.a.createElement("div",null,s.a.createElement("p",null,t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"),s.a.createElement("div",{style:{marginLeft:"110px"}},s.a.createElement("img",{src:h.a,width:200}),s.a.createElement("div",{style:{marginLeft:"35px"}},"群号:","714336072"))),okText:"立即联系",cancelText:"取消",onOk:function(){Object(m.O)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.c)()._store.getState(),i=n.shixunsDetail.detail;return 2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)?(o.a.info({centered:!0,icon:s.a.createElement(f.a,{style:{color:"#faad14"}}),width:460,title:"提示",content:s.a.createElement("div",{className:"tc",style:{marginLeft:-38}},s.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},s.a.createElement("span",null,"该实践项目的状态为",2===(null==i?void 0:i.public)?"已公开":1===(null==i?void 0:i.public)?"待审核":"已关闭",",",t,"。"),s.a.createElement("p",null,"如有需要,请联系平台管理员进行技术支持。")),s.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:g.a,alt:"二维码",width:160})),okText:"我知道了"}),!0):2===(null==i?void 0:i.shixun_status)&&(o.a.confirm({centered:!0,icon:s.a.createElement(f.a,null),title:"提示",content:s.a.createElement("div",null,s.a.createElement("span",null,"该实践项目已发布,",t,"。"),s.a.createElement("br",null),s.a.createElement("span",null,"如有需要,您可以撤销发布后,再进行操作。")),okText:"撤销发布",cancelText:"取消",onOk:function(){var t;o.a.confirm({width:440,centered:!0,icon:s.a.createElement(f.a,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(t=Object(r.a)(l.a.mark((function t(){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==t.sent.status&&(a.b.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}}),!0)}},WdTA:
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/assets/images/studnetqun.png ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/studnetqun.598eeb43.png"},Y1PL:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: ResizableTextArea, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t),n.d(t,"ResizableTextArea",(function(){return z}));var a=n("wx14"),r=n("1OyB"),o=n("vuIU"),i=n("Ji7U"),l=n("LK+K"),c=n("q1tI"),s=n("VTBJ"),u=n("rePB"),d=n("Zm9Q"),m=(n("Kwbf"),n("c+Xe")),f=n("m+aA"),p=n("bdgK"),g=new Map;var v=new p.default((function(e){e.forEach((function(e){var t,n=e.target;null===(t=g.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var h=function(e){Object(i.a)(n,e);var t=Object(l.a)(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),b=c.createContext(null);function x(e){var t=e.children,n=e.disabled,a=c.useRef(null),r=c.useRef(null),o=c.useContext(b),i=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=c.isValidElement(t)&&Object(m.c)(t),u=l?t.ref:null,d=c.useMemo((function(){return Object(m.a)(u,a)}),[u,a]),p=c.useRef(e);p.current=e;var x=c.useCallback((function(e){var t=p.current,n=t.onResize,a=t.data,r=e.getBoundingClientRect(),l=r.width,c=r.height,u=e.offsetWidth,d=e.offsetHeight,m=Math.floor(l),f=Math.floor(c);if(i.current.width!==m||i.current.height!==f||i.current.offsetWidth!==u||i.current.offsetHeight!==d){var g={width:m,height:f,offsetWidth:u,offsetHeight:d};i.current=g;var v=u===Math.round(l)?l:u,h=d===Math.round(c)?c:d,b=Object(s.a)(Object(s.a)({},g),{},{offsetWidth:v,offsetHeight:h});null==o||o(b,e,a),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return c.useEffect((function(){var e,t,o=Object(f.a)(a.current)||Object(f.a)(r.current);return o&&!n&&(e=o,t=x,g.has(e)||(g.set(e,new Set),v.observe(e)),g.get(e).add(t)),function(){return function(e,t){g.has(e)&&(g.get(e).delete(t),g.get(e).size||(v.unobserve(e),g.delete(e)))}(o,x)}}),[a.current,n]),c.createElement(h,{ref:r},l?c.cloneElement(t,{ref:d}):t)}function E(e){var t=e.children;return Object(d.a)(t).map((function(t,n){var r=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return c.createElement(x,Object(a.a)({},e,{key:r}),t)}))}E.Collection=function(e){var t=e.children,n=e.onBatchResize,a=c.useRef(0),r=c.useRef([]),o=c.useContext(b),i=c.useCallback((function(e,t,i){a.current+=1;var l=a.current;r.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){l===a.current&&(null==n||n(r.current),r.current=[])})),null==o||o(e,t,i)}),[n,o]);return c.createElement(b.Provider,{value:i},t)};var w,y=E,_=n("bT9E"),j=n("TSYQ"),O=n.n(j),k="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",I=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],S={};function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&S[n])return S[n];var a=window.getComputedStyle(e),r=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),o=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),l=I.map((function(e){return"".concat(e,":").concat(a.getPropertyValue(e))})).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:r};return t&&n&&(S[n]=c),c}var T,A=n("Gytx"),N=n.n(A);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(T||(T={}));var z=function(e){Object(i.a)(n,e);var t=Object(l.a)(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).nextFrameActionId=void 0,o.resizeFrameId=void 0,o.textArea=void 0,o.saveTextArea=function(e){o.textArea=e},o.handleResize=function(e){var t=o.state.resizeStatus,n=o.props,a=n.autoSize,r=n.onResize;t===T.NONE&&("function"==typeof r&&r(e),a&&o.resizeOnNextFrame())},o.resizeOnNextFrame=function(){cancelAnimationFrame(o.nextFrameActionId),o.nextFrameActionId=requestAnimationFrame(o.resizeTextarea)},o.resizeTextarea=function(){var e=o.props.autoSize;if(e&&o.textArea){var t=e.minRows,n=e.maxRows,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;w||((w=document.createElement("textarea")).setAttribute("tab-index","-1"),w.setAttribute("aria-hidden","true"),document.body.appendChild(w)),e.getAttribute("wrap")?w.setAttribute("wrap",e.getAttribute("wrap")):w.removeAttribute("wrap");var r=C(e,t),o=r.paddingSize,i=r.borderSize,l=r.boxSizing,c=r.sizingStyle;w.setAttribute("style","".concat(c,";").concat(k)),w.value=e.value||e.placeholder||"";var s,u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,m=w.scrollHeight;if("border-box"===l?m+=i:"content-box"===l&&(m-=o),null!==n||null!==a){w.value=" ";var f=w.scrollHeight-o;null!==n&&(u=f*n,"border-box"===l&&(u=u+o+i),m=Math.max(u,m)),null!==a&&(d=f*a,"border-box"===l&&(d=d+o+i),s=m>d?"":"hidden",m=Math.min(d,m))}return{height:m,minHeight:u,maxHeight:d,overflowY:s,resize:"none"}}(o.textArea,!1,t,n);o.setState({textareaStyles:a,resizeStatus:T.RESIZING},(function(){cancelAnimationFrame(o.resizeFrameId),o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:T.RESIZED},(function(){o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:T.NONE}),o.fixFirefoxAutoScroll()}))}))}))}))}},o.renderTextArea=function(){var e=o.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,l=e.className,d=e.disabled,m=o.state,f=m.textareaStyles,p=m.resizeStatus,g=Object(_.a)(o.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),v=O()(n,l,Object(u.a)({},"".concat(n,"-disabled"),d));"value"in g&&(g.value=g.value||"");var h=Object(s.a)(Object(s.a)(Object(s.a)({},o.props.style),f),p===T.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(y,{onResize:o.handleResize,disabled:!(r||i)},c.createElement("textarea",Object(a.a)({},g,{className:v,style:h,ref:o.saveTextArea})))},o.state={textareaStyles:{},resizeStatus:T.NONE},o}return Object(o.a)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&N()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(c.Component),P=function(e){Object(i.a)(n,e);var t=Object(l.a)(n);function n(e){var a;Object(r.a)(this,n),(a=t.call(this,e)).resizableTextArea=void 0,a.focus=function(){a.resizableTextArea.textArea.focus()},a.saveTextArea=function(e){a.resizableTextArea=e},a.handleChange=function(e){var t=a.props.onChange;a.setValue(e.target.value,(function(){a.resizableTextArea.resizeTextarea()})),t&&t(e)},a.handleKeyDown=function(e){var t=a.props,n=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&n&&n(e),r&&r(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return a.state={value:o},a}return Object(o.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(z,Object(a.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(c.Component);t.default=P},ZpRC:
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";function a(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function r(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function o(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return r(n.overflowY,t)||r(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function i(e,t,n,a,r,o,i,l){return o<e&&i>t||o>e&&i<t?0:o<=e&&l<=n||i>=t&&l>=n?o-e-a:i>t&&l<n||o<e&&l>n?i-t+r:0}var l=function(e,t){var n=window,r=t.scrollMode,l=t.block,c=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,d="function"==typeof s?s:function(e){return e!==s};if(!a(e))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,f=[],p=e;a(p)&&d(p);){if((p=p.parentElement)===m){f.push(p);break}null!=p&&p===document.body&&o(p)&&!o(document.documentElement)||null!=p&&o(p,u)&&f.push(p)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),E=x.height,w=x.width,y=x.top,_=x.right,j=x.bottom,O=x.left,k="start"===l||"nearest"===l?y:"end"===l?j:y+E/2,I="center"===c?O+w/2:"end"===c?_:O,S=[],C=0;C<f.length;C++){var T=f[C],A=T.getBoundingClientRect(),N=A.height,z=A.width,P=A.top,R=A.right,F=A.bottom,q=A.left;if("if-needed"===r&&y>=0&&O>=0&&j<=v&&_<=g&&y>=P&&j<=F&&O>=q&&_<=R)return S;var M=getComputedStyle(T),V=parseInt(M.borderLeftWidth,10),H=parseInt(M.borderTopWidth,10),L=parseInt(M.borderRightWidth,10),B=parseInt(M.borderBottomWidth,10),D=0,G=0,J="offsetWidth"in T?T.offsetWidth-T.clientWidth-V-L:0,Y="offsetHeight"in T?T.offsetHeight-T.clientHeight-H-B:0;if(m===T)D="start"===l?k:"end"===l?k-v:"nearest"===l?i(b,b+v,v,H,B,b+k,b+k+E,E):k-v/2,G="start"===c?I:"center"===c?I-g/2:"end"===c?I-g:i(h,h+g,g,V,L,h+I,h+I+w,w),D=Math.max(0,D+b),G=Math.max(0,G+h);else{D="start"===l?k-P-H:"end"===l?k-F+B+Y:"nearest"===l?i(P,F,N,H,B+Y,k,k+E,E):k-(P+N/2)+Y/2,G="start"===c?I-q-V:"center"===c?I-(q+z/2)+J/2:"end"===c?I-R+L+J:i(q,R,z,V,L+J,I,I+w,w);var Z=T.scrollLeft,W=T.scrollTop;k+=W-(D=Math.max(0,Math.min(W+D,T.scrollHeight-N+Y))),I+=Z-(G=Math.max(0,Math.min(Z+G,T.scrollWidth-z+J)))}S.push({el:T,top:D,left:G})}return S};function c(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:l(e,t));if(!n){var a=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var a=e.el,r=e.top,o=e.left;a.scroll&&n?a.scroll({top:r,left:o,behavior:t}):(a.scrollTop=r,a.scrollLeft=o)}))}(l(e,a),a.behavior)}}},bUJZ:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/assets/images/cert/zhiyerenzheng.png ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,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"},h0ge:
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg ***!
|
|
|
\*******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/wechat.044c9ad6.svg"},mOS8:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/403Qrcode.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/403Qrcode.6c17b6f4.png"},ruvs:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/components/Header/index.tsx + 4 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/Join/index.less?modules (<- 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/Header/components/Join/JoinClassroomModal.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/ImagesIcon/index.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/home.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/utils/verifyLogin.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/logo.svg (<- Module is not an ECMAScript module) */
|
|
|
/*! 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/col/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/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/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/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/antd/es/radio/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/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,n){"use strict";n.d(t,"b",(function(){return $}));n("2qtc");var a,r=n("kLXV"),o=n("9og8"),i=n("tJVT"),l=n("PpiC"),c=n("k1fw"),s=(n("5NDa"),n("5rEg")),u=(n("B9cy"),n("Ol7k")),d=n("WmNS"),m=n.n(d),f=n("q1tI"),p=n.n(f),g=n("Ty5D"),v=n("55Ip"),h=n("9kvl"),b=n("lzim"),x=n("xrsn"),E=n.n(x),w=(n("1Sn+"),n("qVdP"),n("jsC+")),y=(n("14J3"),n("BMrR")),_=(n("jCWc"),n("kPKH")),j=(n("lUTK"),n("BvKs")),O=(n("miYZ"),n("tsqr")),k=(n("7Kak"),n("9yH6")),I=n("6CvP"),S=n("1vsH");!function(e){e.Manager="manager",e.Developer="developer",e.Reporter="reporter"}(a||(a={}));var C,T,A=function(e){var t=e.visible,n=e.onCancel,l=void 0===n?function(){}:n,c=Object(f.useState)(),u=Object(i.a)(c,2),d=u[0],g=u[1],v=Object(f.useState)(),b=Object(i.a)(v,2),x=b[0],E=b[1],w=Object(f.useState)(!1),y=Object(i.a)(w,2),_=y[0],j=y[1],C=function(){var e=Object(o.a)(m.a.mark((function e(){var t,n;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return O.b.info("请输入开发项目邀请码!"),e.abrupt("return");case 3:if(6===d.length){e.next=6;break}return O.b.info("请输入6位项目邀请码!"),e.abrupt("return");case 6:if(x){e.next=9;break}return O.b.info("请选择一个身份!"),e.abrupt("return");case 9:return j(!0),e.next=12,Object(I.e)({code:d,role:x});case 12:if(t=e.sent,j(!1),T(),!(n={1:"您输入的邀请码错误",2:"您已经是该项目成员",3:"请选择一个角色",4:"您的申请已提交,请等待项目管理员审批",5:"您已经申请加入该项目了,请耐心等待",6:"您已成功加入项目"})[t.status]){e.next=19;break}return O.b.info(n[t.status]),e.abrupt("return");case 19:if(0!==t.status){e.next=22;break}return"reporter"===x?(O.b.success("您加入项目成功!"),Object(S.Y)(["开发项目","加入项目成功"]),h.d.push("/projects/".concat(null==t?void 0:t.project_id))):(Object(S.Y)(["开发项目","加入项目等待审批"]),O.b.success("您的申请已提交,请等待项目管理员审批!")),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),T=function(){var e=Object(o.a)(m.a.mark((function e(){return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return p.a.createElement(p.a.Fragment,null,p.a.createElement(r.a,{centered:!0,keyboard:!1,closable:!1,title:"加入项目",visible:t,confirmLoading:_,onOk:C,onCancel:T},p.a.createElement("div",{className:"tc"},p.a.createElement("div",null,p.a.createElement("span",null,"课堂邀请码:"),p.a.createElement(s.a,{placeholder:"请输入6位开发项目邀请码",style:{width:270},value:d,onChange:function(e){e.target.value.length>=7?O.b.info("请输入6位开发项目邀请码!"):g(e.target.value)}})),p.a.createElement("div",{className:"mt10 font14"},p.a.createElement("span",null,"身份:"),p.a.createElement(k.a.Group,{value:x,onChange:function(e){return E(e.target.value)}},p.a.createElement(k.a,{value:a.Manager},"管理人员"),p.a.createElement(k.a,{value:a.Developer},"开发人员"),p.a.createElement(k.a,{value:a.Reporter},"报告人员"))))))},N=n("Jky8"),z=n("6Fuo"),P=n.n(z),R=n("NLgs");!function(e){e.Projects="projects",e.Shixuns="shixuns",e.Classrooms="classrooms"}(C||(C={})),function(e){e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics"}(T||(T={}));var F,q=Object(h.a)((function(e){var t=e.homePage,n=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.homePage;var t,n,a,r,o,c,s,u,d=e.user,m=e.globalSetting,g=(e.loading,e.dispatch),v=(e.location,Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","location"]),Object(f.useState)()),h=Object(i.a)(v,2),b=h[0],x=h[1],E=Object(f.useState)(),k=Object(i.a)(E,2),I=k[0],S=k[1],z=function(e){var t;Object(R.e)(g)&&(e!==C.Projects||null!==(t=d.userInfo)&&void 0!==t&&t.email?e===C.Classrooms?x(!0):e===C.Projects&&S(!0):O.b.info("请先绑定邮箱,谢谢"))},F=function(e,t){var n;Object(R.e)(g)&&(t!==C.Projects||null!==(n=d.userInfo)&&void 0!==n&&n.email?(t!==C.Shixuns||Object(R.c)())&&e&&(window.location.href=e):O.b.info("请先绑定邮箱,谢谢"))},q=null===(t=((null===(n=m.setting)||void 0===n?void 0:n.navbar)||[]).find((function(e){return e.link==="/".concat(T.Classrooms)})))||void 0===t?void 0:t.hidden,M=null===(a=((null===(r=m.setting)||void 0===r?void 0:r.navbar)||[]).find((function(e){return e.link==="/".concat(T.Shixuns)})))||void 0===a?void 0:a.hidden,V=null===(o=((null===(c=m.setting)||void 0===c?void 0:c.navbar)||[]).find((function(e){return e.link==="/".concat(T.Paths)})))||void 0===o?void 0:o.hidden;null!=m&&null!==(s=m.setting)&&void 0!==s&&s.is_local&&(null!=d&&null!==(u=d.userInfo)&&void 0!==u&&u.is_shixun_marker||(M=!0));var H=function(e){var t,n,a,r,o,i,l,c,s,u,f,g,v,h;return p.a.createElement(p.a.Fragment,null,p.a.createElement(y.a,{justify:"space-around",className:"pt5 pb5"},p.a.createElement(_.a,{className:P.a.joinCol},"学生"!==(null===(t=d.userInfo)||void 0===t?void 0:t.user_identity)&&!q&&p.a.createElement(j.a.Item,e,p.a.createElement("a",{onClick:function(){return F("/classrooms/new")}},null!==(n=d.userInfo)&&void 0!==n&&n.main_site?"新建教学课堂":"新建课堂")),!M&&p.a.createElement(j.a.Item,e,p.a.createElement("a",{onClick:function(){return F("/shixuns/new",C.Shixuns)}},"新建实践项目")),((null===(a=d.userInfo)||void 0===a?void 0:a.main_site)&&(null===(r=d.navigationInfo)||void 0===r?void 0:r.top)||!(null!==(o=d.userInfo)&&void 0!==o&&o.main_site)&&(null===(i=d.navigationInfo)||void 0===i?void 0:i.top)&&!V&&((null===(l=d.userInfo)||void 0===l?void 0:l.admin)||(null===(c=d.userInfo)||void 0===c?void 0:c.is_teacher)||(null===(s=d.userInfo)||void 0===s?void 0:s.business)))&&p.a.createElement(j.a.Item,e,p.a.createElement("a",{onClick:function(){return F("/paths/new")}},"新建实践课程")),!(null!=m&&null!==(u=m.setting)&&void 0!==u&&u.is_local)&&(null===(f=d.userInfo)||void 0===f?void 0:f.main_site)&&p.a.createElement(j.a.Item,e,p.a.createElement("a",{onClick:function(){var e,t;return F("".concat(null===(e=d.navigationInfo)||void 0===e||null===(t=e.top)||void 0===t?void 0:t.old_url,"/projects/deposit/new"),C.Projects)}},"新建开发项目"))),p.a.createElement(_.a,null,p.a.createElement("div",{className:P.a.joinBoard})),p.a.createElement(_.a,{className:P.a.joinCol},!q&&p.a.createElement(j.a.Item,e,p.a.createElement("a",{onClick:function(){return z(C.Classrooms)}},null!==(g=d.userInfo)&&void 0!==g&&g.main_site?"加入教学课堂":"加入课堂")),(null===(v=d.userInfo)||void 0===v?void 0:v.main_site)&&!(null!=m&&null!==(h=m.setting)&&void 0!==h&&h.is_local)&&p.a.createElement(j.a.Item,e,p.a.createElement("a",{onClick:function(){return z(C.Projects)}},"加入开发项目")))))};return p.a.createElement("section",null,p.a.createElement(w.a,{overlay:p.a.createElement(j.a,{className:"".concat(P.a.rightMenu," ").concat(P.a.joinMenu," mt10")},p.a.createElement(H,null)),placement:"bottomRight"},p.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),p.a.createElement(N.a,{visible:b,onCancel:function(){return x(!1)}}),p.a.createElement(A,{visible:I,onCancel:function(){return S(!1)}}))})),M=n("vToQ"),V=n.n(M),H=n("xKgJ"),L=n("jb+D"),B=n("m3rI"),D=function(e){var t=new Date;t.setTime(t.getTime()-1);var n,a,r=(a=RegExp("(^| )"+e+"=([^;]+)(;|$)"),(n=document.cookie.match(a))?decodeURIComponent(n[2]):null);null!=r&&(document.cookie=e+"="+r+";expires="+t.toGMTString())};!function(e){e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics"}(F||(F={}));var G=Object(h.a)((function(e){var t=e.homePage,n=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,shixunHomeworks:e.shixunHomeworks,loading:n.models.index}}))((function(e){e.homePage;var t,n,a,r,i,s,u,d,f,g,b,x,E,y,_=e.user,k=e.globalSetting,I=(e.loading,e.dispatch),C=e.shixunHomeworks,T=(e.location,e.payload),A=void 0===T?{}:T,N=(Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),null===(t=((null===(n=k.setting)||void 0===n?void 0:n.navbar)||[]).find((function(e){return e.link==="/".concat(F.Classrooms)})))||void 0===t?void 0:t.hidden),z=null===(a=((null===(r=k.setting)||void 0===r?void 0:r.navbar)||[]).find((function(e){return e.link==="/".concat(F.Shixuns)})))||void 0===a?void 0:a.hidden,P=null===(i=((null===(s=k.setting)||void 0===s?void 0:s.navbar)||[]).find((function(e){return e.link==="/".concat(F.Paths)})))||void 0===i?void 0:i.hidden,q=(null===(u=_.userInfo)||void 0===u?void 0:u.admin)||(null===(d=_.userInfo)||void 0===d?void 0:d.business)||(null===(f=_.userInfo)||void 0===f?void 0:f.is_shixun_marker)||(null===(g=_.userInfo)||void 0===g?void 0:g.is_teacher)||"学生"!==(null===(b=_.userInfo)||void 0===b?void 0:b.user_identity);return Object(H.q)()?p.a.createElement(w.a,{className:"".concat(V.a.height67," pr25"),overlay:function(){return Object(S.p)()?p.a.createElement(j.a,{className:"".concat(V.a.rightMenu," ").concat(V.a.menuWrap)},p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/account/profile"},"账号管理"))):p.a.createElement(j.a,{className:"".concat(V.a.rightMenu," ").concat(V.a.menuWrap)},p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(e=_.userInfo)||void 0===e?void 0:e.login,"/classrooms")},"我的个人主页")),!N&&p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(t=_.userInfo)||void 0===t?void 0:t.login,"/classrooms")},null!==(n=_.userInfo)&&void 0!==n&&n.main_site?"我的教学课堂":"我的课堂")),!z&&p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(a=_.userInfo)||void 0===a?void 0:a.login,"/shixuns")},"我的实践项目")),!P&&p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(r=_.userInfo)||void 0===r?void 0:r.login,"/paths")},null!==(i=_.userInfo)&&void 0!==i&&i.main_site?"我的实践课程":"我的课程")),(null===(l=_.userInfo)||void 0===l?void 0:l.main_site)&&!(null!==(s=k.setting)&&void 0!==s&&s.is_local)&&p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(u=_.userInfo)||void 0===u?void 0:u.login,"/projects")},"我的开发项目")),p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(d=_.userInfo)||void 0===d?void 0:d.login,"/teach-group")},"我的教研团队")),p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/users/".concat(null===(f=_.userInfo)||void 0===f?void 0:f.login,"/vspaces")},"我的虚拟社区")),p.a.createElement(j.a.Item,null,p.a.createElement("a",{onClick:function(){Object(R.e)(I)&&h.d.push("/problemset")}},"试题库")),q&&p.a.createElement(j.a.Item,null,p.a.createElement("a",{onClick:function(){Object(R.e)(I)&&h.d.push("/paperlibrary")}},"试卷库")),(null===(g=_.navigationInfo)||void 0===g||null===(b=g.top)||void 0===b?void 0:b.customer_management_url)&&p.a.createElement(j.a.Item,null,p.a.createElement("a",{href:null===(x=_.navigationInfo)||void 0===x||null===(E=x.top)||void 0===E?void 0:E.customer_management_url},"客户管理")),(null===(w=_.navigationInfo)||void 0===w||null===(y=w.top)||void 0===y?void 0:y.college_identifier)&&p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{to:"/colleges/".concat(null===(C=_.navigationInfo)||void 0===C||null===(T=C.top)||void 0===T?void 0:T.college_identifier,"/statistics")},"学院统计")),(null===(F=_.navigationInfo)||void 0===F||null===(M=F.top)||void 0===M?void 0:M.laboratory_admin_url)&&p.a.createElement(j.a.Item,null,p.a.createElement("a",{href:null===(H=_.navigationInfo)||void 0===H||null===(B=H.top)||void 0===B?void 0:B.laboratory_admin_url},"后台管理")),p.a.createElement(j.a.Item,null,p.a.createElement(v.a,{onClick:function(){"0"===localStorage.getItem("Noviceguide")||I({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:2,href:"/classrooms",text:p.a.createElement("div",null,"OK,接下来,让我们开始新建【教学课堂】,请您找到闪光框并点击 “教学课堂”。")}})},to:"/account/profile"},"账号管理")),p.a.createElement(j.a.Item,{className:V.a.exit},p.a.createElement("a",{onClick:Object(o.a)(m.a.mark((function e(){var t;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.c)({});case 2:1===(null==(t=e.sent)?void 0:t.status)&&(I({type:"user/getUserInfo",payload:Object(c.a)({},A)}),I({type:"user/getNavigationInfo",payload:Object(c.a)({},A)}),D("autologin_trustie"),D("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),O.b.success(null==t?void 0:t.message),h.d.replace("/"));case 4:case"end":return e.stop()}}),e)})))},"退出")));var e,t,n,a,r,i,l,s,u,d,f,g,b,x,E,w,y,C,T,F,M,H,B},placement:"bottomRight"},p.a.createElement("section",null,p.a.createElement("aside",null,p.a.createElement("div",{className:1===C.actionTabs.type?V.a.classromediv:""},p.a.createElement("img",{className:"".concat(V.a.userPic," current ml15"),src:"".concat(null===B.a||void 0===B.a?void 0:B.a.IMG_SERVER,"/images/").concat(null===(x=_.userInfo)||void 0===x?void 0:x.image_url),alt:"",onClick:function(){var e;return h.d.push(Object(S.p)()?"/account/profile":"/users/".concat(null===(e=_.userInfo)||void 0===e?void 0:e.login,"/classrooms"))}}),Object(S.p)()&&p.a.createElement("span",{className:"ml10 font16"},null===(E=_.userInfo)||void 0===E?void 0:E.username))))):p.a.createElement("div",{className:"font15 mr15 ".concat(k.isIlearning?V.a.login:"")},p.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){I({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"登录"),!(null!==(y=k.setting)&&void 0!==y&&y.close_register)&&p.a.createElement(p.a.Fragment,null,p.a.createElement("span",{className:"ml5 mr5"},"|"),p.a.createElement(v.a,{to:"/user/register",className:"ml5 current c-white pr25"},"注册")))})),J=(n("+L6B"),n("2/Rp")),Y=n("Cs+z"),Z=n.n(Y),W=Object(h.a)((function(e){var t=e.homePage,n=e.loading,a=e.user,r=e.globalSetting,o=e.shixunHomeworks;return{homePage:t,user:a,globalSetting:r,loading:n.models.index,shixunHomeworks:o}}))((function(e){e.homePage,e.user,e.globalSetting,e.loading;var t=e.dispatch,n=(e.location,e.text,e.shixunHomeworks),a=(e.payload,Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Object(f.useState)("none")),r=Object(i.a)(a,2),o=r[0],c=r[1];return Object(f.useEffect)((function(){"底部弹窗"===n.actionTabs.key&&c("flex")}),[n.actionTabs.key]),Object(f.useEffect)((function(){"隐藏"===n.actionTabs.key&&(c("none"),localStorage.setItem("Noviceguide","0"))}),[n.actionTabs.key]),p.a.createElement("div",{style:{display:o,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},p.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},p.a.createElement("img",{src:Z.a,style:{position:"absolute",top:"-32px"}}),p.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},n.actionTabs.text),9===n.actionTabs.type?p.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},p.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),c("none"),t({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"呆会见,有事呼我")):p.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},p.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),t({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),c("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"跳过,我自己来"))))})),U=n("498V"),K=n.n(U),Q=u.a.Header,X=s.a.Search;function $(){var e,t,n=window.location.pathname.split("/"),a={};return!("classrooms"==n[1]&&n.length>3)||null!==(e=n[4])&&void 0!==e&&e.includes("newgold")||null!==(t=n[5])&&void 0!==t&&t.includes("newgold")||"coursesId"===n[2]||(a.course_id=n[2]),"shixuns"===n[1]&&n.length>3&&(a.objective_type="shixun",a.objective_id=n[2]),"paths"===n[1]&&n.length>3&&(a.objective_type="path",a.objective_id=n[2]),Object(c.a)(Object(c.a)({},a),{school:1})}var ee=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"];t.a=Object(h.a)((function(e){var t=e.homePage,n=e.loading,a=e.user,r=e.globalSetting,o=e.shixunHomeworks;return{homePage:t,user:a,globalSetting:r,loading:n.models.index,shixunHomeworks:o}}))((function(e){e.homePage;var t,n=e.user,a=e.globalSetting,o=(e.loading,e.dispatch),s=e.location,d=e.isLogin,m=void 0!==d&&d,h=e.shixunHomeworks,x=(Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Object(g.g)()),w=Object(f.useState)(!1),y=Object(i.a)(w,2),_=y[0],j=y[1],O=Object(f.useState)(-1),k=Object(i.a)(O,2),I=k[0],C=k[1],T=Object(f.useState)(!1),A=Object(i.a)(T,2),N=A[0],z=A[1],P=$();s.pathname;Object(f.useEffect)((function(){o({type:"user/getNavigationInfo",payload:Object(c.a)({},P)})}),[a.name]),Object(f.useEffect)((function(){"底部弹窗"===h.actionTabs.key&&(null!=ee&&ee.includes(null==s?void 0:s.pathname)||0===(null==s?void 0:s.pathname.indexOf("/classrooms"))||o({type:"shixunHomeworks/setActionTabs",payload:{key:"隐藏"}}))}),[s.pathname]),Object(f.useEffect)((function(){"底部弹窗"===h.actionTabs.key||h.actionTabs.key||localStorage.setItem("Noviceguide","0")}),[h.actionTabs.key]),Object(f.useEffect)((function(){var e,t,n;null!=a&&a.setting&&(null==a||null===(e=a.setting)||void 0===e||null===(t=e.navbar)||void 0===t||t.map((function(e,t){s.pathname.indexOf(e.link)>-1&&C(t)})),-1===I?Object(S.T)(a.setting.name):Object(S.T)((null===(n=a.setting.navbar[I])||void 0===n?void 0:n.name)||a.setting.name))}),[null==a?void 0:a.setting]);var R=Object(f.useMemo)((function(){var e,t;return null!=a&&null!==(e=a.setting)&&void 0!==e&&e.nav_logo_url?"".concat(B.a.IMG_SERVER,"/").concat(null==a||null===(t=a.setting)||void 0===t?void 0:t.nav_logo_url):"".concat(B.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat((new Date).getTime())}),[null==a||null===(t=a.setting)||void 0===t?void 0:t.nav_logo_url]);function F(e){x.push("/search?value="+e)}var M,V,H,L,D,J=function(){return _?p.a.createElement("div",{onBlur:function(){setTimeout((function(){j(!1)}),300)}},p.a.createElement(X,{placeholder:"实践课程/教学课堂/实践项目/交流问答",className:"search-input mr20",onSearch:F,autoFocus:!0})):p.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){x.push("/search?value=")}})};return a.showHeader&&a.showHeaderFooter?p.a.createElement(u.a,{className:"".concat(a.isIlearning?E.a["header-iearning"]:E.a.header," ").concat(a.showHeaderFixed?E.a.headerFixed:"")},p.a.createElement(Q,{className:"header"},p.a.createElement("section",{className:E.a["edu-menu"]},(!!a.isIlearning||!!a.isPaZhou)&&p.a.createElement(v.a,{style:{display:"flex",alignItems:"center"},onClick:function(){o({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},p.a.createElement("img",{className:E.a.logo,title:null===(M=a.setting)||void 0===M?void 0:M.name,src:a.isPaZhou?R:K.a||R}),!a.isPaZhou&&p.a.createElement("span",{className:E.a.title},"混合增强智慧教育i-Learning平台")),p.a.createElement("ul",{className:"".concat(E.a.menu," ").concat(Object(S.p)()&&"ml0")},Object(S.p)()&&p.a.createElement("li",null,p.a.createElement("a",{href:"/"},"考试系统")),!Object(S.p)()&&a.setting&&a.setting.navbar.map((function(e,t){if(!e.hidden)return p.a.createElement("li",{key:t,className:I===t?E.a.actived:""},"教学课堂"===(null==e?void 0:e.name)&&p.a.createElement(v.a,{onClick:function(){"0"===localStorage.getItem("Noviceguide")||o({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:5,text:p.a.createElement("div",null,"非常棒,咱们已经到达【教学课堂】,平台上已经有几千位老师创建了自己的教学课堂,你也可以轻松完成哟!现在请您点击页面上 “新建课堂”按钮开始新建自己的课堂~")}})},className:4===h.actionTabs.type?E.a.classromediv:"",dangerouslySetInnerHTML:{__html:e.name},to:e.link}),"教学课堂"!=(null==e?void 0:e.name)&&e.link.indexOf("http")<0&&p.a.createElement(v.a,{onClick:function(){o({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},dangerouslySetInnerHTML:{__html:e.name},to:e.link,target:e.link.indexOf("http")>-1?"_blank":"_self"}),"教学课堂"!=(null==e?void 0:e.name)&&e.link.indexOf("http")>-1&&p.a.createElement("a",{target:e.link.indexOf("http")>-1?"_blank":"_self",dangerouslySetInnerHTML:{__html:e.name},href:e.link}))}))),p.a.createElement("div",{className:"search-bar",style:{flex:a.isIlearning?"initial":"1 0 auto"}},!Object(S.p)()&&!(null!=a&&a.isIlearning)&&p.a.createElement(p.a.Fragment,null,p.a.createElement(J,null),!m&&p.a.createElement(q,null),!m&&!(null==n||null===(V=n.userInfo)||void 0===V||!V.login)&&p.a.createElement(v.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(null==n||null===(H=n.userInfo)||void 0===H?void 0:H.login,"/user_tidings")},(null==n||null===(L=n.navigationInfo)||void 0===L||null===(D=L.top)||void 0===D?void 0:D.new_message)&&p.a.createElement("span",{className:E.a.newslight}))),!m&&p.a.createElement(G,{payload:P}))),p.a.createElement(r.a,{centered:!0,destroyOnClose:!0,visible:N,title:"提示",width:"500px",okText:"立即联系",cancelText:"取消",onOk:function(){Object(S.O)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return z(!1)}},p.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},p.a.createElement("p",null,"您可以在QQ服务群向管理员申请,获得继续操作的权限"),p.a.createElement("img",{src:b.C,width:200,height:200}),p.a.createElement("p",null,"群号:693542422 ")))),p.a.createElement(W,null)):p.a.createElement(p.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,n){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,n){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"}}}]); |