Sin descripción

repositorydetail.html 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <!--标准mui.css-->
  10. <link rel="stylesheet" href="../css/mui.min.css">
  11. <!--App自定义的css-->
  12. <!--<link rel="stylesheet" type="text/css" href="css/app.css" />-->
  13. <style>
  14. .mui-table h4,
  15. .mui-table h5,
  16. .mui-table .mui-h5,
  17. .mui-table .mui-h6,
  18. .mui-table p {
  19. margin-top: 0;
  20. }
  21. .mui-table h4 {
  22. line-height: 21px;
  23. font-weight: 500;
  24. }
  25. .mui-table .oa-icon {
  26. position: absolute;
  27. right: 0;
  28. bottom: 0;
  29. }
  30. .mui-table .oa-icon-star-filled {
  31. color: #f14e41;
  32. }
  33. .mui-bar-nav {
  34. background: #cd0000 !important;
  35. color: #fff;
  36. }
  37. .mui-bar-nav h1 {
  38. color: #fff;
  39. }
  40. .Messge {
  41. font-size: 12px;
  42. margin-top: 10px;
  43. margin-bottom: 10px;
  44. color: #8f8f94;
  45. text-align: center;
  46. }
  47. .Title {
  48. text-align: center;
  49. }
  50. .mui-content {
  51. background-color: #fff;
  52. }
  53. body {
  54. background: #FFF;
  55. }
  56. .Content{
  57. width: 100%;
  58. word-break:break-all;
  59. }
  60. </style>
  61. </head>
  62. <body>
  63. <header class="mui-bar mui-bar-nav" style="padding-right: 15px;height: 50px;color: #fff;">
  64. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  65. <h1 class="mui-center mui-title">知识库详情</h1>
  66. </header>
  67. <div class="mui-content">
  68. <div class="" style="padding: 15px 10px;">
  69. <h4 class="Title"></h4>
  70. <div class="Messge">
  71. <span class="FBR" style="margin-right: 10px;"></span><span class="Times"></span>
  72. </div>
  73. <p class="Content" style=" text-indent:28px"></p>
  74. </div>
  75. </div>
  76. </body>
  77. <script src="../js/mui.min.js"></script>
  78. <script src="../js/zepto.js"></script>
  79. <script src="../js/huayi.config.js"></script>
  80. <script>
  81. mui.init();
  82. mui.plusReady(function() {
  83. var wv = plus.webview.currentWebview();
  84. var token = wv.token;
  85. var id = wv.name;
  86. mui.ajax(huayi.config.callcenter_url + 'Knowledge/GetInfo', {
  87. data: {
  88. infoid: id,
  89. token: token,
  90. },
  91. dataType: 'json', //服务器返回json格式数据
  92. type: 'get', //HTTP请求类型
  93. timeout: 10000, //超时时间设置为10秒;
  94. headers: {
  95. 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
  96. },
  97. success: function(data) {
  98. var time = data.data.F_CreateOn.substring(0, data.data.F_CreateOn.indexOf(' '));
  99. $(".Title").text(data.data.F_Title);
  100. $(".Content").html(data.data.F_Content);
  101. $(".Times").text('创建日期:' + time);
  102. },
  103. error: function(xhr, type, errorThrown) {
  104. //异常处理;
  105. }
  106. })
  107. });
  108. </script>
  109. </html>