diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index bf86c119..6a2c99c6 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -45,6 +45,7 @@ 筛选 + { + changeTab({name:activeTab.value || '全部'}) + }); + }) + onUnmounted(() => { + uni.$off('refresh_course_list'); }) onActivated(() => { // 重新获取标签信息 @@ -345,9 +353,9 @@ import { onShow } from "@dcloudio/uni-app" }) changeTab({name:activeTab.value || '全部'}) }); - onShow(()=>{ - changeTab({name:activeTab.value || '全部'}) - }) + // onShow(()=>{ + // changeTab({name:activeTab.value || '全部'}) + // }) @@ -426,7 +434,7 @@ import { onShow } from "@dcloudio/uni-app" height: 588rpx; padding-bottom: 80rpx; overflow-y: hidden; - z-index: 2; + z-index: 10; background-color: #f9f9f9; box-shadow: 0rpx 12rpx 20rpx rgba(160,160,160,.25); border-radius: 0 0 0rpx 0rpx; @@ -504,7 +512,17 @@ import { onShow } from "@dcloudio/uni-app" } } } - .filter-list{ + .model-filter-list{ + position: fixed; + width: 100vw; + height: 100vh; + overflow: hidden; + top: 0; + left: 0; + z-index: 1; + } + .filter-list, + .model-filter-list{ display: none; &.show{ display: block; diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 7f4f777c..5e486fa9 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -347,6 +347,7 @@ const showOrder = ref(0) const isLastPgrph = ref(false) const backRouter = () => { // common.redirectTo(`/pages/courseDetail/index?crsId=${crsId.value}&crsNum=${crsNum.value}&from=study`) + uni.$emit('refresh_course_list'); common.navigateBack() } @@ -395,6 +396,7 @@ const getGraphInfoUnStudy = (flag = 0) => { }) .finally(() => {}) } + uni.$emit('refresh_course_list'); return } lastTalkingInfo.value = { diff --git a/src/pages/search/result.vue b/src/pages/search/result.vue index 2e664c3b..49cf01b5 100644 --- a/src/pages/search/result.vue +++ b/src/pages/search/result.vue @@ -1,572 +1,515 @@