Commit 66649675 by Chao Sun

选择之后清空上一次答案

parent b0496b94
......@@ -97,7 +97,7 @@ export class AskComponent implements OnInit {
}
if(this.questionInfo){
this.allAnswers[this.curPage] = this.questionInfo;
this.questionInfo = null;
this.questionInfo = null
}
if (this.curPage < 16) {
//判断当前页是否有答案
......@@ -109,7 +109,6 @@ export class AskComponent implements OnInit {
) {
this.curPage++
this.setCurPageData()
}
} else {
this.curPage = 0
......@@ -123,7 +122,7 @@ export class AskComponent implements OnInit {
pages: this.filterItems()
}
}
console.log(answerParam)
if (this.curPage == 16) {
this.commonService.saveCustomerAnwers(answerParam).then(res => {
// console.log(res)
......@@ -132,7 +131,6 @@ export class AskComponent implements OnInit {
}
getAllAnswer(e) {
this.questionInfo = e;
console.log(e)
if(this.curPage == 6 || this.curPage == 8){
const page2Answer = this.allAnswers[1]
const optionId = page2Answer.questions[0].options[0].optionId
......
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