From 6017f46b762663b9393cdae8422e0de1ed3db218 Mon Sep 17 00:00:00 2001
From: guifei zhu <guifeizhu@guifeideiMac.local>
Date: 星期三, 27 十一月 2024 13:30:06 +0800
Subject: [PATCH] 添加mqtt数据接口
---
pages/tabBar/device.vue | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/pages/tabBar/device.vue b/pages/tabBar/device.vue
index faff43c..90fe27e 100644
--- a/pages/tabBar/device.vue
+++ b/pages/tabBar/device.vue
@@ -19,7 +19,7 @@
</view>
<view>
<text
- class="text-gray margin-right-lg">{{new Date().toLocaleDateString().replace(/\//g, '-')}}</text>
+ class="text-gray margin-right-lg">{{curDate}}</text>
</view>
</view>
@@ -72,7 +72,9 @@
<view class="title text-cut">{{$lget(item,'name')}}</view>
<view class="flex title text-green text-sm">
<u-tag v-if="item.online" size="mini" text="鍦ㄧ嚎" type="success" plain plainFill></u-tag>
- <u-tag v-else class="" size="mini" text="鍋滄満" type="error" plain plainFill></u-tag>
+ <u-tag v-else size="mini" text="绂荤嚎" type="warning" plain plainFill></u-tag>
+ <u-tag v-if="item.online" class="margin-left-sm" size="mini" text="鍦ㄧ嚎" type="success" plain plainFill></u-tag>
+ <u-tag v-else class="margin-left-sm" size="mini" text="鍋滄満" type="error" plain plainFill></u-tag>
</view>
</view>
<view class="right" style="min-width: 240rpx;">
@@ -128,6 +130,7 @@
loading: true,
// v-model缁戝畾鐨勮繖涓彉閲忎笉瑕佸湪鍒嗛〉璇锋眰缁撴潫涓嚜宸辫祴鍊硷紒锛侊紒
dataList: [],
+ curDate:uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
}
},
methods: {
--
Gitblit v1.9.3