diff --git a/src/pages/examination/components/dialog.vue b/src/pages/examination/components/dialog.vue index 7c3ee26f..a93a99c0 100644 --- a/src/pages/examination/components/dialog.vue +++ b/src/pages/examination/components/dialog.vue @@ -5,13 +5,13 @@ - + - {{item?.name || ''}} + {{ item?.name || '' }} @@ -19,35 +19,32 @@ \ No newline at end of file + diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index c070b7c7..1c3fb12d 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -318,6 +318,7 @@ }); const result_click = ({ key }) => { + console.log('杀杀杀', key); if (key === 'hand_in_paper') { // 现在交卷 hand_in_paper('弹窗确认交卷'); @@ -332,13 +333,13 @@ console.log('点击交卷', paperData); // 判断是否完成所有题目 const completeList = topicList - .filter((res) => !!(Array.isArray(res.my_answer) ? res.my_answer.length : res.my_answer)) + .filter((res) => !!(Array.isArray(res.my_answer) ? res.my_answer.length>0 : res.my_answer?.anserResult !=='')) .map((res) => ({ a: res.qnsId, b: res.my_answer, c: !!res.my_answer })); - dialogConfiguration.title = '确认现在交卷吗?'; + const style_button_1 = { color: '#FFFFFF', fontSize: '30rpx', @@ -352,10 +353,12 @@ borderRadius: '8rpx' }; const incompleteNumber = topicList.length - completeList.length; + console.log('completeList', completeList); + console.log('incompleteNumber', incompleteNumber); if (incompleteNumber === 0) { // 完成 - dialogConfiguration.type = 'complete'; dialogConfiguration.title = '确认现在交卷吗?'; + dialogConfiguration.html = ''; dialogConfiguration.buttonList = [ { key: 'hand_in_paper', @@ -369,7 +372,7 @@ } ]; } else { - dialogConfiguration.type = 'incomplete'; // 未完成 + dialogConfiguration.title = ''; dialogConfiguration.html = `当前考试进度:${completeList.length}/${topicList.length} 题 还有${incompleteNumber}道题未作答,确认交卷吗?`; dialogConfiguration.buttonList = [ { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 533c7783..7e60aa5c 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -406,10 +406,10 @@ } }); }; - + // 进入搜索页 const goto_search_page = () => { - common.navigateTo('/pages/search/search'); + common.navigateTo('/pages/search/search?from=index'); }; // 进入课程详情页 const goto_course_detail = (crsId) => { diff --git a/src/pages/mascot/mascot_select_list.vue b/src/pages/mascot/mascot_select_list.vue index b9c5a757..f9170c86 100644 --- a/src/pages/mascot/mascot_select_list.vue +++ b/src/pages/mascot/mascot_select_list.vue @@ -1,6 +1,9 @@