|
@@ -32,9 +32,9 @@
|
|
|
|
|
|
//var baojing_info = '';
|
|
|
userinfo = learun.storage.get('userinfo');
|
|
|
- learun.http.get(config.webapi + "/?s=api/get_baojing_info&plate="+userinfo.baseinfo.plate, {}, function(res) {
|
|
|
- if(res.success == true){
|
|
|
- $.each(res.data, function (_index, _item) {
|
|
|
+ learun.httpget(config.webapi + "/?s=api/get_baojing_info&plate="+userinfo.baseinfo.plate, {}, function(res) {
|
|
|
+ if(res){
|
|
|
+ $.each(res, function (_index, _item) {
|
|
|
msg_html += '\
|
|
|
<div class="lr-list">\
|
|
|
<div class="lr-list-item lr-list-item-multi" style="line-height: 25px;">\
|
|
@@ -49,7 +49,7 @@
|
|
|
}
|
|
|
$page.find('#gaojinginfo').html(msg_html);
|
|
|
$('#gaojingdetail').on('tap', function () {
|
|
|
- learun.nav.go({ path: 'alarmdetail', title: '告警详情', type: 'right' });
|
|
|
+ learun.nav.go({ path: 'alarmdetail', title: '告警详情', type: 'right', param:'{"addtime":'+addtime+'}'});
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -69,9 +69,9 @@
|
|
|
<div class="f-scroll" id="gonggaoinfo" style="transform: translate3d(0px, 0px, 0px) translateZ(0px);">';
|
|
|
//var baojing_info = '{"0":{"data":"1111","msg":"公告","time":"2/28"},"1":{"data":"2222","msg":"公告","time":"2/29"}}';
|
|
|
userinfo = learun.storage.get('userinfo');
|
|
|
- learun.http.get(config.webapi + "/?s=api/get_gonggao_info&plate="+userinfo.baseinfo.plate, {}, function(res) {
|
|
|
- if(res.success == true){
|
|
|
- $.each(res.data, function (_index, _item) {
|
|
|
+ learun.httpget(config.webapi + "/?s=api/get_gonggao_info&plate="+userinfo.baseinfo.plate, {}, function(res) {
|
|
|
+ if(res){
|
|
|
+ $.each(res, function (_index, _item) {
|
|
|
msg_html += '\
|
|
|
<div class="lr-list">\
|
|
|
<div class="lr-list-item lr-list-item-multi" style="line-height: 25px;">\
|