note-details.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <link rel="stylesheet" type="text/css" href="../../../css/common/mui.min.css" />
  10. <link rel="stylesheet" href="../../../css/common/common.css">
  11. <style type="text/css">
  12. html {
  13. background: #FFF
  14. }
  15. .color-word {
  16. margin-right: 10px
  17. }
  18. .note-box {
  19. padding: 10px;
  20. background: #FFF
  21. }
  22. .note-box>div {
  23. padding: 5px
  24. }
  25. div,
  26. span {
  27. font-size: 14px
  28. }
  29. .color-word{
  30. color: #999999;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <header id="header" class="mui-bar mui-bar-nav">
  36. <a class="mui-action-back mui-icon mui-icon-arrowleft">
  37. <span class="back">返回</span>
  38. </a>
  39. <h1 class="mui-title">记事本详情</h1>
  40. </header>
  41. <div class="mui-content">
  42. </div>
  43. <script src="../../../libs/mui.min.js"></script>
  44. <script type="text/javascript">
  45. window.onload = function() {
  46. mui.plusReady(function() {
  47. var self = plus.webview.currentWebview();
  48. var code = self.code;
  49. var str = plus.storage.getItem('user');
  50. var user = JSON.parse(str);
  51. var token = user.Data.Token;
  52. var postdata = {
  53. "": code //code
  54. }
  55. mui.ajax("http://www.bosshand.cn/api/Customer/GetNotepadModelById", {
  56. headers: {
  57. authorization: token
  58. },
  59. type: "post",
  60. data: postdata,
  61. success: function(data) {
  62. var data = data.Data;
  63. var html = '';
  64. html += '<div class="note-box">'
  65. html += '<div>'
  66. html += '<span class="color-word">标题</span>'
  67. html += '<span>' + data.Tilte + '</span>'
  68. html += '</div>'
  69. html += '<div>' + data.Content + '</div>'
  70. html += '</div>'
  71. mui('.mui-content')[0].innerHTML = html
  72. },
  73. error: function(xhr, status) {}
  74. });
  75. })
  76. }
  77. </script>
  78. </body>
  79. </html>