AdminDefaultDesktop.cshtml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>@Lottomat.Util.ConfigHelper.GetValue("SystemName").ToString() - 后台管理系统</title>
  7. <!--框架必需start-->
  8. <script src="~/Content/Scripts/jquery/jquery-1.10.2.min.js"></script>
  9. <link href="~/Content/styles/font-awesome.min.css" rel="stylesheet" />
  10. <script src="~/Content/scripts/utils/txwl-clientdata.js"></script>
  11. @System.Web.Optimization.Styles.Render("~/Content/styles/txwl-ui.css")
  12. @System.Web.Optimization.Scripts.Render("~/Content/scripts/utils/js")
  13. <!--框架必需end-->
  14. <style type="text/css">
  15. .table-content {
  16. width: 100%;
  17. border: 1px solid gainsboro;
  18. line-height: 2
  19. }
  20. .table-content thead tr {
  21. border-bottom: 1px solid gainsboro;
  22. }
  23. .table-content thead th {
  24. border-left: 1px solid gainsboro;
  25. font-size: 14px;
  26. text-align: center
  27. }
  28. .table-content tbody tr {
  29. border-bottom: 1px solid gainsboro;
  30. }
  31. .table-content tbody tr td {
  32. border-left: 1px solid gainsboro;
  33. text-align: center
  34. }
  35. .table-content tbody tr td a {
  36. color: red;
  37. }
  38. </style>
  39. <script>
  40. var contentPath = '@Url.Content("~")'.substr(0, '@Url.Content("~")'.length - 1);
  41. $(function () {
  42. InitialPage();
  43. LoadNotInvestigationData();
  44. LoadTodaysLotteryData();
  45. });
  46. //初始化
  47. function InitialPage() {
  48. $('#desktop').height($(window).height() - 22);
  49. $(window).resize(function (e) {
  50. window.setTimeout(function () {
  51. $('#desktop').height($(window).height() - 22);
  52. }, 200);
  53. e.stopPropagation();
  54. });
  55. }
  56. function LoadNotInvestigationData() {
  57. $.AjaxRequest({
  58. url: "/Home/GetNotInvestigationList",
  59. type: "GET",
  60. async: false,
  61. success: function (req) {
  62. if (req) {
  63. if (req.type == 1) {
  64. var html = '';
  65. var temp = [];
  66. $.each(authorizeMenuData, function (i, data) {
  67. $.each(req.resultdata, function (index, item) {
  68. if (data.FullName === item.Name) {
  69. item.Id = data.ModuleId;
  70. temp.push(item);
  71. }
  72. });
  73. });
  74. $.each(temp, function (index, item) {
  75. html += '<div style="line-height: 39px; border-bottom: 1px solid #ccc;">';
  76. html += '<a href="#" style="text-decoration: none;"><span style="color: red">[待复查]</span>&nbsp;&nbsp;&nbsp;' + item.Name + '第【' + item.Desc + '】期未复查</a>';
  77. html += '<label style="float: right;cursor: pointer" onclick=OpenNav("' + item.Id + '")>点我前往&nbsp;&nbsp;&nbsp;<i class="fa fa-angle-right"></i></label>';
  78. html += '</div>';
  79. });
  80. $('#portal-panel-content').html(html);
  81. }
  82. }
  83. }
  84. });
  85. }
  86. function LoadTodaysLotteryData() {
  87. $.AjaxRequest({
  88. url: "/Home/GetTodaysLottery",
  89. type: "GET",
  90. async : false,
  91. success: function (req) {
  92. if (req) {
  93. if (req.type == 1) {
  94. var html = '';
  95. var temp = [];
  96. var json = eval("(" + req.resultdata + ")");
  97. //console.log(json)
  98. //console.log(authorizeMenuData)
  99. $.each(authorizeMenuData, function (i, data) {
  100. $.each(json, function (index, item) {
  101. if (data.FullName === item.LotteryName) {
  102. item.Id = data.ModuleId;
  103. temp.push(item);
  104. }
  105. });
  106. });
  107. var res = $.orderBy(temp, ['OpenTime'], 'asc');
  108. $.each(res.results, function (index, item) {
  109. //html += '<div style="line-height: 39px; border-bottom: 1px solid #ccc;">';
  110. //html += '<a href="#" style="text-decoration: none;"><span style="color: red">[待复查]</span>&nbsp;&nbsp;&nbsp;' + item.Name + '第【' + item.Desc + '】期未复查</a>';
  111. //html += '<label style="float: right;cursor: pointer" onclick=OpenNav("' + item.Id + '")>点我前往&nbsp;&nbsp;&nbsp;<i class="fa fa-angle-right"></i></label>';
  112. //html += '</div>';
  113. html += '<tr>';
  114. html += '<td>' + item.LotteryName +'</td>';
  115. html += '<td>' + item.Term +'</td>';
  116. //html += '<td>否</td>';
  117. html += '<td>' + item.OpenTime +'</td>';
  118. html += '<td><a target="_blank" href=' + item.MainUrl +'>参考网站</a></td>';
  119. html += '<td><a href="#" data-name=' + item.LotteryName + ' data-key=' + item.EnumCode +' onclick=OpenNav("' + item.Id + '")>点我前往</a></td>';
  120. html += '</tr>';
  121. });
  122. $('#tbody-content').html(html);
  123. }
  124. }
  125. }
  126. });
  127. }
  128. //跳转到指定模块菜单
  129. function OpenNav(navid) {
  130. top.$("#nav").find('a#' + navid).trigger("click");
  131. }
  132. </script>
  133. </head>
  134. <body>
  135. <div class="border" id="desktop" style="margin: 10px 10px 0 10px; background: #fff; overflow: auto;">
  136. <div class="portal-panel">
  137. <div class="row" style="overflow: hidden; margin-bottom: 10px;">
  138. <div style="width: 50%; float: left;">
  139. <div class="portal-panel-title">
  140. <i class="fa fa-coffee"></i>&nbsp;&nbsp;待复查开奖号彩种
  141. </div>
  142. <div class="portal-panel-content" id="portal-panel-content" style="overflow: hidden; padding-top: 20px; padding-left: 30px; padding-right: 50px;">
  143. @*<div style="line-height: 39px; border-bottom: 1px solid #ccc;">
  144. <a href="#" style="text-decoration: none;"><span style="color: red">[待复查]</span>&nbsp;&nbsp;&nbsp;排列三[第2017326期]</a>
  145. <label style="float: right;cursor: pointer" onclick="OpenNav('0b3f721c3bb546028caf5e4d012aca3f')">点我前往&nbsp;&nbsp;&nbsp;<i class="fa fa-angle-right"></i></label>
  146. </div>*@
  147. </div>
  148. </div>
  149. <div style="width: 50%; float: left;">
  150. <div class="portal-panel-title">
  151. <i class="fa fa-bullhorn"></i>&nbsp;&nbsp;今日开奖彩种
  152. </div>
  153. <div class="portal-panel-content" style="overflow: hidden; padding-top: 20px; padding-left: 30px; padding-right: 50px;">
  154. @*<div style="line-height: 39px; border-bottom: 1px solid #ccc;">
  155. <a href="#" style="text-decoration: none;">[公告]&nbsp;&nbsp;&nbsp;服务器升级通知</a>
  156. <label style="float: right">2016-06-01</label>
  157. </div>*@
  158. <table class="table-content">
  159. <thead>
  160. <tr>
  161. <th>彩种</th>
  162. <th>期数</th>
  163. @*<th>是否加开奖号</th>*@
  164. <th>开奖时间</th>
  165. <th>参考网站</th>
  166. <th>操作</th>
  167. </tr>
  168. </thead>
  169. <tbody id="tbody-content">
  170. @*<tr>
  171. <td>福彩3D</td>
  172. <td>FC3D</td>
  173. <td>FC3D</td>
  174. <td>FC3D</td>
  175. <td>FC3D</td>
  176. <td><a href="#" data-name="福彩3D" data-key="FC3D" onclick="">点我前往</a></td>
  177. </tr>*@
  178. </tbody>
  179. </table>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </body>
  186. </html>