Commit 7c77d9d9 authored by Alex朱枝文's avatar Alex朱枝文

优化历史问卷

parent 14e3e461
......@@ -268,6 +268,10 @@ class YHCustomerInformationQuestionnaireVC: YHBaseViewController {
self.answerDic[question.id] = options
}
}
if let lastModel = displayedQuestions.last, let nextQuestion = self.findNextQuestion(allQuestions: self.allQuestions, displayedQuestions: self.displayedQuestions, answerDic: self.answerDic, currentIndex: displayedQuestions.count - 1, currentOptionId: lastModel.id) {
self.displayedQuestions.append(nextQuestion)
}
} else {
for question in questions where question.showWhenV1.conditions.isEmpty {
displayedQuestions.append(question)
......
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