hookehuyr

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

在多个页面中增加hasMore判断条件,避免加载过程中显示空状态
...@@ -23,7 +23,6 @@ declare module 'vue' { ...@@ -23,7 +23,6 @@ declare module 'vue' {
23 NutInput: typeof import('@nutui/nutui-taro')['Input'] 23 NutInput: typeof import('@nutui/nutui-taro')['Input']
24 NutMenu: typeof import('@nutui/nutui-taro')['Menu'] 24 NutMenu: typeof import('@nutui/nutui-taro')['Menu']
25 NutMenuItem: typeof import('@nutui/nutui-taro')['MenuItem'] 25 NutMenuItem: typeof import('@nutui/nutui-taro')['MenuItem']
26 - NutNavbar: typeof import('@nutui/nutui-taro')['Navbar']
27 NutOverlay: typeof import('@nutui/nutui-taro')['Overlay'] 26 NutOverlay: typeof import('@nutui/nutui-taro')['Overlay']
28 NutPicker: typeof import('@nutui/nutui-taro')['Picker'] 27 NutPicker: typeof import('@nutui/nutui-taro')['Picker']
29 NutPopup: typeof import('@nutui/nutui-taro')['Popup'] 28 NutPopup: typeof import('@nutui/nutui-taro')['Popup']
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
47 :enable-flex="false" 47 :enable-flex="false"
48 > 48 >
49 <!-- 空状态 --> 49 <!-- 空状态 -->
50 - <view v-if="goodCars.length === 0 && !loading" class="empty-state text-center py-20"> 50 + <view v-if="goodCars.length === 0 && !loading && !hasMore" class="empty-state text-center py-20">
51 <view class="empty-icon mb-4"> 51 <view class="empty-icon mb-4">
52 <Search2 size="60" color="#9ca3af" /> 52 <Search2 size="60" color="#9ca3af" />
53 </view> 53 </view>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
70 </view> 70 </view>
71 71
72 <!-- 空状态提示 --> 72 <!-- 空状态提示 -->
73 - <view v-if="filteredConversations.length === 0 && !loading" class="empty-state py-8 text-center"> 73 + <view v-if="filteredConversations.length === 0 && !loading && !hasMore" class="empty-state py-8 text-center">
74 <Message size="48" color="#9ca3af" class="mb-4" /> 74 <Message size="48" color="#9ca3af" class="mb-4" />
75 <text class="text-gray-500 text-base block mb-2">暂无消息</text> 75 <text class="text-gray-500 text-base block mb-2">暂无消息</text>
76 <text class="text-gray-400 text-sm">当前筛选条件下没有找到相关消息</text> 76 <text class="text-gray-400 text-sm">当前筛选条件下没有找到相关消息</text>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
87 </view> 87 </view>
88 88
89 <!-- 空状态提示 --> 89 <!-- 空状态提示 -->
90 - <view v-if="newCars.length === 0 && !loading" class="empty-state py-8 text-center"> 90 + <view v-if="newCars.length === 0 && !loading && !hasMore" class="empty-state py-8 text-center">
91 <Search2 size="48" color="#9ca3af" class="mb-4" /> 91 <Search2 size="48" color="#9ca3af" class="mb-4" />
92 <text class="text-gray-500 text-base block mb-2">暂无最新上架车辆</text> 92 <text class="text-gray-500 text-base block mb-2">暂无最新上架车辆</text>
93 <text class="text-gray-400 text-sm">试试调整筛选条件或稍后再来看看</text> 93 <text class="text-gray-400 text-sm">试试调整筛选条件或稍后再来看看</text>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
68 </view> 68 </view>
69 69
70 <!-- 空状态提示 --> 70 <!-- 空状态提示 -->
71 - <view v-if="scooters.length === 0 && !loading" class="empty-state py-8 text-center"> 71 + <view v-if="scooters.length === 0 && !loading && !hasMore" class="empty-state py-8 text-center">
72 <Search2 size="48" color="#9ca3af" class="mb-4" /> 72 <Search2 size="48" color="#9ca3af" class="mb-4" />
73 <text class="text-gray-500 text-base block mb-2">暂无相关车辆</text> 73 <text class="text-gray-500 text-base block mb-2">暂无相关车辆</text>
74 <text class="text-gray-400 text-sm">试试调整筛选条件或稍后再来看看</text> 74 <text class="text-gray-400 text-sm">试试调整筛选条件或稍后再来看看</text>
......