|
@@ -29,10 +29,10 @@ export default (props) => {
|
29
|
29
|
try {
|
30
|
30
|
warn(total < 1, '找不到作答题目');
|
31
|
31
|
onChange(value + 1);
|
32
|
|
- } finally {}
|
|
32
|
+ } finally { }
|
33
|
33
|
}
|
34
|
34
|
}
|
35
|
|
-
|
|
35
|
+
|
36
|
36
|
return (
|
37
|
37
|
<View className={style['qu-footer-wrapper']}>
|
38
|
38
|
{
|
|
@@ -48,19 +48,19 @@ export default (props) => {
|
48
|
48
|
}
|
49
|
49
|
<View className={style['qu-footer-act']}>
|
50
|
50
|
{
|
51
|
|
- isPrev && <Button type="primary" block plain hairline style={{flex: 1}} onClick={onPrev}>上一题</Button>
|
|
51
|
+ isPrev && <Button type="primary" block plain hairline style={{ flex: 1 }} onClick={onPrev}>上一题</Button>
|
52
|
52
|
}
|
53
|
53
|
{
|
54
|
54
|
value == -1 ? (
|
55
|
|
- <Button type="primary" block style={{flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
|
|
55
|
+ <Button type="primary" block style={{ flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
|
56
|
56
|
{readonly ? '查看测评' : '开始测评'}
|
57
|
57
|
</Button>
|
58
|
58
|
) : (
|
59
|
59
|
!(readonly && isFinished) && (
|
60
|
|
- <Button type="primary" block style={{flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
|
|
60
|
+ <Button type="primary" block style={{ flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
|
61
|
61
|
{isFinished ? '提交' : '下一题'}
|
62
|
62
|
</Button>
|
63
|
|
- )
|
|
63
|
+ )
|
64
|
64
|
)
|
65
|
65
|
}
|
66
|
66
|
</View>
|