12.10提交

This commit is contained in:
zoujiandong
2025-12-10 17:33:39 +08:00
parent 22104881f1
commit c86aa03f01
28 changed files with 3237 additions and 279 deletions
+14 -7
View File
@@ -42,7 +42,8 @@
<view class="item-action">
<view class="download-btn" @click.stop="downLoad(item)" v-if="!downLoadtaskList.includes(item.uuid)">
<!-- <up-icon name="download" color="#8D2316" size="28" ></up-icon> -->
<uni-icons type="arrow-down" size="26" color="#8D2316"></uni-icons>
<up-image :src="downIng" width="35rpx" height="35rpx"></up-image>
<!-- <uni-icons type="arrow-down" size="26" color="#8D2316"></uni-icons> -->
</view>
<view
v-else
@@ -70,10 +71,11 @@
</view>
<!-- 无数据提示 -->
<view class="no-data" v-if="guidelinesList.length === 0 && !isLoading">
<empty v-if="guidelinesList.length === 0 && !isLoading"></empty>
<!-- <view class="no-data" v-if="guidelinesList.length === 0 && !isLoading">
<uni-icons type="info" size="60" color="#999"></uni-icons>
<text>暂无诊疗指南数据</text>
</view>
</view> -->
</scroll-view>
</view>
@@ -87,6 +89,7 @@ import docUrl from "@/utils/docUrl.js"
import navTo from "@/utils/navTo.js"
import hotImg from "@/static/hot_booklist.png"
import navBar from "@/components/navBar/navBar.vue"
import empty from "@/components/empty/empty.vue"
// 响应式数据
const guidelinesList = ref([])
const isLoading = ref(false)
@@ -97,6 +100,7 @@ const isRefreshing = ref(false)
const keywords=ref('');
import upImg from "@/static/triangle_green_theme.png"
import downImg from "@/static/triangle_normal.png"
import downIng from "@/static/icon_library_down.png";
const loadMoreStatus = ref('more') // 'loading', 'more', 'noMore'
const typeUuid=ref('');
const title=ref('');
@@ -160,7 +164,7 @@ onShow(() => {
if(from.value){
top10ByType();
}else{
loadGuidelinesList(true)
loadGuidelinesList(false)
}
}
})
@@ -257,15 +261,16 @@ const loadGuidelinesList = async (isRefresh = false) => {
try {
isLoading.value = true
loadMoreStatus.value = 'loading'
let expertUuid=uni.getStorageSync('userInfo').uuid;
const params = {
page: currentPage.value,
pageSize: pageSize.value,
expertUUid:expertUuid,
type: 1, // 诊疗指南类型
sort:2,
name:name.value,
typeUuid:typeUuid.value,
keywords:keywords.value
keyWords:keywords.value
}
const res = await api.searchLibraryU(params)
@@ -283,7 +288,7 @@ const loadGuidelinesList = async (isRefresh = false) => {
}
// 判断是否还有更多数据
if (newData.length < pageSize.value) {
if (newData.length < res.data.pageSize) {
loadMoreStatus.value = 'noMore'
hasMoreData.value = false
console.log('没有更多数据了');
@@ -382,6 +387,8 @@ const downLoad = (item) => {
url: docUrl + item.path,
title: item.title,
id: item.uuid,
type: 'zhinan',
releaseTime: item.releaseTime,
});
};
// 查看指南(支持常用文档直链:pdf/doc/docx/xls/xlsx/ppt/pptx/txt