wenxingxing 1 день назад
Родитель
Сommit
ac844f5ee0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      pages/course/components/questionsPopup.vue

+ 2 - 2
pages/course/components/questionsPopup.vue

@@ -31,7 +31,7 @@
 			</scroll-view>
 			<view v-if="quesList.length > 0" class="bottomBtnViewClass">
 				<view v-if="~~remainSeconds > 0" class="btnViewClass" @tap.stop="close">再观看{{ formatTime(remainSeconds)
-					}}可答题</view>
+				}}可答题</view>
 				<view v-else :class="isOkAnswer ? 'btnViewClass btnViewClass-active' : 'btnViewClass'"
 					@tap="isOkAnswer ? confirmAnswer() : null">
 					提交答案</view>
@@ -105,7 +105,7 @@ export default {
 				videoId: this.videoId
 			})
 			if (res.code == 200) {
-				this.quesList = res.data.questionBankList.length > 0 ? res.data.questionBankList.map(item => ({ ...item, question: JSON.parse(item.question) })) : []
+				this.quesList = res.data.questionBankList.length > 0 ? res.data.questionBankList.map(item => ({ ...item, question: JSON.parse(item.question), answer: '' })) : []
 			}
 		},
 		// 秒数 → 分:秒 格式