dev_auth
杨树明 5 years ago
parent ecfa75ead0
commit 4210f684a4

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

@ -40,7 +40,8 @@
width: 60px; width: 60px;
height: 60px; height: 60px;
border-radius: 50%; border-radius: 50%;
box-shadow: 0px 0px 12px rgba(0,0,0,0.2); border:1px solid #F4F4F4;
/*box-shadow: 0px 0px 12px rgba(0,0,0,0.2);*/
} }
.huangguans{ .huangguans{

@ -6,8 +6,9 @@ import Dropdownbox from './Dropdownbox';
import Dynamiclist from './Dynamiclist'; import Dynamiclist from './Dynamiclist';
import NoneData from "../../courses/coursesPublic/NoneData"; import NoneData from "../../courses/coursesPublic/NoneData";
import './Statistics.css'; import './Statistics.css';
const qs = require('qs');
const { TabPane } = Tabs; const { TabPane } = Tabs;
class Statistics extends Component{ class Statistics extends Component{
constructor(props){ constructor(props){
super(props); super(props);
@ -163,7 +164,10 @@ class Statistics extends Component{
group_id:group_ids group_id:group_ids
} }
axios.get(url,{params: axios.get(url,{params:
data data,
paramsSerializer: function(params) {
return qs.stringify(params, {arrayFormat: 'brackets'})
}
}).then((response)=>{ }).then((response)=>{
if(response === undefined){ if(response === undefined){
return return
@ -434,7 +438,7 @@ class Statistics extends Component{
return( return(
<Col span={5} className={"relatives"}> <Col span={5} className={"relatives"}>
<li className="pr rankingss"> <li className="pr rankingss">
<img src="https://test-newweb.educoder.net/images/educoder/huangguan.png" className="huangguans mb5" /> <img src="https://test-newweb.educoder.net/images/educoder/imperialcrown.png" className="huangguans mb5" />
<a href={`/users/${item.user_login}`} className="color-dark"> <a href={`/users/${item.user_login}`} className="color-dark">
<img src={getImageUrl(`images/${item.avatar_url}`)} className={"mb10 mt5"}/> <img src={getImageUrl(`images/${item.avatar_url}`)} className={"mb10 mt5"}/>
</a> </a>

@ -609,7 +609,7 @@ submittojoinclass=(value)=>{
getUser=(url,type)=>{ getUser=(url,type)=>{
if(type==="projects"){ if(type==="projects"){
if(!this.props.user&&this.props.user.email){ if(this.props.user&&this.props.user.email===undefined||this.props.user&&this.props.user.email===null||this.props.user&&this.props.user.email===""){
this.openNotification("请先绑定邮箱,谢谢"); this.openNotification("请先绑定邮箱,谢谢");
return return
} }

@ -17,8 +17,7 @@ class publicCreateNew extends Component{
//头部获取是否已经登录了 //头部获取是否已经登录了
getUser=(url)=> { getUser=(url)=> {
console.log(this.props) if (this.props.user&&this.props.user.email===undefined||this.props.user&&this.props.user.email===null||this.props.user&&this.props.user.email==="") {
if (!this.props.user && this.props.user.email) {
this.props.showNotification("请先绑定邮箱,谢谢"); this.props.showNotification("请先绑定邮箱,谢谢");
return return
} }

Loading…
Cancel
Save