3.5提交代码

This commit is contained in:
zoujiandong
2026-03-05 09:57:10 +08:00
parent ae9a961a42
commit 799471090f
50 changed files with 5901 additions and 1879 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const countDown=()=>{
}
timer.value=setInterval(()=>{
count.value++;
if(count.value>=3){
if(count.value>=5){
clearInterval(timer.value);
plus.runtime.quit();
}
+16 -11
View File
@@ -108,8 +108,9 @@
<!-- 空状态 -->
<view class="empty-state" v-if="articleList.length === 0 && !loading">
<uni-icons type="article" size="80" color="#cccccc"></uni-icons>
<text class="empty-text">暂无文章</text>
<empty :emptyDesc="'暂无患教信息'"></empty>
<!-- <uni-icons type="article" size="80" color="#cccccc"></uni-icons>
<text class="empty-text">暂无文章</text> -->
</view>
</scroll-view>
@@ -155,7 +156,7 @@
currentPage.value = 1;
hasMore.value = true;
articleList.value = [];
polularScienceArticleListByKeywordsNew(true);
polularScienceArticleListByKeywordsNew(false);
};
const loadGuideTags = async () => {
try {
@@ -203,9 +204,9 @@
// 判断是否还有更多数据
hasMore.value = newData.length >= pageSize.value;
if (!isRefresh) {
currentPage.value++;
}
// if (!isRefresh) {
// currentPage.value++;
// }
console.log('文章数据加载成功:', articleList.value);
}
@@ -287,7 +288,7 @@
// 跳转到详情页
if (article.path) {
uni.navigateTo({
url: `/pages_app/webview/webview?url=${encodeURIComponent(docUrl+article.path)}&title=患教详情`
url: `/pages_app/webview/webviewClass?url=${encodeURIComponent(docUrl+article.path+'?fromtype=doctor')}&title=患教详情&uuid=${article.uuid}&sharetitle=${article.title}&summary=${article.summary}&type=huanjiao&imgPath=${encodeURIComponent(article.image)}`
});
}
};
@@ -313,6 +314,7 @@
// 上拉加载更多
const onLoadMore = async () => {
if (!hasMore.value || loading.value) return;
currentPage.value++
await polularScienceArticleListByKeywordsNew(false);
};
@@ -377,11 +379,11 @@
hasMore.value = true;
articleList.value = [];
showFilter.value = false;
polularScienceArticleListByKeywordsNew(true);
polularScienceArticleListByKeywordsNew(false);
};
onShow(() => {
polularScienceArticleListByKeywordsNew(true);
polularScienceArticleListByKeywordsNew(false);
loadGuideTags();
});
</script>
@@ -501,10 +503,10 @@ $padding-small: 20rpx;
// 文章列表
.article-list {
position: fixed;
height:calc(100vh - var(--status-bar-height) - 44px - 188rpx);
// height:calc(100vh - var(--status-bar-height) - 44px - 207rpx);
top: calc(var(--status-bar-height) + 44px + 188rpx);
padding-bottom: 130rpx;
bottom: 128rpx;
.article-item {
background-color: $white;
margin-bottom: $padding-small;
@@ -572,6 +574,9 @@ $padding-small: 20rpx;
font-size: 24rpx;
color: $gray-medium;
text{
white-space: nowrap;
}
}
}
}