From a12ab04ec013d7491b202b573ddbc4cacfef3fe8 Mon Sep 17 00:00:00 2001
From: caishi <1149225589@qq.com>
Date: Wed, 9 Jun 2021 11:52:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/forge/Component/AddMember.jsx | 2 +-
src/forge/Head/Header.js | 144 +++++-------------------------
src/forge/Head/header.scss | 39 ++++++++
src/forge/Notice/Notify.jsx | 58 ++++++------
src/forge/users/Index.scss | 1 +
src/forge/users/Infos.js | 2 +-
src/forge/users/Material/Base.jsx | 1 +
7 files changed, 96 insertions(+), 151 deletions(-)
diff --git a/src/forge/Component/AddMember.jsx b/src/forge/Component/AddMember.jsx
index 2c4de6177..f1c14f07f 100644
--- a/src/forge/Component/AddMember.jsx
+++ b/src/forge/Component/AddMember.jsx
@@ -45,7 +45,7 @@ function AddMember({getID,login}){
src={getImageUrl(`/${item && item.image_url}`)}
alt=""
/>
-
+
{item.username}
({item.login})
diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js
index 9b19a5c50..8c4cdd15a 100644
--- a/src/forge/Head/Header.js
+++ b/src/forge/Head/Header.js
@@ -2,13 +2,12 @@ import React, { Component } from 'react';
import AccountProfile from "../../modules/user/AccountProfile";
import { getImageUrl } from 'educoder'
import axios from 'axios';
-import { Modal, Input, message, notification , Dropdown , Menu } from 'antd';
+import { Input , notification , Dropdown , Menu } from 'antd';
import LoginDialog from '../../modules/login/LoginDialog';
import GotoQQgroup from '../../modal/GotoQQgroup'
import '../../modules/tpm/TPMIndex.css';
-import logo from '../../modules/tpm/images/logo.png';
import './header.scss';
const $ = window.$
@@ -33,11 +32,9 @@ class NewHeader extends Component {
Checkboxteachertype: false,
Checkboxteachingtype: false,
code_notice: false,
- checked_notice: false,
RadioGroupvalue: undefined,
submitapplications: false,
isRender: false,
- showSearchOpentype: false,
showTrial: false,
setevaluatinghides: false,
occupation: 0,
@@ -45,7 +42,6 @@ class NewHeader extends Component {
headtypesonClickbool: false,
headtypess: "/",
settings: null,
- goshowqqgtounp: false,
visiblemyss: false,
openSearch:false,
}
@@ -130,43 +126,7 @@ class NewHeader extends Component {
}
}
- submitsubmitapplications = () => {
- let {
- submitapplicationssum,
- submitapplicationsvaluedata
- } = this.state;
- this.setState({
- submitapplications: false,
- RadioGroupvalue: undefined
- })
- if (submitapplicationssum === 0) {
- if (submitapplicationsvaluedata !== undefined) {
- window.location.href = "/courses/" + submitapplicationsvaluedata;
- }
- } else if (submitapplicationssum === 1) {
- if (submitapplicationsvaluedata !== undefined) {
- window.location.href = "/projects/" + submitapplicationsvaluedata;
- }
- }
- }
- hidesubmitapplications = () => {
- this.setState({
- Addcoursestypes: false,
- tojoinitemtype: false,
- tojoinclasstitle: undefined,
- rolearr: ["", ""],
- Checkboxteacherchecked: false,
- Checkboxstudentchecked: false,
- Checkboxteachingchecked: false,
- Checkboxteachertype: false,
- Checkboxteachingtype: false,
- code_notice: false,
- checked_notice: false,
- submitapplications: false,
- RadioGroupvalue: undefined
- })
- }
educoderlogin = () => {
//登录账号
this.setState({
@@ -205,23 +165,6 @@ class NewHeader extends Component {
};
- hidetojoinclass = () => {
- this.setState({
- tojoinclasstype: false,
- tojoinitemtype: false,
- tojoinclasstitle: undefined,
- rolearr: ["", ""],
- Checkboxteacherchecked: false,
- Checkboxstudentchecked: false,
- Checkboxteachingchecked: false,
- Checkboxteachertype: false,
- Checkboxteachingtype: false,
- code_notice: false,
- checked_notice: false,
- RadioGroupvalue: undefined
- })
- }
-
// 关闭
cancelModulationModels = () => {
this.setState({ isRenders: false })
@@ -313,14 +256,6 @@ class NewHeader extends Component {
}
}
-
- // 处理弹框
- setgoshowqqgtounp = (bool) => {
- this.setState({
- goshowqqgtounp: bool
- })
- }
-
addMenu=(list)=>{
return(
list && list.length >0 &&
@@ -338,6 +273,25 @@ class NewHeader extends Component {
)
}
+ renderMenu=(personal)=>{
+ const { current_user } = this.props;
+ return(
+
+ )
+ }
+
render() {
const { match} = this.props;
let current_user = this.props.user;
@@ -345,17 +299,12 @@ class NewHeader extends Component {
tojoinitemtype,
tojoinclasstitle,
code_notice,
- checked_notice,
AccountProfiletype,
- submitapplications,
- submitapplicationsvalue,
user,
isRender,
- showSearchOpentype,
headtypesonClickbool,
headtypess,
settings,
- goshowqqgtounp,
openSearch,
} = this.state;
/*用户名称 用户头像url*/
@@ -452,11 +401,6 @@ class NewHeader extends Component {
{...this.props}
{...this.state}
/> : ""}
- {
- goshowqqgtounp === true ?
-
- {i.applied_user && i.applied_user.name}
- {i.time_ago}
-
+ {i.applied_user && i.applied_user.name}
+ {i.time_ago}
+
-
-
- {
- list.map((i,k)=>{
- return(
-
- :
- ""
- }
+ list && list.length > 0 ?
+
+ {
+ list.map((i,k)=>{
+ return(
+
+ :
+ ""
+ }
+ {list && list.length === 0 &&