细节优化

This commit is contained in:
fengerli
2025-09-25 15:07:40 +08:00
parent 67cfda12aa
commit 511caa60d1

View File

@ -24,7 +24,7 @@
<view class="Sendmessage" @click="handleSend">发送信息</view> <view class="Sendmessage" @click="handleSend">发送信息</view>
</view> </view>
<mescroll-uni class="device-list" @init="mescrollInit" @down="downCallback" @up="upCallback" :up="upOption" <mescroll-uni class="device-list" @init="mescrollInit" @down="downCallback" @up="upCallback" :up="upOption"
:down="downOption" :fixed="false" :style="{ height: `calc(100vh - ${navBarHeight + 180}rpx)` }"> :down="downOption" :fixed="false">
<view v-if="deviceList.length > 0"> <view v-if="deviceList.length > 0">
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<block v-for="(item, index) in deviceList" :key="index" :ref="'swipeItem_' + index"> <block v-for="(item, index) in deviceList" :key="index" :ref="'swipeItem_' + index">
@ -210,8 +210,7 @@
upOption: { upOption: {
auto: false, auto: false,
noMoreSize: 1, noMoreSize: 1,
offset: 50, offset: 80,
isLock: false,
empty: { empty: {
tip: '暂无相关数据' tip: '暂无相关数据'
} }
@ -220,7 +219,7 @@
page: 1, // 当前页码 page: 1, // 当前页码
size: 10, // 每页条数 size: 10, // 每页条数
total: 0, // 总数据量 total: 0, // 总数据量
loadedCount: 0, // 关键:记录已加载的总条数 loadedCount: 0,
loading: false, loading: false,
finished: false, finished: false,
deviceId: '', deviceId: '',