alarmdetail.js 976 B

1234567891011121314151617181920212223242526
  1. (function () {
  2. var page = {
  3. isScroll: true,
  4. init: function ($page,$param) {
  5. var array = JSON.parse( $param );
  6. console.log(array.addtime);
  7. var html = '';
  8. userinfo = learun.storage.get('userinfo');
  9. learun.http.get(config.webapi + "/?s=api/get_gonggao_info&plate="+userinfo.baseinfo.plate+"&addtime="+$param.addtime, {}, function(res) {
  10. if(res.success == true){
  11. $.each(res.data, function (_index, _item) {
  12. html += '<div class="lr-list-item">'+_item.AddTime+'</div>\
  13. <div class="lr-list-item">'+_item.AddTime+'</div>\
  14. <div class="lr-list-item">'+_item.AddTime+'</div>\
  15. <div class="lr-list-item">'+_item.AddTime+'</div>\
  16. <div class="lr-list-item">'+_item.AddTime+'</div>\
  17. <div class="lr-list-item">'+_item.AddTime+'</div>\
  18. <div class="lr-list-item">'+_item.AddTime+'</div>';
  19. });
  20. $page.find('.detail').html(html);
  21. }
  22. })
  23. }
  24. };
  25. return page;
  26. })();