hookehuyr

fix: 修复多个页面空状态显示逻辑

在多个页面中增加hasMore判断条件,避免加载过程中显示空状态
......@@ -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']
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......