diff --git a/App.vue b/App.vue
index 9e4a99b..1917fd8 100644
--- a/App.vue
+++ b/App.vue
@@ -137,6 +137,7 @@ export default {
}
// ========== 新增:登出时清空localStorage的订阅列表 ==========
uni.removeStorageSync('mqtt_subscribe_list')
+ uni.removeStorageSync('agri_list')
console.log('登出成功,MQTT已断开')
},
// token过期处理逻辑(核心)
diff --git a/pages/news/index.vue b/pages/news/index.vue
index 855a120..877f177 100644
--- a/pages/news/index.vue
+++ b/pages/news/index.vue
@@ -70,21 +70,20 @@
- {{ item.title }}
+
+ {{ item.title }}
+
+
+ --
+
+
{{ item.content }}
暂无更多{{item.title.substring(0,2)}}消息 ...
-
-
-
-
-
-
- --
-
-
-
+
+
+
@@ -435,31 +434,41 @@ export default {
.item-content {
flex: 1;
min-width: 0; /* 必须加,防止flex溢出 */
+ display: flex;
+ flex-direction: column;
.item-title {
font-size: 32rpx;
color: #333;
margin-bottom: 8rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ text:first-child {
+ flex-shrink: 0;
+ }
}
.item-desc {
font-size: 26rpx;
color: #999;
line-height: 1.4;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ view:first-child {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ flex: 1;
+ min-width: 0;
+ }
+ view:last-child {
+ flex-shrink: 0;
+ }
}
- }
-
- /* 右侧时间 + 角标 固定区域 */
- .item-right {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- flex-shrink: 0; /* 时间不被挤压 */
- margin-left: 20rpx;
.item-time {
font-size: 26rpx;
color: #999;
+ flex-shrink: 0;
}
}
}
diff --git a/pages/news/subpages/deviceCenter/index.vue b/pages/news/subpages/deviceCenter/index.vue
index b582bbb..db1e5c3 100644
--- a/pages/news/subpages/deviceCenter/index.vue
+++ b/pages/news/subpages/deviceCenter/index.vue
@@ -45,7 +45,7 @@