chromesetting
杨树明 5 years ago
parent 29c9087d72
commit b9a2bce771

@ -8,7 +8,7 @@ import {getImageUrl,} from "educoder";
import './TPMright.css'; import './TPMright.css';
import {Icon, Tooltip} from 'antd'; import {Progress, Tooltip} from 'antd';
// import "antd/dist/antd.css"; // import "antd/dist/antd.css";
@ -59,7 +59,7 @@ class TPMRightSection extends Component {
render() { render() {
let {TPMRightSection, clickNewsubscripttype} = this.state; let {TPMRightSection, clickNewsubscripttype} = this.state;
let {TPMRightSectionData} = this.props let {TPMRightSectionData} = this.props
console.log(this.props) console.log(this.props.status)
return ( return (
<div> <div>
{ {
@ -93,6 +93,22 @@ class TPMRightSection extends Component {
</div> </div>
</div> </div>
</div> </div>
<div className="edu-back-white padd252020px relative">
<div className="font-16 mb5">
<span><i className={"iconfont icon-biaoqian2 audit_situationactive font-14"}></i> </span>
<span className={"sortinxdirection space-between fr"}>
<span className="color888hezuo font-12">已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count} / {TPMRightSectionData&&TPMRightSectionData.challenge_count} </span>
</span>
</div>
{console.log(TPMRightSectionData&&TPMRightSectionData.complete_count)}
{console.log(TPMRightSectionData&&TPMRightSectionData.challenge_count)}
<Progress percent={(parseInt(TPMRightSectionData&&TPMRightSectionData.complete_count) / parseInt(TPMRightSectionData&&TPMRightSectionData.challenge_count))/ 100.00} showInfo={false} status="active" strokeColor={{
'0%': '#29BD8B',
'100%': '#29BD8B',
}} />
</div>
{ {
TPMRightSectionData === undefined ? "" : TPMRightSectionData.tags === undefined ? "" : TPMRightSectionData.tags.length === 0 ? "" : TPMRightSectionData === undefined ? "" : TPMRightSectionData.tags === undefined ? "" : TPMRightSectionData.tags.length === 0 ? "" :
<div className="edu-back-white padd252020px mb10 relative"> <div className="edu-back-white padd252020px mb10 relative">
@ -123,7 +139,7 @@ class TPMRightSection extends Component {
<span className="mr8"> <span className="mr8">
<div> <div>
<p className={"font-12"}>展开全部</p> <p className={"font-12"}>展开全部</p>
<p className={"font-12"}><i className={"iconfont icon-jiantou9"}></i></p> <p className={"font-12"}><i className={"iconfont icon-jiantou9 font-12"}></i></p>
</div> </div>
</span> </span>
</div> </div>
@ -133,7 +149,7 @@ class TPMRightSection extends Component {
onClick={() => this.clickNewsubscript(1)}> onClick={() => this.clickNewsubscript(1)}>
<span className="mr8"> <span className="mr8">
<div> <div>
<p className={"font-12"}><i className={"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu-"}></i></p> <p className={"font-12"}><i className={"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu- font-12"}></i></p>
<p className={"font-12"}>收起全部</p> <p className={"font-12"}>收起全部</p>
</div> </div>
</span> </span>
@ -148,7 +164,7 @@ class TPMRightSection extends Component {
<div className="padding20 edu-back-white mb10 mt10" style={{ <div className="padding20 edu-back-white mb10 mt10" style={{
display: TPMRightSectionData === undefined ? "none" : TPMRightSectionData.paths === undefined ? "" : TPMRightSectionData.paths.length === 0 ? "none" : "block" display: TPMRightSectionData === undefined ? "none" : TPMRightSectionData.paths === undefined ? "" : TPMRightSectionData.paths.length === 0 ? "none" : "block"
}}> }}>
<p className="mb20 font-16 clearfix">所属课程</p> <p className="mb20 font-16 clearfix"><i className={"iconfont icon-shu1 audit_situationactive font-14"}></i> </p>
<div className="recommend-list"> <div className="recommend-list">
{ {
TPMRightSectionData === undefined ? "" : TPMRightSectionData.paths === undefined ? "" : TPMRightSectionData.paths.map((i, k) => { TPMRightSectionData === undefined ? "" : TPMRightSectionData.paths === undefined ? "" : TPMRightSectionData.paths.map((i, k) => {
@ -198,7 +214,7 @@ class TPMRightSection extends Component {
TPMRightSectionData === undefined ? "none" : TPMRightSectionData.recommands === undefined ? "none" : TPMRightSectionData.recommands.length === 0 ? "none" : "block" TPMRightSectionData === undefined ? "none" : TPMRightSectionData.recommands === undefined ? "none" : TPMRightSectionData.recommands.length === 0 ? "none" : "block"
}} }}
> >
<p className="mb20 font-16 clearfix">推荐实训</p> <p className="mb20 font-16 clearfix"><i className={"iconfont icon-tuijian audit_situationactive font-14"}></i> </p>
<div className="recommend-list"> <div className="recommend-list">
{ {
TPMRightSectionData === undefined ? "" : TPMRightSectionData.recommands === undefined ? "" : TPMRightSectionData.recommands.map((item, key) => { TPMRightSectionData === undefined ? "" : TPMRightSectionData.recommands === undefined ? "" : TPMRightSectionData.recommands.map((item, key) => {

Loading…
Cancel
Save