Browse Source

change the style of the detail of gaojinginfo's content

git 5 years ago
parent
commit
bf0cb5b92f
1 changed files with 11 additions and 2 deletions
  1. 11 2
      pages/alarmdetail/alarmdetail.js

+ 11 - 2
pages/alarmdetail/alarmdetail.js

@@ -9,10 +9,19 @@
 				console.log(res);
 				if(res.success == true){
 				html += '<div class="lr-list-item">车牌号<span class="lr-badge" style="background-color:white">'+res.data.LicensePlate+'</span></div>\
-				<div class="lr-list-item">电子标签<span class="lr-badge" style="background-color:white">'+res.data.DeviceNumber+'</span></div>\
+				<div class="lr-list-item">电子标签<span class="lr-badge" style="background-color:white">'+ (res.data.DeviceNumber || "无标签") +'</span></div>\
 				<div class="lr-list-item">报警时间<span class="lr-badge" style="background-color:white">'+res.data.AddTime+'</span></div>\
 				<div class="lr-list-item">报警类型<span class="lr-badge" style="background-color:white">'+res.data.Title+'</span></div>\
-				<div class="lr-list-item">报警信息<span class="lr-badge" style="background-color:white">'+res.data.Comment+'</span></div>';
+				<div class="lr-card-content">\
+				<div class="lr-card-content-inner">\
+					'+res.data.Comment+'\
+				</div>\
+			</div>\
+				';
+				
+
+
+				
 				$page.find('.detail').html(html);
 				}else{
 					renlian.layer.warning("详情信息出错", function () { }, '提示', '关闭');