ff6e9a94 by 杨建斌

init

1 parent f9bd996c
Showing 1 changed file with 22 additions and 15 deletions
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="renderer" content="webkit|ie-comp|ie-stand"> 5 <meta name="renderer" content="webkit|ie-comp|ie-stand">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 6 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7 <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> 7 <meta name="viewport"
8 <meta http-equiv="Cache-Control" content="no-siteapp" /> 8 content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
9 <link rel="stylesheet" type="text/css" href="/resource/static/h-ui/css/H-ui.min.css" /> 9 <meta http-equiv="Cache-Control" content="no-siteapp"/>
10 <link rel="stylesheet" type="text/css" href="/resource/static/h-ui/css/H-ui.min.css"/>
10 11
11 <?php 12 <?php
12 if (isset($styles) && is_array($styles)) { 13 if (isset($styles) && is_array($styles)) {
13 foreach($styles as $style) { 14 foreach ($styles as $style) {
14 echo '<link rel="stylesheet" type="text/css" href="'.$style.'" />'; 15 echo '<link rel="stylesheet" type="text/css" href="' . $style . '" />';
15 } 16 }
16 } 17 }
17 ?> 18 ?>
...@@ -26,10 +27,6 @@ ...@@ -26,10 +27,6 @@
26 <body> 27 <body>
27 28
28 29
29
30
31
32
33 <script type="text/javascript" src="/resource/lib/jquery/1.9.1/jquery.min.js"></script> 30 <script type="text/javascript" src="/resource/lib/jquery/1.9.1/jquery.min.js"></script>
34 31
35 <script> 32 <script>
...@@ -92,7 +89,7 @@ ...@@ -92,7 +89,7 @@
92 layer.msg(msg); 89 layer.msg(msg);
93 } 90 }
94 91
95 $.extend( true, $.fn.dataTable.defaults, { 92 $.extend(true, $.fn.dataTable.defaults, {
96 sDom: '<"top">rt<"bottom"ip><"clear">', 93 sDom: '<"top">rt<"bottom"ip><"clear">',
97 aaSorting: [[1, "desc"]], 94 aaSorting: [[1, "desc"]],
98 serverSide: true, 95 serverSide: true,
...@@ -106,7 +103,7 @@ ...@@ -106,7 +103,7 @@
106 var ret = {}, json = jQuery.parseJSON(json); 103 var ret = {}, json = jQuery.parseJSON(json);
107 ret.data = json.data || []; 104 ret.data = json.data || [];
108 var draw = getUrlParam('draw'); 105 var draw = getUrlParam('draw');
109 if(draw) { 106 if (draw) {
110 ret.draw = draw; 107 ret.draw = draw;
111 } 108 }
112 ret.recordsTotal = 0; 109 ret.recordsTotal = 0;
...@@ -150,11 +147,21 @@ ...@@ -150,11 +147,21 @@
150 </script> 147 </script>
151 148
152 <script> 149 <script>
153 150 $.ajax({
154 $.get('http://test.smalldebit.club/api/Debit/GetUserDebitRecords?userId=7',function (d) { 151 type: "GET",
155 console.log(d) 152 url: "http://test.smalldebit.club/api/Debit/GetUserDebitRecords?userId=7",
153 beforeSend: function (request) {
154 request.setRequestHeader("token", "926EE68FEF39A83EBFAAC7AF632A4737");
155 },
156 success: function (result) {
157 console.log(result);
158 }
156 }); 159 });
157 160
161 // $.get('http://test.smalldebit.club/api/Debit/GetUserDebitRecords?userId=7', function (d) {
162 // console.log(d)
163 // });
164
158 </script> 165 </script>
159 166
160 </body> 167 </body>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!