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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save