6/16,同步

This commit is contained in:
Zy
2026-06-16 14:11:17 +08:00
parent 3a91b14fce
commit 7c5497d229
13 changed files with 230 additions and 188 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="page_padding">
<view class="detailsbox flex flex-col overflow-hidden">
<view class="detailsbox">
<!-- 状态筛选标签 -->
<TabsComponents
:showBottomLine="false"
@@ -8,9 +8,9 @@
:tabslist="statusTabs"
@update="switchStatus"
></TabsComponents>
<view class="detail_list flex flex-1 overflow-auto">
<view class="detail_list">
<scroll-view
style="height: 100%; flex: 1"
style="flex: 1"
scroll-y="true"
lower-threshold="160"
v-if="list.length > 0"
@@ -100,9 +100,7 @@ const switchStatus = value => {
list.value = []
init()
}
//
const total = ref(0) //
const total = ref(0) // 总量
const isLoading = ref(false) // 加载锁
const hasMore = ref(true) // 是否还有更多数据
const list = ref([])
@@ -153,7 +151,7 @@ function handleComplaint(id) {
}
function scrolltolower() {
// 必须加这两个判断!
console.log('触发')
if (isLoading.value || !hasMore.value) {
return
}
@@ -167,13 +165,18 @@ function scrolltolower() {
background: #f9f9f9;
}
.detailsbox {
height: 100%;
flex: 1;
background: #f9f9f9;
padding: 20rpx 40rpx;
justify-content: flex-start;
align-items: stretch;
display: flex;
flex-direction: column;
overflow: hidden;
.detail_list {
margin-top: 20rpx;
display: flex;
flex: 1;
overflow: hidden;
.item {
background: #ffffff;
border-radius: 16rpx;