暂时提交

feasure
lld 2026-02-20 15:31:39 +08:00
parent b532cc9a93
commit 098156f558
1 changed files with 15 additions and 3 deletions

View File

@ -38,9 +38,11 @@
lower-threshold="50" lower-threshold="50"
scroll-with-animation scroll-with-animation
> >
<view <tn-swipe-action>
<tn-swipe-action-item
v-for="(item, index) in listData" v-for="(item, index) in listData"
:key="index" :key="index"
:options="options"
:class="['list-item', { 'list-item-disabled': item.online === '离线' }]" :class="['list-item', { 'list-item-disabled': item.online === '离线' }]"
@tap="item.online !== '离线' && onItemTap(item)" @tap="item.online !== '离线' && onItemTap(item)"
> >
@ -60,7 +62,7 @@
<text class="tag tag-temp3">温度3: {{ item.temp3 }}</text> <text class="tag tag-temp3">温度3: {{ item.temp3 }}</text>
<text class="tag tag-temp4">温度4: {{ item.temp4 }}</text> <text class="tag tag-temp4">温度4: {{ item.temp4 }}</text>
</view> </view>
</view> </tn-swipe-action-item>
<view v-if="isLoading" class="loading-more"> <view v-if="isLoading" class="loading-more">
<uni-icons type="spinner-cycle" size="20" color="#999"></uni-icons> <uni-icons type="spinner-cycle" size="20" color="#999"></uni-icons>
@ -72,6 +74,7 @@
<image :src="imageSrc" :style="'width:'+80+'rpx;height:'+80+'rpx'"></image> <image :src="imageSrc" :style="'width:'+80+'rpx;height:'+80+'rpx'"></image>
<text class="text">点击添加大棚</text> <text class="text">点击添加大棚</text>
</view> </view>
</tn-swipe-action>
</scroll-view> </scroll-view>
</uni-section> </uni-section>
<!-- <uni-fab ref="fab" :pattern="pattern" :content="content" :horizontal="horizontal" :vertical="vertical"--> <!-- <uni-fab ref="fab" :pattern="pattern" :content="content" :horizontal="horizontal" :vertical="vertical"-->
@ -107,6 +110,15 @@ export default {
noMore: false, noMore: false,
total: 20, // total: 20, //
value: 0, value: 0,
options: [
{
text: '删除',
icon: 'delete',
style: {
backgroundColor: '#E83A30'
}
}
],
range: [{ range: [{
"value": 0, "value": 0,
"text": "大棚名称", "text": "大棚名称",
@ -422,7 +434,7 @@ page {
display: flex; display: flex;
gap: 8rpx; gap: 8rpx;
flex-wrap: wrap; /* 新增:标签过多时换行,避免溢出 */ flex-wrap: wrap; /* 新增:标签过多时换行,避免溢出 */
margin: 14rpx 0; padding: 14rpx 0;
} }
.tag { .tag {