11.28提交

This commit is contained in:
zoujiandong
2025-11-28 10:43:13 +08:00
parent 91726b87c5
commit 9788e723a2
17 changed files with 1005 additions and 408 deletions
+15 -7
View File
@@ -1,5 +1,5 @@
<template>
<uni-nav-bar
<!-- <uni-nav-bar
left-icon="left"
title="诊疗指南"
@clickLeft="goBack"
@@ -8,14 +8,15 @@
height="180rpx"
:border="false"
backgroundColor="#eeeeee"
></uni-nav-bar>
></uni-nav-bar> -->
<navBar title="诊疗指南"/>
<view class="zhinan-page" v-if="tab=='zhinan'">
<!-- 导航栏 -->
<!-- 固定搜索栏 -->
<view class="search-container-fixed filter-bar">
<view class="search-box">
<view class="search-box" @click="goSearch">
<uni-icons type="search" size="16" color="#999"></uni-icons>
<text class="search-text">搜索</text>
</view>
@@ -263,7 +264,8 @@
import delImg from "@/static/delete_paper.png"
import api from '@/api/api.js'
import docUrl from "@/utils/docUrl.js"
import navTo from '@/utils/navTo.js';
import navTo from '@/utils/navTo.js';
import navBar from "@/components/navBar/navBar.vue"
const total=ref(0);
const tab=ref('zhinan')
// 响应式数据
@@ -285,7 +287,13 @@
const showFilterPopup = () => {
showFilter.value = true;
};
const goSearch=()=>{
uni.sendNativeEvent('goHomeSearch', {
msg: 'goHomeSearch'
},ret => {
console.log(ret);
})
}
const hideFilterPopup = () => {
showFilter.value = false;
};
@@ -556,7 +564,7 @@ $accent-color: #4A90E2;
// 固定搜索容器
.search-container-fixed {
position: fixed;
top: 180rpx; // 导航栏高度
top: calc(var(--status-bar-height) + 44px); // 导航栏高度
left: 0;
right: 0;
z-index: 90;
@@ -613,7 +621,7 @@ $accent-color: #4A90E2;
padding: 30rpx;
gap: 20rpx;
margin:0 30rpx;
margin-top: 100rpx; // 为固定搜索栏留出空间 (搜索栏高度约80rpx + 边距)
margin-top: calc(var(--status-bar-height) + 44px + 106rpx); // 为固定搜索栏留出空间 (搜索栏高度约80rpx + 边距)
.guideline-item {