12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>记事本详情</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="stylesheet" type="text/css" href="../../../css/common/mui.min.css" />
- <link rel="stylesheet" href="../../../css/common/common.css">
- <style type="text/css">
- html {
- background: #FFF
- }
-
- .color-word {
- margin-right: 10px
- }
-
- .note-box {
- padding: 10px;
- background: #FFF
- }
-
- .note-box>div {
- padding: 5px
- }
-
- div,
- span {
- font-size: 14px
- }
- .color-word{
- color: #999999;
- }
- </style>
- </head>
- <body>
- <header id="header" class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-arrowleft">
- <span class="back">返回</span>
- </a>
- <h1 class="mui-title">记事本详情</h1>
- </header>
- <div class="mui-content">
-
- </div>
- <script src="../../../libs/mui.min.js"></script>
- <script type="text/javascript">
- window.onload = function() {
- mui.plusReady(function() {
- var self = plus.webview.currentWebview();
- var code = self.code;
- var str = plus.storage.getItem('user');
- var user = JSON.parse(str);
- var token = user.Data.Token;
- var postdata = {
- "": code //code
- }
- mui.ajax("http://www.bosshand.cn/api/Customer/GetNotepadModelById", {
- headers: {
- authorization: token
- },
- type: "post",
- data: postdata,
- success: function(data) {
- var data = data.Data;
- var html = '';
- html += '<div class="note-box">'
- html += '<div>'
- html += '<span class="color-word">标题</span>'
- html += '<span>' + data.Tilte + '</span>'
- html += '</div>'
- html += '<div>' + data.Content + '</div>'
- html += '</div>'
- mui('.mui-content')[0].innerHTML = html
- },
- error: function(xhr, status) {}
- });
- })
- }
- </script>
- </body>
- </html>
|