123456789101112131415161718192021222324252627282930313233 |
- (function () {
- var page = {
- isScroll: true,
- init: function ($page,$param) {
- var array = JSON.parse( $param );
- var html = '';
- userinfo = renlian.storage.get('userinfo');
- renlian.httpget(config.webapi + "/?s=api/get_baojing_detail&plate="+userinfo.baseinfo.plate+"&id="+array.ID, {}, function(res) {
- 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.AddTime+'</span></div>\
- <div class="lr-list-item">报警类型<span class="lr-badge" style="background-color:white">'+res.data.Title+'</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 () { }, '提示', '关闭');
- }
- })
- }
- };
- return page;
- })();
|