1234567891011121314151617181920212223 |
- (function () {
- var page = {
- isScroll: true,
- init: function ($page,$param) {
- var array = JSON.parse( $param );
- var html = '';
- userinfo = learun.storage.get('userinfo');
- learun.httpget(config.webapi + "/?s=api/get_gonggao_detail&plate="+userinfo.baseinfo.plate+"&addtime="+array.addtime, {}, function(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">公告</span></div>\
- <div class="lr-list-item">报警信息<span class="lr-badge" style="background-color:white">'+res.data.Comment+'</span></div>';
- $page.find('.detail').html(html);
- }else{
- learun.layer.warning(res.message, function () { }, '提示', '关闭');
- }
- })
- }
- };
- return page;
- })();
|