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 @@
-
+
{{ title }}
- {{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 @@
+
+
+
@@ -88,7 +91,7 @@
const swiperCount = computed(() => mascotList.length)
let swiperIndex = ref(0); // 当前显示第1个(索引0)
const isAnimating = ref(false); // 标记动画是否进行中
-
+
const animationfinish = ({
detail
}) => {
@@ -130,7 +133,9 @@
common.hideLoading()
})
}
- onLoad(() => {
+ const from = ref('')
+ onLoad((e) => {
+ from.value = e.from ?? ''
common.loading()
queryValidTraMascotInfo().then(({
body
@@ -153,6 +158,38 @@
\ No newline at end of file
+.main_div {
+ width: 100vw;
+ background: linear-gradient(90deg, #f1f7ff 0%, #d8edff 50%, #c3e6ff 100%);
+ padding-top: var(--status-bar-height);
+ height: 100vh;
+ overflow: hidden;
+}
+::v-deep .uv-tabs__wrapper__nav__item__text {
+ white-space: nowrap;
+}
+
diff --git a/src/pages/search/search.vue b/src/pages/search/search.vue
index cc475f89..b794fd22 100644
--- a/src/pages/search/search.vue
+++ b/src/pages/search/search.vue
@@ -14,6 +14,7 @@
placeholderStyle="color:#999999;font-size:26rpx"
placeholder="请输入关键字"
:focus="true"
+ :maxlength="60"
:adjust-position="false"
@confirm="search"
>
@@ -54,6 +55,7 @@