()
| 276 | } |
| 277 | |
| 278 | function goToNext() { |
| 279 | if (!currentQuestionItem || questionSubmitting) return; |
| 280 | if (!hasAnswerAt(currentQuestionIdx)) { |
| 281 | showToast('请先完成当前问题'); |
| 282 | return; |
| 283 | } |
| 284 | if (currentQuestionIdx >= currentQuestionItem.questions.length - 1) { |
| 285 | submitAllAnswers(); |
| 286 | } else { |
| 287 | currentQuestionIdx++; |
| 288 | renderCurrentQuestion(); |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | function updateOtherText(value) { |
| 293 | if (!currentQuestionItem) return; |
no test coverage detected