jingsai.10 图片资源优化

dev_sync_trustie
杨树林 5 years ago
parent ad044af7a2
commit c46e703340

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -1,6 +1,6 @@
import React, {Component} from 'react';
import competition from './comcss/competition.css';
import {getImageUrl} from 'educoder';
// 团队竞赛报名大图
class CompetitionMaxImg extends React.Component {
constructor(props) {
@ -38,7 +38,9 @@ class CompetitionMaxImg extends React.Component {
</style>
{
type === 1 || type === 2 ?
<div className="registrationback">
<div className="registrationback"
style={{"background": `url(${getImageUrl(`images/educoder/competitions/tipregistit.jpg`)})`}}
>
<p className="registrationbackp1">Educoder竞赛平台</p>
<p className="registrationbackp2">Educoder是一个面向计算机类的互联网IT教育和实战平台</p>
<p className="registrationbackp3">提供企业级工程实训以实现工程化专业教学的自动化和智能化</p>
@ -54,7 +56,8 @@ class CompetitionMaxImg extends React.Component {
</div>
:
type === 3 ?
<div className="registrationback">
<div className="registrationback"
style={{"background": `url(${getImageUrl(`images/educoder/competitions/tipregistit.jpg`)})`}}>
<p className="registrationbackp1">Educoder竞赛平台</p>
<p className="registrationbackp4">高校智能课堂与综合实训平台</p>
<div className="registrationbackp2button2">
@ -69,7 +72,8 @@ class CompetitionMaxImg extends React.Component {
</div>
:
type === 4 || type === 5 ?
<div className="registrationback1">
<div className="registrationback1"
style={{"background": `url(${getImageUrl(`images/educoder/competitions/tipregistit.jpg`)})`}}>
<p className="registrationbackp11">Educoder竞赛平台</p>
<p className="registrationbackp22">高校智能课堂与综合实训平台</p>
<div className="registrationbackp2button3">
@ -83,7 +87,8 @@ class CompetitionMaxImg extends React.Component {
</div>
</div>
: type === 6 ?
<div className="registrationback">
<div className="registrationback"
style={{"background": `url(${getImageUrl(`images/educoder/competitions/tipregistit.jpg`)})`}}>
<p className="registrationbackp1">Educoder竞赛平台</p>
<p className="registrationbackp2">Educoder是一个面向计算机类的互联网IT教育和实战平台</p>
<p className="registrationbackp3">提供企业级工程实训以实现工程化专业教学的自动化和智能化</p>
@ -106,7 +111,8 @@ class CompetitionMaxImg extends React.Component {
</div>
</div>
:
<div className="registrationback">
<div className="registrationback"
style={{"background": `url(${getImageUrl(`images/educoder/competitions/tipregistit.jpg`)})`}}>
</div>
}

@ -8,8 +8,8 @@ import axios from 'axios';
import moment from 'moment';
import competition from './comcss/competition.css';
import {Checkbox, Table, Pagination, Menu, Icon} from "antd";
import {getImageUrl} from 'educoder';
// 团队竞赛报名无报名子组件团队 在线竞赛 > 全国高校计算机大赛-项目挑战>
import Rectanglex from "../../modules/competition/Rectanglex.png";
class RegisListview extends React.Component {
constructor(props) {
super(props)
@ -25,7 +25,7 @@ class RegisListview extends React.Component {
display: "flex",
justifyContent: " space-around",
alignItems: "center",
background: `url(${Rectanglex})`,
background: `url(${getImageUrl(`images/educoder/competitions/Rectanglex.png`)})`,
height: "50px",
backgroundPosition: "center",
backgroundSize: "110% 100%",

@ -9,7 +9,6 @@ import moment from 'moment';
import {SnackbarHOC, WordsBtn, getImageUrl} from 'educoder';
import {TPMIndexHOC} from '../tpm/TPMIndexHOC';
import competition from './comcss/competition.css';
import pexjiazai from './pexjiazai.png'
import {Button} from 'antd';
// 团队竞赛报名无报名子组件团队 竞赛报名-已创建战队
@ -97,7 +96,8 @@ class RegisListviewdata extends React.Component {
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
</img>
<img className="regitemimgs22" src={pexjiazai}>
<img className="regitemimgs22"
src={getImageUrl(`images/educoder/competitions/pexjiazai.png`)}>
</img>
</div>

@ -1,6 +1,6 @@
import React, {Component} from 'react';
import competition from './comcss/competition.css';
import Noentry from './Noentry.jpg';
import {getImageUrl} from 'educoder';
// 团队竞赛报名无报名子组件
class RegisNodata extends React.Component {
constructor(props) {
@ -17,7 +17,7 @@ class RegisNodata extends React.Component {
height: "80px",
width: "125px",
marginTop: "107px",
background: `url(${Noentry})`,
background: `url(${getImageUrl(`images/educoder/competitions/Noentry.jpg`)})`,
backgroundPosition: "center",
backgroundSize: "110% 100%",
}}>

@ -21,8 +21,6 @@ import MessagePersonModal from './competmodal/MessagePersonModal';
import PersonalModalteam from './competmodal/PersonalModalteam';
import PersonalCompetititem from './personal/PersonalCompetititem';
import ExittheteamModel from './competmodal/ExittheteamModel';
import pexjiazai from "./pexjiazai.png";
// 团队竞赛报名无报名
class Registration extends React.Component {
/***

@ -323,7 +323,6 @@
display: -webkit-flex;
flex-direction: column;
align-items: center;
background-image: url(./tipregistit.jpg);
}
.registrationback1 {
@ -331,7 +330,6 @@
width: 1200px;
display: flex;
flex-direction: column;
background-image: url(./tipregistit.jpg);
}
.regitem2 {

@ -65,13 +65,13 @@ class PersonModal extends Component {
school_name: this.props.user.user_school,
student_id: null,
identity: this.props.user.user_identity,
type: "创建者",
type: "导师",
};
data.push(datas);
console.log("itemiddata");
console.log("编辑战队")
console.log(this.props.itemiddata);
// console.log("itemiddata");
// console.log("编辑战队")
// console.log(this.props.itemiddata);
try {
if (this.props.Newtit === false) {
for (var i = 0; i < this.props.itemiddata.team_members.length; i++) {
@ -126,7 +126,7 @@ class PersonModal extends Component {
school_name: this.props.user.user_school,
student_id: null,
identity: this.props.user.user_identity,
type: "创建者",
type: "导师",
};
data.push(datas);
this.setState({
@ -670,11 +670,21 @@ class PersonModal extends Component {
textAlign: "center",
}}
>{item.name === undefined || item.name === null || item.name === "" ? "--" : item.name}</p>
<p className=" reglistviewdivss4p"
style={{
textAlign: "center",
}}
>{item.type === undefined || item.type === null || item.type === "" ? "--" : item.type}</p>
{
index === 0 ?
<p className=" reglistviewdivss4p"
style={{
textAlign: "center",
}}
>创建者</p>
:
<p className=" reglistviewdivss4p"
style={{
textAlign: "center",
}}
>{item.type === undefined || item.type === null || item.type === "" ? "--" : item.type}</p>
}
<p className=" reglistviewdivss5p"
style={{
textAlign: "center",
@ -685,12 +695,20 @@ class PersonModal extends Component {
textAlign: "center",
}}
>{item.identity === undefined || item.identity === null || item.identity === "" ? "--" : item.identity}</p>
<p className=" reglistviewdivss33p"
style={{
textAlign: "center",
}}
>{item.type && item.type === "创建者" ? "" :
<i className="iconfont icon-guanbi font-12" onClick={() => this.deletedata(item)}/>}</p>
{
index === 0 ?
<p className=" reglistviewdivss33p"
style={{
textAlign: "center",
}}
></p>
:
<p className=" reglistviewdivss33p"
style={{
textAlign: "center",
}}
><i className="iconfont icon-guanbi font-12" onClick={() => this.deletedata(item)}/></p>
}
</div>
);
var cpersondiv1Items = [];

@ -9,7 +9,6 @@ import moment from 'moment';
import competition from './comcss/competition.css';
import {Checkbox, Table, Pagination, Menu, Icon} from "antd";
// 团队竞赛报名无报名子组件团队 在线竞赛 > 全国高校计算机大赛-项目挑战>
import Rectanglex from "../../modules/competition/Rectanglex.png";
class PersonModaltion extends React.Component {
constructor(props) {

@ -10,8 +10,6 @@ import {SnackbarHOC, WordsBtn, getImageUrl} from 'educoder';
import {TPMIndexHOC} from '../../tpm/TPMIndexHOC';
import competition from '../comcss/competition.css';
import {Button, message} from 'antd';
import pexjiazai from '../pexjiazai.png'
// 点击按钮复制功能
function jsCopy() {
var e = document.getElementById("copy_invite_code");
@ -126,7 +124,8 @@ class PersonalCompetititem extends React.Component {
</img>
<img className="regitemimgs22" src={pexjiazai}>
<img className="regitemimgs22"
src={getImageUrl(`images/educoder/competitions/pexjiazai.png`)}>
</img>
</div>

Loading…
Cancel
Save