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