diff --git a/public/css/demo_index.html b/public/css/demo_index.html index 38893ea4..979e6cfe 100644 --- a/public/css/demo_index.html +++ b/public/css/demo_index.html @@ -3,7 +3,7 @@ IconFont Demo - + @@ -30,6 +30,54 @@
- + {user === undefined ? + + this.educoderlogin()} className="mr5 color-grey-3">登录 + { + mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.register_url && + 注册 + } + + : user.login === "" ? + + this.educoderlogin()} className="mr5 color-grey-3">登录 + { + mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.register_url && + 注册 + } + + : +
+ + + + +
    + { + mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.edit_account && +
  • 修改资料
  • + } + { + mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.my_courses && +
  • 我的课程
  • + } + { + mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.my_projects && +
  • 我的项目
  • + } + { + mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.my_organ && +
  • 我的组织
  • + } +
  • + this.educoderloginysl()}>退出 +
  • +
+
+ } + - ); } } diff --git a/src/modules/tpm/TPMIndex.css b/src/modules/tpm/TPMIndex.css index 7ced4806..dde8c34c 100644 --- a/src/modules/tpm/TPMIndex.css +++ b/src/modules/tpm/TPMIndex.css @@ -15,7 +15,49 @@ body>.-task-title { #root .search-all { width: 219px; } +.newContainers{ + min-width: 1200px; + max-width: unset; + height: 100%; + min-height: 100%; + overflow: hidden; +} +.newHeaders{ + max-width: unset; + background: #fff !important; + width: 100%; + height:70px; + min-width: 1200px; + z-index: 1000; + -moz-box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1); + background:rgba(255,255,255,1); + box-shadow:0px 2px 10px 0px rgba(0,0,0,0.1); +} +.headerContent{ + width:1200px; + margin:0px auto; + display: flex; + align-items: center; + height: 100% +} +.globalSpin { + max-height: 700px !important; +} +.indexHOC > .ant-spin-nested-loading { + background: #000; + height: 100%; +} +.indexHOC > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { + top: 50% !important; +} +.globalSpin .ant-spin-text { + text-shadow: none !important; + color: #fff; +} +.globalSpin .ant-spin-dot-item { + background-color: #fff; +} /*Header START*/ .newHeader .logoimg { margin-top: 16px; @@ -23,11 +65,6 @@ body>.-task-title { width: 97px; } -.head-right i { - font-size: 20px; - float: none !important; -} - .headIcon, #header_keyword_search { padding-top: 13px !important; diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index c8c7b27b..19db1c1a 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -1,7 +1,6 @@ import React from 'react'; import NewHeader from './NewHeader' import NewFooter from './NewFooter' -import SiderBar from './SiderBar' import { downloadFile } from 'educoder' import axios from 'axios'; import { Spin } from 'antd'; @@ -662,49 +661,6 @@ export function TPMIndexHOC(WrappedComponent) { {...this.dialogObj} /> : ""} - - - - - - - {videoModalObj.visible && } + {/* {videoModalObj.visible && } */}