|
|
|
@ -9,8 +9,20 @@ import moment from 'moment';
|
|
|
|
|
import {SnackbarHOC, WordsBtn, getImageUrl} from 'educoder';
|
|
|
|
|
import {TPMIndexHOC} from '../../tpm/TPMIndexHOC';
|
|
|
|
|
import competition from '../comcss/competition.css';
|
|
|
|
|
import {Button} from 'antd';
|
|
|
|
|
import {Button, message} from 'antd';
|
|
|
|
|
import pexjiazai from '../pexjiazai.png'
|
|
|
|
|
|
|
|
|
|
// 点击按钮复制功能
|
|
|
|
|
function jsCopy() {
|
|
|
|
|
var e = document.getElementById("copy_invite_code");
|
|
|
|
|
e.select();
|
|
|
|
|
document.execCommand("Copy");
|
|
|
|
|
codesuccess()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function codesuccess() {
|
|
|
|
|
message.success('复制成功');
|
|
|
|
|
};
|
|
|
|
|
// 团队竞赛报名无报名子组件团队 竞赛报名-已创建战队
|
|
|
|
|
class PersonalCompetititem extends React.Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
@ -124,19 +136,37 @@ class PersonalCompetititem extends React.Component {
|
|
|
|
|
<div className=" " style={{
|
|
|
|
|
marginLeft: "37px",
|
|
|
|
|
}}>
|
|
|
|
|
<p style={{
|
|
|
|
|
|
|
|
|
|
marginTop: "30px",
|
|
|
|
|
<div style={{marginTop: "23px",}}>
|
|
|
|
|
<span style={{
|
|
|
|
|
color: "#05101A",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
}}>邀请码:</span>
|
|
|
|
|
<span id="copy_invite_code"
|
|
|
|
|
style={{
|
|
|
|
|
color: "#05101A",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
}}>邀请码:yngh5</p>
|
|
|
|
|
}}>{data[0].invite_code === null || data[0].invite_code === undefined ? "" : data[0].invite_code}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<i className="regitemimgs3 iconfont icon-fuzhi1 font-14 font-n"
|
|
|
|
|
style={{
|
|
|
|
|
marginLeft: "18px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
</i>
|
|
|
|
|
{data[0].invite_code === null || data[0].invite_code === undefined ?
|
|
|
|
|
<i className="regitemimgs3 iconfont icon-fuzhi1 font-14 font-n"
|
|
|
|
|
style={{
|
|
|
|
|
marginLeft: "18px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
</i>
|
|
|
|
|
:
|
|
|
|
|
<i className="regitemimgs3 iconfont icon-fuzhi1 font-14 font-n"
|
|
|
|
|
style={{
|
|
|
|
|
marginLeft: "18px",
|
|
|
|
|
}}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
jsCopy()
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
</i>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this.props.type === 5 ?
|
|
|
|
|
<div className="regitemimgs4"
|
|
|
|
|