修改app部分样式异常

This commit is contained in:
Zy
2026-05-22 14:39:25 +08:00
parent f3f499dd4b
commit d0e1f8ea02
15 changed files with 245 additions and 147 deletions

View File

@@ -8,9 +8,13 @@
:tabslist="statusTabs"
@update="switchStatus"
></TabsComponents>
<view class="detail_list flex flex-1 overflow-auto">
<scroll-view scroll-y="true" lower-threshold="160" @scrolltolower="scrolltolower">
<scroll-view
style="height: 100%; flex: 1"
scroll-y="true"
lower-threshold="160"
@scrolltolower="scrolltolower"
>
<view
class="item"
v-for="(item, index) in list"
@@ -108,10 +112,6 @@ function init() {
if (isLoading.value || !hasMore.value) return
// 2. 开启锁
isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getComplainList(querySearch.value)
.then(res => {
list.value = [...list.value, ...res.rows]
@@ -119,9 +119,14 @@ function init() {
// 判断是否还有更多
hasMore.value = list.value.length < total.value
})
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => {
isLoading.value = false
uni.hideLoading()
})
}
@@ -161,7 +166,10 @@ function scrolltolower() {
flex: 1;
background: #f9f9f9;
padding: 20rpx 40rpx;
justify-content: flex-start;
align-items: stretch;
.detail_list {
margin-top: 20rpx;
.item {
background: #ffffff;
border-radius: 16rpx;

View File

@@ -122,17 +122,18 @@ function getlist() {
return
}
isLoading.value = true
uni.showLoading({
title: '加载中',
mask: true
})
getSystemUsers_employee('complainUser', queryParmas.value.keyword)
.then(res => {
searchlist.value = res.data
})
.catch(() => {
uni.showToast({
icon: 'error',
title: '网络异常'
})
})
.finally(() => {
isLoading.value = false
uni.hideLoading()
})
}
onShow(() => {