You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
2.1 KiB

  1. /*
  2. * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  3. * Copyright (c) 2013-2018 北京泉江科技有限公司
  4. * 创建人:陈彬彬
  5. * 日 期:2018.04.28
  6. * 描 述:桌面消息查看
  7. */
  8. var id = request('id');
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. $('.warpper').lrscroll();
  14. var item = top['dtlist' + id];
  15. if (!!item) {
  16. $("#F_FullHead").text(item.f_title);
  17. $("#F_CreateDate").text(item.f_createdate);
  18. $("#F_CreateUserName").text(item.f_createusername);
  19. $("#F_Category").text(item.f_category);
  20. $("#F_NewsContent").html($('<div></div>').html(item.f_content).text());
  21. } else {
  22. $.lrSetForm(top.$.rootUrl + '/LR_OAModule/Notice/GetEntity?keyValue=' + id, function (data) {
  23. $("#F_FullHead").text(data.F_FullHead);
  24. $("#F_CreateDate").text(data.F_CreateDate);
  25. $("#F_CreateUserName").text(data.F_CreateUserName);
  26. $("#F_Category").text(data.F_Category);
  27. $("#F_NewsContent").html($('<div></div>').html(data.F_NewsContent));
  28. });
  29. }
  30. //阅读
  31. learun.httpAsyncPost(top.$.rootUrl + "/LR_Desktop/LR_OA_NewsRead/NewsRead", { newsId: id }, function (res) {
  32. });
  33. //阅读者列表
  34. learun.httpAsyncGet(top.$.rootUrl + "/LR_Desktop/LR_OA_NewsRead/GetNewsReadList?newsId=" + id, function (res) {
  35. if (res.code == 200) {
  36. var html = '';
  37. for (var i = 0; i < res.data.rows.length; i++) {
  38. var item = res.data.rows[i];
  39. html += '<li><span class="listSec2sT">' + item.RUserName + '</span><span class="listSec2sTime">' + item.RTime + '</span></li>';
  40. }
  41. $('#readlist').html(html);
  42. }
  43. });
  44. }
  45. };
  46. page.init();
  47. }