diff --git a/pages.json b/pages.json index b7d9f54..a21e7a0 100644 --- a/pages.json +++ b/pages.json @@ -9,16 +9,16 @@ } }, "pages": [ - { - "path": "pages/upload/upload2", - "style": { - "navigationBarTitleText": "", - "navigationStyle": "custom", - "app": { - "bounce": "none" - } - } - }, + // { + // "path": "pages/upload/upload2", + // "style": { + // "navigationBarTitleText": "", + // "navigationStyle": "custom", + // "app": { + // "bounce": "none" + // } + // } + // }, { "path": "pages/loading/loading", "style": { @@ -600,6 +600,38 @@ "bounce": "none" } } + }, + { + "path": "news/news", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + + { + "path": "msg/msg", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "myPatient/myPatient", + "style": { + "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } }, { "path": "newsList/newsList", @@ -741,17 +773,7 @@ // } // } // }, - // { - // "path": "myPatient/myPatient", - // "style": { - // "navigationStyle": "custom", - // "navigationBarRightButton":{ "hide": true}, - // "navigationBarTitleText": "uni-app分页", - // "app": { - // "bounce": "none" - // } - // } - // }, + // { // "path": "patientSetting/patientSetting", // "style": { @@ -854,16 +876,7 @@ // } // } // }, - // { - // "path": "news/news", - // "style": { - // "navigationStyle": "custom", - // "navigationBarTitleText": "uni-app分页", - // "app": { - // "bounce": "none" - // } - // } - // }, + // { @@ -887,16 +900,7 @@ // }, - // { - // "path": "msg/msg", - // "style": { - // "navigationStyle": "custom", - // "navigationBarTitleText": "uni-app分页", - // "app": { - // "bounce": "none" - // } - // } - // }, + // { diff --git a/pages/education/education.vue b/pages/education/education.vue index 56cff04..dc038a7 100644 --- a/pages/education/education.vue +++ b/pages/education/education.vue @@ -107,18 +107,18 @@ // 方法 // 方法 const goToCourse = (courseType) => { - console.log('进入课程:', courseType); + // 根据课程类型进行不同的处理 switch(courseType) { case 'course': - navTo({ - url: '/pages_course/course/course' + uni.sendNativeEvent('goCourse',{ + msg: 'course' }) break; case 'video': navTo({ - url: '/pages_app/video/video' + url: '/pages_app/video/video?from=education' }) break; case 'ppt': diff --git a/pages/live/live.vue b/pages/live/live.vue index a94a7b5..890e97e 100644 --- a/pages/live/live.vue +++ b/pages/live/live.vue @@ -3,6 +3,7 @@ - + @@ -288,6 +290,7 @@ const pageSize = ref(10); const scrollTop = ref(0); const permissionListener=ref(null); const topTipRef=ref(null); +const from=ref(''); const goToMeetHistroy = () => { navTo({ url: "/pages_app/meetHistroy/meetHistroy", @@ -297,7 +300,10 @@ const goToMeetHistroy = () => { onUnload (() => { permissionListener.value?.stop(); }); - onLoad(()=>{ + onLoad((options)=>{ + if(options.from){ + from.value=options.from; + } // #ifdef APP-PLUS permissionListener.value=uni.createRequestPermissionListener(); console.log('放在onLoad执行'); @@ -384,9 +390,15 @@ const goDetail = (item) => { uni.navigateTo({ url: `/pages_app/webview/webview?url=${encoded}&sharetitle=${item.title}&bg=1&type=live_yugao&imgPath=${imgPath}&share=1&title=会议详情`, }); +}; +const goBack = () => { + if(from.value){ + uni.navigateBack(); + } }; onBackPress(() => { - try{ + if(!from.value){ + try{ uni.sendNativeEvent('goTabbarPage', { msg: 'home' },ret => { @@ -397,6 +409,7 @@ const goDetail = (item) => { } plus.runtime.quit() return true; + } }) const sendWebsocketMsg = (code) => { let userInfo = uni.getStorageSync("userInfo"); @@ -1068,6 +1081,9 @@ $shadow: 0 2px 8px rgba(0, 0, 0, 0.1); right: 0; bottom:120rpx; // 底部导航栏高度 width: 100%; + &.active{ + bottom:10rpx; + } } // 筛选标签栏 diff --git a/pages/patientClass/patientClass.vue b/pages/patientClass/patientClass.vue index 95ae117..761227d 100644 --- a/pages/patientClass/patientClass.vue +++ b/pages/patientClass/patientClass.vue @@ -130,9 +130,14 @@ import api from "@/api/api.js" import docUrl from '@/utils/docUrl.js'; import navTo from '@/utils/navTo.js'; + import {onBackPress} from '@dcloudio/uni-app'; import navBar from "@/components/navBar/navBar.vue" import formatNumber from '@/utils/formatNumber.js'; const type=ref(1) + onBackPress(() => { + plus.runtime.quit(); + return true; + }); // 分页相关状态 const currentPage = ref(1); @@ -289,8 +294,8 @@ // 跳转到搜索页面 const goToSearch = () => { - uni.navigateTo({ - url: '/pages_app/search/search' + uni.sendNativeEvent('goHomeSearch',{ + msg: 'patientClass' }); }; @@ -357,16 +362,16 @@ // 检查是否有选中的标签 const hasSelected = filterTags.value.some(tag => tag.selected); isFilterActive.value = hasSelected; - + let words=''; // 执行筛选逻辑 if (hasSelected) { const selectedTags = filterTags.value.filter(tag => tag.selected).map(tag => tag.NAME); console.log('选中的标签:', selectedTags); - keywords.value = selectedTags.join(','); + words = selectedTags.join(','); } else { - keywords.value = ''; + words = ''; } - + keywords.value = words; // 重置分页状态 currentPage.value = 1; hasMore.value = true; @@ -665,16 +670,15 @@ $padding-small: 20rpx; .filter-tags { display: flex; flex-wrap: wrap; - gap: 20rpx; margin-bottom: 60rpx; max-height: 65vh; overflow-y: auto; - .tag-item { background-color: #f8f8f8; color: $gray-dark; padding: 8rpx 0rpx; - width:150rpx; + width:152rpx; + margin:8rpx; text-align:center; border-radius: 30rpx; font-size: 26rpx; diff --git a/pages_app/msg/msg.vue b/pages_app/msg/msg.vue index be288ca..2fdd6bf 100644 --- a/pages_app/msg/msg.vue +++ b/pages_app/msg/msg.vue @@ -1,47 +1,53 @@