阜外心血管项目前端

noticeDetail.js 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. mui.init({})
  2. var id = helper.request.queryString("id");
  3. var state = helper.request.queryString("type");
  4. var openid = helper.cookies.get("openid");
  5. var turn=1;
  6. if (!openid) {
  7. var openid = helper.request.queryString("openid");
  8. }
  9. function formatterDealDetail(val, row) {
  10. return str;
  11. }
  12. $(function () {
  13. Ajax();
  14. //返回列表
  15. $('.return').on('tap', function() {
  16. window.location.href = "noticeList.html?Itype=" + state+'&turn='+turn;
  17. });
  18. })
  19. function Ajax() {
  20. $.ajax({
  21. url: huayi.config.callcenter_url + '/WxLogin/GetNoticeInfo',
  22. data: {
  23. noticeid: id, //工单编号
  24. openid: openid, //微信openid,
  25. //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE',
  26. },
  27. async: true,
  28. dataType: 'json',
  29. type: 'get', //HTTP请求类型
  30. success: function(data) {
  31. if(data.state.toLowerCase() == "success") {
  32. var result = data.data
  33. $("#workOrderID").text(result.WorkOrderID); //工单编号
  34. $("#noticeTime").text(result.F_CreateOn); //公告时间
  35. $("#noticeTit").text(result.F_Title); //公告标题
  36. $("#noticeCon").text(result.F_Content); //公告内容
  37. }
  38. },
  39. error: function(xhr, type, errorThrown) {
  40. //异常处理;
  41. }
  42. })
  43. }