wy 1 年之前
父节点
当前提交
02b9037b67
共有 2 个文件被更改,包括 9 次插入5 次删除
  1. 6 3
      pages/power-changer/index.scss
  2. 3 2
      pages/power-changer/index.vue

+ 6 - 3
pages/power-changer/index.scss

@@ -299,9 +299,9 @@ $titColor:#192233;
 				.scroll_x{
 					height: 100%;
 				}				
-				.log-list:first-child{
-					color: #ED7735;
-				}
+				// .log-list:first-child{
+				// 	color: #ED7735;
+				// }
 				.log-list{
 					display: flex;
 					height: 36px;
@@ -321,6 +321,9 @@ $titColor:#192233;
 					.log-info{
 						flex: 1;
 					}
+					.logRed{
+						 color: #ED7735;
+					}
 				}
 			}
 		}

+ 3 - 2
pages/power-changer/index.vue

@@ -224,8 +224,8 @@
 				<view class="log_bottom">
 					<scroll-view scroll-y="true" class="scroll_x">
 						<view class="log-list" v-for="item in logList" :key="item.id">
-							<view class="log-times">{{item.createTime}}</view>
-							<view class="log-info">{{item.content}}</view>
+							<view class="log-times" :class="[item.remark=='error'?'logRed':'']">{{item.createTime}}</view>
+							<view class="log-info" :class="[item.remark=='error'?'logRed':'']">{{item.content}}</view>
 						</view>
 					</scroll-view>
 
@@ -1155,4 +1155,5 @@
 	.isshowactive{
 		color: rgba(153, 174, 197, 0.65) !important;
 	}
+	
 </style>