Commit dd856fcf by xuzhenghua

app

parents 5dc25768 6ef6494f
...@@ -52,7 +52,12 @@ class LevelTest extends Component { ...@@ -52,7 +52,12 @@ class LevelTest extends Component {
startTest = () => { startTest = () => {
const {history, isLogin, toLogin} = this.props; const {history, isLogin, toLogin} = this.props;
if(isLogin) { if(isLogin) {
history.push('/levelTest/test'); // history.push('/levelTest/test');
// if(getParam('version')) {
window.location.href = `${API.m}/levelTest/test`;
// }else{
// history.push('/levelTest/test');
// }
}else{ }else{
toLogin(); toLogin();
} }
...@@ -73,11 +78,6 @@ class LevelTest extends Component { ...@@ -73,11 +78,6 @@ class LevelTest extends Component {
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/test_icon.png" /> <img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/test_icon.png" />
<div className="button__text"> <div className="button__text">
<p>点击测试</p> <p>点击测试</p>
{
isLogin && (
<span>(剩余{number}次)</span>
)
}
</div> </div>
</div> </div>
<div className='test__number'> <div className='test__number'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment