dev_forum
hjm 5 years ago
parent c633f4e5c6
commit aa807dbb59

@ -23,7 +23,7 @@ class TaskList extends Component {
challenge.subject = challenge.name
const showExp = (challenge.experience > 0 && challenge.status === 2) ? '+' + challenge.experience : challenge.experience
// const showGold = (challenge.gold > 0 && challenge.status === 2) ? '+' + challenge.gold : challenge.gold
const showGold = (challenge.gold > 0 && challenge.status === 2) ? '+' + challenge.gold : challenge.gold
return (
<div className={classNames("panel-list", {'current': (currentChallenge.position-1) === index})} key={index}>
<div className="currentSelected"></div>
@ -57,7 +57,7 @@ class TaskList extends Component {
<span className={`font-12 mr15 info-partly ${(challenge.status === 2 && challenge.experience > 0) ? 'positive ' : 'negative'}`} id="shixun_grade_118">
金币<span className="ml5">
{/*因为关卡金币和经验值是一样的,所以这里可以直接用经验值*/}
{ showExp }
{ showGold }
</span>
</span>

Loading…
Cancel
Save