Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-16 13:27:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
285f013b14897c1fafaa9341c8341ca0d2066f8c
285f013b
1 parent
9a73381e
fix: 修复多个页面空状态显示逻辑
在多个页面中增加hasMore判断条件,避免加载过程中显示空状态
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
5 deletions
components.d.ts
src/pages/goodCarList/index.vue
src/pages/messages/index.vue
src/pages/newCarList/index.vue
src/pages/post/index.vue
components.d.ts
View file @
285f013
...
...
@@ -23,7 +23,6 @@ declare module 'vue' {
NutInput
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Input'
]
NutMenu
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Menu'
]
NutMenuItem
:
typeof
import
(
'@nutui/nutui-taro'
)[
'MenuItem'
]
NutNavbar
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Navbar'
]
NutOverlay
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Overlay'
]
NutPicker
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Picker'
]
NutPopup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Popup'
]
...
...
src/pages/goodCarList/index.vue
View file @
285f013
...
...
@@ -47,7 +47,7 @@
:enable-flex="false"
>
<!-- 空状态 -->
<view v-if="goodCars.length === 0 && !loading" class="empty-state text-center py-20">
<view v-if="goodCars.length === 0 && !loading
&& !hasMore
" class="empty-state text-center py-20">
<view class="empty-icon mb-4">
<Search2 size="60" color="#9ca3af" />
</view>
...
...
src/pages/messages/index.vue
View file @
285f013
...
...
@@ -70,7 +70,7 @@
</view>
<!-- 空状态提示 -->
<view v-if="filteredConversations.length === 0 && !loading" class="empty-state py-8 text-center">
<view v-if="filteredConversations.length === 0 && !loading
&& !hasMore
" class="empty-state py-8 text-center">
<Message size="48" color="#9ca3af" class="mb-4" />
<text class="text-gray-500 text-base block mb-2">暂无消息</text>
<text class="text-gray-400 text-sm">当前筛选条件下没有找到相关消息</text>
...
...
src/pages/newCarList/index.vue
View file @
285f013
...
...
@@ -87,7 +87,7 @@
</view>
<!-- 空状态提示 -->
<view v-if="newCars.length === 0 && !loading" class="empty-state py-8 text-center">
<view v-if="newCars.length === 0 && !loading
&& !hasMore
" class="empty-state py-8 text-center">
<Search2 size="48" color="#9ca3af" class="mb-4" />
<text class="text-gray-500 text-base block mb-2">暂无最新上架车辆</text>
<text class="text-gray-400 text-sm">试试调整筛选条件或稍后再来看看</text>
...
...
src/pages/post/index.vue
View file @
285f013
...
...
@@ -68,7 +68,7 @@
</view>
<!-- 空状态提示 -->
<view v-if="scooters.length === 0 && !loading" class="empty-state py-8 text-center">
<view v-if="scooters.length === 0 && !loading
&& !hasMore
" class="empty-state py-8 text-center">
<Search2 size="48" color="#9ca3af" class="mb-4" />
<text class="text-gray-500 text-base block mb-2">暂无相关车辆</text>
<text class="text-gray-400 text-sm">试试调整筛选条件或稍后再来看看</text>
...
...
Please
register
or
login
to post a comment