future hai 1 ano
pai
achega
ebb7b2b116
Modificáronse 1 ficheiros con 12 adicións e 3 borrados
  1. 12 3
      xs-app/pages/bookshelf/bookshelf-bookList.vue

+ 12 - 3
xs-app/pages/bookshelf/bookshelf-bookList.vue

@@ -39,7 +39,9 @@
 				删除({{edit_book_list.length}})
 			</view>
 		</view>
-		<z-paging-empty-view v-if="book_list.length<=0" ></z-paging-empty-view>
+		<view class="empty" v-if="book_list.length<=0" :style="{height:empty_height}">
+			<z-paging-empty-view :emptyViewFixed="false" ></z-paging-empty-view>
+		</view>
 	</view>
 </template>
 
@@ -51,15 +53,16 @@
     import { config } from '../../config/config';
 		
 	let window_width = ref(uni.getSystemInfoSync().windowWidth + 'px')	
+	let empty_height = ref((uni.getSystemInfoSync().windowHeight-80-30)+'px')
 	let is_edit = ref(false)	
 	let edit_book_list = ref<Array<number>>([])
 	let is_selected_all = ref(false)
 	let bottom_tools_real_height = ref(98)
 	let bottom_tools_all_height = ref(0)
-	let cur_button_status = ref(config.book_action_status.QUAN_BU) //100:全部 0:连载 1:完结
+	let cur_button_status = ref(config.book_action_status.QUAN_BU)
 	
 	bottom_tools_all_height.value = bottom_tools_real_height.value + uni.getSystemInfoSync().safeAreaInsets.bottom
-		
+				
 	const props = defineProps({
 		book_list: Array<book_item_data>,
 	})
@@ -241,5 +244,11 @@
 				background-color: paleturquoise;
 			}
 		}
+		
+		.empty{
+			display: flex; 
+			justify-content: center; 
+			align-items: center;
+		}
 	}
 </style>