|
|
@ -196,7 +196,9 @@ const Course: FC<Props> = ({id, courseId, preview, curEnd}: Props) => { |
|
|
|
style={{height: "70vh"}} |
|
|
|
style={{height: "70vh"}} |
|
|
|
snapToEdge |
|
|
|
snapToEdge |
|
|
|
current={index} |
|
|
|
current={index} |
|
|
|
onChange={(e) => setIndex((e.target as any).value)}> |
|
|
|
onChange={(e) => { |
|
|
|
|
|
|
|
setIndex((e.target as any).current) |
|
|
|
|
|
|
|
}}> |
|
|
|
{examAll?.[time]?.map((d, index) => |
|
|
|
{examAll?.[time]?.map((d, index) => |
|
|
|
<SwiperItem> |
|
|
|
<SwiperItem> |
|
|
|
<ScrollView style='height:70vh' scrollY> |
|
|
|
<ScrollView style='height:70vh' scrollY> |
|
|
@ -218,7 +220,7 @@ const Course: FC<Props> = ({id, courseId, preview, curEnd}: Props) => { |
|
|
|
data={d as ShareSubject} |
|
|
|
data={d as ShareSubject} |
|
|
|
validate={validate} |
|
|
|
validate={validate} |
|
|
|
onAnswer={onAnswer} |
|
|
|
onAnswer={onAnswer} |
|
|
|
end={index === examAll?.[time].length} |
|
|
|
end={index === examAll?.[time].length - 1} |
|
|
|
/>} |
|
|
|
/>} |
|
|
|
{d.question_type === 3 && |
|
|
|
{d.question_type === 3 && |
|
|
|
<ShortAnswer |
|
|
|
<ShortAnswer |
|
|
@ -228,7 +230,7 @@ const Course: FC<Props> = ({id, courseId, preview, curEnd}: Props) => { |
|
|
|
onUpAndDown={(index) => setIndex(index)} |
|
|
|
onUpAndDown={(index) => setIndex(index)} |
|
|
|
index={index} |
|
|
|
index={index} |
|
|
|
validate={validate} |
|
|
|
validate={validate} |
|
|
|
end={index === examAll?.[time].length} |
|
|
|
end={index === examAll?.[time].length - 1} |
|
|
|
/>} |
|
|
|
/>} |
|
|
|
</ScrollView> |
|
|
|
</ScrollView> |
|
|
|
</SwiperItem> |
|
|
|
</SwiperItem> |
|
|
|