diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js index 1a16e43d6..44aa1ecb8 100644 --- a/public/react/src/modules/tpm/TPMBanner.js +++ b/public/react/src/modules/tpm/TPMBanner.js @@ -268,7 +268,7 @@ class TPMBanner extends Component { }) // window.location.href = response.data.url; // response.data.course_id - this.props.history.replace("/courses"); + this.props.history.replace(response.data.first_category_url); }).catch((error) => { console.log(error) diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js index c956736a0..8db18278d 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js @@ -327,7 +327,7 @@ class Challenges extends Component {
-

+

简介 -

+

+

+ {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? + + + + 实践任务 + + + : "" + } + {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? + + + + 选择题任务 + + : "" + } +

@@ -353,31 +380,31 @@ class Challenges extends Component {

全部任务 - {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? - - - - 实践任务 - - - : "" - } - {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? - - - - 选择题任务 - - : "" - } + {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? + + + + 实践任务 + + + : "" + } + {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ? + + + + 选择题任务 + + : "" + }

diff --git a/public/react/src/modules/user/usersInfo/InfosShixun.js b/public/react/src/modules/user/usersInfo/InfosShixun.js index 61a9ce8cb..55fb45cf6 100644 --- a/public/react/src/modules/user/usersInfo/InfosShixun.js +++ b/public/react/src/modules/user/usersInfo/InfosShixun.js @@ -152,6 +152,17 @@ class InfosShixun extends Component{
+
{/* 298 */} { @@ -166,7 +177,9 @@ class InfosShixun extends Component{ return(
this.turnToCourses(`/shixuns/${item.identifier}/challenges`)}> { - item.tag &&
{item.tag}
+ item.tag &&
{item.tag} + {/**/} +
}