This commit is contained in:
zhouyanli
2026-07-04 15:52:06 +08:00
4 changed files with 157 additions and 153 deletions

View File

@@ -1,10 +1,11 @@
{ {
"dependencies": { "dependencies": {
"clipboard": "^2.0.11", "clipboard": "^2.0.11",
"dayjs": "^1.11.21" "dayjs": "^1.11.21",
"uview-plus": "^3.8.55"
}, },
"devDependencies": { "devDependencies": {
"sass": "^1.101.0", "sass": "^1.63.2",
"sass-loader": "^17.0.0" "sass-loader": "^17.0.0"
} }
} }

View File

@@ -13,7 +13,7 @@
style="flex: 1" style="flex: 1"
scroll-y="true" scroll-y="true"
lower-threshold="160" lower-threshold="160"
v-if="list.length > 0" :scroll-top="scrollTop"
@scrolltolower="scrolltolower" @scrolltolower="scrolltolower"
> >
<view <view
@@ -53,7 +53,7 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<view class="nodata" v-else> <view class="nodata" v-if="list.length <= 0">
<span>暂无数据</span> <span>暂无数据</span>
</view> </view>
</view> </view>
@@ -62,7 +62,7 @@
</template> </template>
<script setup> <script setup>
import { ref } from 'vue' import { nextTick, ref } from 'vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import TabsComponents from '@/components/tabs/tabs.vue' import TabsComponents from '@/components/tabs/tabs.vue'
import { getComplainList } from '@/api/complain.js' import { getComplainList } from '@/api/complain.js'
@@ -96,7 +96,6 @@ const switchStatus = value => {
querySearch.value.pageSize = 10 querySearch.value.pageSize = 10
hasMore.value = true hasMore.value = true
isLoading.value = false isLoading.value = false
scrollTop.value = 0
list.value = [] list.value = []
init() init()
} }
@@ -133,6 +132,7 @@ function init() {
} }
onShow(() => { onShow(() => {
scrollTop.value = 0
resetList() resetList()
}) })
function resetList() { function resetList() {
@@ -162,6 +162,7 @@ function scrolltolower() {
<style scoped lang="scss"> <style scoped lang="scss">
.page_padding { .page_padding {
background: #f9f9f9; background: #f9f9f9;
overflow: hidden;
} }
.detailsbox { .detailsbox {
height: 100%; height: 100%;
@@ -171,6 +172,7 @@ function scrolltolower() {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
box-sizing: border-box;
.detail_list { .detail_list {
margin-top: 20rpx; margin-top: 20rpx;
display: flex; display: flex;

View File

@@ -58,8 +58,9 @@
<text>{{ ite.inspectorName }}</text> <text>{{ ite.inspectorName }}</text>
</view> </view>
</view> </view>
<div class=""></div>
</scroll-view> </scroll-view>
<view class="nodata" v-else> <view class="nodata" v-if="list.length > 0">
<text>暂无数据</text> <text>暂无数据</text>
</view> </view>
</view> </view>