diff --git a/src/pages/qaFormDetail/index.ts b/src/pages/qaFormDetail/index.ts index 394c5d7..4a4d9c7 100644 --- a/src/pages/qaFormDetail/index.ts +++ b/src/pages/qaFormDetail/index.ts @@ -33,11 +33,12 @@ Page({ data: { questions: [] as IQuestion[], hasData: false, + showPage: false, }, onLoad() {}, onShow() { - this.setData({ questions: [], hasData: false }) + this.setData({ questions: [], hasData: false, showPage: false }) app.waitLogin({}).then(() => { this.loadData() }) @@ -77,7 +78,7 @@ Page({ Images: [], Condition: condition, visible: !condition, - displayNo: 0, + displayNo: '', answerText: '', } }) @@ -175,6 +176,7 @@ Page({ } }) if (Object.keys(updates).length) { + updates.showPage = true this.setData(updates) } }, diff --git a/src/pages/qaFormDetail/index.wxml b/src/pages/qaFormDetail/index.wxml index 50aba2f..966fc77 100644 --- a/src/pages/qaFormDetail/index.wxml +++ b/src/pages/qaFormDetail/index.wxml @@ -1,9 +1,9 @@ - + - {{item.displayNo}}. {{item.QuestionContent}} + {{item.displayNo}}. {{item.QuestionContent}} {{item.answerText}}