index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <div class="layui-fluid">
  2. <div class="layui-row layui-col-space15">
  3. <div class="layui-col-md8">
  4. <div class="layui-row layui-col-space15">
  5. <div class="layui-col-md6">
  6. <div class="layui-card">
  7. <div class="layui-card-header">快捷方式</div>
  8. <div class="layui-card-body">
  9. <div class="layui-carousel layadmin-carousel layadmin-shortcut">
  10. <div carousel-item>
  11. <ul class="layui-row layui-col-space10">
  12. <li class="layui-col-xs3">
  13. <a lay-href="home/homepage1">
  14. <i class="layui-icon layui-icon-console"></i>
  15. <cite>主页一</cite>
  16. </a>
  17. </li>
  18. <li class="layui-col-xs3">
  19. <a lay-href="home/homepage2">
  20. <i class="layui-icon layui-icon-chart"></i>
  21. <cite>主页二</cite>
  22. </a>
  23. </li>
  24. <li class="layui-col-xs3">
  25. <a lay-href="component/layer/list">
  26. <i class="layui-icon layui-icon-template-1"></i>
  27. <cite>弹层</cite>
  28. </a>
  29. </li>
  30. <li class="layui-col-xs3">
  31. <a lay-href="/senior/im/">
  32. <i class="layui-icon layui-icon-chat"></i>
  33. <cite>聊天</cite>
  34. </a>
  35. </li>
  36. <li class="layui-col-xs3">
  37. <a lay-href="component/progress/index">
  38. <i class="layui-icon layui-icon-find-fill"></i>
  39. <cite>进度条</cite>
  40. </a>
  41. </li>
  42. <li class="layui-col-xs3">
  43. <a lay-href="app/workorder/list">
  44. <i class="layui-icon layui-icon-survey"></i>
  45. <cite>工单</cite>
  46. </a>
  47. </li>
  48. <li class="layui-col-xs3">
  49. <a lay-href="user/user/list">
  50. <i class="layui-icon layui-icon-user"></i>
  51. <cite>用户</cite>
  52. </a>
  53. </li>
  54. <li class="layui-col-xs3">
  55. <a lay-href="set/system/website">
  56. <i class="layui-icon layui-icon-set"></i>
  57. <cite>设置</cite>
  58. </a>
  59. </li>
  60. </ul>
  61. <ul class="layui-row layui-col-space10">
  62. <li class="layui-col-xs3">
  63. <a lay-href="set/user/info">
  64. <i class="layui-icon layui-icon-set"></i>
  65. <cite>我的资料</cite>
  66. </a>
  67. </li>
  68. <li class="layui-col-xs3">
  69. <a lay-href="set/user/info">
  70. <i class="layui-icon layui-icon-set"></i>
  71. <cite>我的资料</cite>
  72. </a>
  73. </li>
  74. <li class="layui-col-xs3">
  75. <a lay-href="set/user/info">
  76. <i class="layui-icon layui-icon-set"></i>
  77. <cite>我的资料</cite>
  78. </a>
  79. </li>
  80. <li class="layui-col-xs3">
  81. <a lay-href="set/user/info">
  82. <i class="layui-icon layui-icon-set"></i>
  83. <cite>我的资料</cite>
  84. </a>
  85. </li>
  86. <li class="layui-col-xs3">
  87. <a lay-href="set/user/info">
  88. <i class="layui-icon layui-icon-set"></i>
  89. <cite>我的资料</cite>
  90. </a>
  91. </li>
  92. <li class="layui-col-xs3">
  93. <a lay-href="set/user/info">
  94. <i class="layui-icon layui-icon-set"></i>
  95. <cite>我的资料</cite>
  96. </a>
  97. </li>
  98. <li class="layui-col-xs3">
  99. <a lay-href="set/user/info">
  100. <i class="layui-icon layui-icon-set"></i>
  101. <cite>我的资料</cite>
  102. </a>
  103. </li>
  104. <li class="layui-col-xs3">
  105. <a lay-href="set/user/info">
  106. <i class="layui-icon layui-icon-set"></i>
  107. <cite>我的资料</cite>
  108. </a>
  109. </li>
  110. </ul>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="layui-col-md6">
  117. <div class="layui-card">
  118. <div class="layui-card-header">待办事项</div>
  119. <div class="layui-card-body">
  120. <div class="layui-carousel layadmin-carousel layadmin-backlog">
  121. <div carousel-item>
  122. <ul class="layui-row layui-col-space10">
  123. <li class="layui-col-xs6">
  124. <a lay-href="app/content/comment" class="layadmin-backlog-body">
  125. <h3>待审评论</h3>
  126. <p><cite>66</cite></p>
  127. </a>
  128. </li>
  129. <li class="layui-col-xs6">
  130. <a lay-href="app/forum/list" class="layadmin-backlog-body">
  131. <h3>待审帖子</h3>
  132. <p><cite>12</cite></p>
  133. </a>
  134. </li>
  135. <li class="layui-col-xs6">
  136. <a lay-href="template/goodslist" class="layadmin-backlog-body">
  137. <h3>待审商品</h3>
  138. <p><cite>99</cite></p>
  139. </a>
  140. </li>
  141. <li class="layui-col-xs6">
  142. <a href="javascript:;" onclick="layer.tips('不跳转', this, {tips: 3});" class="layadmin-backlog-body">
  143. <h3>待发货</h3>
  144. <p><cite>20</cite></p>
  145. </a>
  146. </li>
  147. </ul>
  148. <ul class="layui-row layui-col-space10">
  149. <li class="layui-col-xs6">
  150. <a href="javascript:;" class="layadmin-backlog-body">
  151. <h3>待审友情链接</h3>
  152. <p><cite style="color: #FF5722;">5</cite></p>
  153. </a>
  154. </li>
  155. </ul>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="layui-col-md12">
  162. <div class="layui-card">
  163. <div class="layui-card-header">数据概览</div>
  164. <div class="layui-card-body">
  165. <div class="layui-carousel layadmin-carousel layadmin-dataview" data-anim="fade" lay-filter="LAY-index-dataview">
  166. <div carousel-item id="LAY-index-dataview">
  167. <div><i class="layui-icon layui-icon-loading1 layadmin-loading"></i></div>
  168. <div></div>
  169. <div></div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="layui-card">
  175. <div class="layui-tab layui-tab-brief layadmin-latestData">
  176. <ul class="layui-tab-title">
  177. <li class="layui-this">今日热搜</li>
  178. <li>今日热帖</li>
  179. </ul>
  180. <div class="layui-tab-content">
  181. <div class="layui-tab-item layui-show">
  182. <table id="LAY-index-topSearch"></table>
  183. </div>
  184. <div class="layui-tab-item">
  185. <table id="LAY-index-topCard"></table>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <div class="layui-col-md4">
  194. <div class="layui-card">
  195. <div class="layui-card-header">版本信息</div>
  196. <div class="layui-card-body layui-text">
  197. <table class="layui-table">
  198. <colgroup>
  199. <col width="100">
  200. <col>
  201. </colgroup>
  202. <tbody>
  203. <tr>
  204. <td>当前版本</td>
  205. <td>
  206. <script type="text/html" template>
  207. v{{ layui.admin.v }}
  208. <a href="http://fly.layui.com/docs/3/" target="_blank" style="padding-left: 15px;">更新日志</a>
  209. </script>
  210. </td>
  211. </tr>
  212. <tr>
  213. <td>基于框架</td>
  214. <td>
  215. <script type="text/html" template>
  216. layui-v{{ layui.v }}
  217. </script>
  218. </td>
  219. </tr>
  220. <tr>
  221. <td>主要特色</td>
  222. <td>单页面 / 响应式 / 清爽 / 极简</td>
  223. </tr>
  224. <tr>
  225. <td>获取渠道</td>
  226. <td style="padding-bottom: 0;">
  227. <div class="layui-btn-container">
  228. <a href="http://www.layui.com/admin/" target="_blank" class="layui-btn layui-btn-danger">获取授权</a>
  229. <a href="http://fly.layui.com/download/layuiAdmin/" target="_blank" class="layui-btn">立即下载</a>
  230. </div>
  231. </td>
  232. </tr>
  233. </tbody>
  234. </table>
  235. </div>
  236. </div>
  237. <div class="layui-card">
  238. <div class="layui-card-header">效果报告</div>
  239. <div class="layui-card-body layadmin-takerates">
  240. <div class="layui-progress" lay-showPercent="yes">
  241. <h3>转化率(日同比 28% <span class="layui-edge layui-edge-top" lay-tips="增长" lay-offset="-15"></span>)</h3>
  242. <div class="layui-progress-bar" lay-percent="65%"></div>
  243. </div>
  244. <div class="layui-progress" lay-showPercent="yes">
  245. <h3>签到率(日同比 11% <span class="layui-edge layui-edge-bottom" lay-tips="下降" lay-offset="-15"></span>)</h3>
  246. <div class="layui-progress-bar" lay-percent="32%"></div>
  247. </div>
  248. </div>
  249. </div>
  250. <div class="layui-card">
  251. <div class="layui-card-header">实时监控</div>
  252. <div class="layui-card-body layadmin-takerates">
  253. <div class="layui-progress" lay-showPercent="yes">
  254. <h3>CPU使用率</h3>
  255. <div class="layui-progress-bar" lay-percent="58%"></div>
  256. </div>
  257. <div class="layui-progress" lay-showPercent="yes">
  258. <h3>内存占用率</h3>
  259. <div class="layui-progress-bar layui-bg-red" lay-percent="90%"></div>
  260. </div>
  261. </div>
  262. </div>
  263. <div class="layui-card">
  264. <div class="layui-card-header">产品动态</div>
  265. <div class="layui-card-body">
  266. <div class="layui-carousel layadmin-carousel layadmin-news" data-autoplay="true" data-anim="fade" lay-filter="news">
  267. <div carousel-item>
  268. <div><a href="http://fly.layui.com/docs/2/" target="_blank" class="layui-bg-red">layuiAdmin 快速上手文档</a></div>
  269. <div><a href="http://fly.layui.com/vipclub/list/layuiadmin/" target="_blank" class="layui-bg-green">layuiAdmin 会员讨论专区</a></div>
  270. <div><a href="http://www.layui.com/admin/#get" target="_blank" class="layui-bg-blue">获得 layui 官方后台模板系统</a></div>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. <div class="layui-card">
  276. <div class="layui-card-header">
  277. 作者心语
  278. <i class="layui-icon layui-icon-tips" lay-tips="要支持的噢" lay-offset="5"></i>
  279. </div>
  280. <div class="layui-card-body layui-text layadmin-text">
  281. <p>一直以来,layui 秉承无偿开源的初心,虔诚致力于服务各层次前后端 Web 开发者,在商业横飞的当今时代,这一信念从未动摇。即便身单力薄,仍然重拾决心,埋头造轮,以尽可能地填补产品本身的缺口。</p>
  282. <p>在过去的一段的时间,我一直在寻求持久之道,已维持你眼前所见的一切。而 layuiAdmin 是我们尝试解决的手段之一。我相信真正有爱于 layui 生态的你,定然不会错过这一拥抱吧。</p>
  283. <p>子曰:君子不用防,小人防不住。请务必通过官网正规渠道,获得 <a href="http://www.layui.com/admin/" target="_blank">layuiAdmin</a>!</p>
  284. <p>—— 贤心(<a href="http://www.layui.com/" target="_blank">layui.com</a>)</p>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <script>
  291. //加载 controller 目录下的对应模块
  292. /*
  293. 小贴士:
  294. 这里 console 模块对应 的 console.js 并不会重复加载,
  295. 然而该页面的视图则是重新插入到容器,那如何保证能重新来控制视图?有两种方式:
  296. 1): 借助 layui.factory 方法获取 console 模块的工厂(回调函数)给 layui.use
  297. 2): 直接在 layui.use 方法的回调中书写业务代码,即:
  298. layui.use('console', function(){
  299. //同 console.js 中的 layui.define 回调中的代码
  300. });
  301. 这里我们采用的是方式1。其它很多视图中采用的其实都是方式2,因为更简单些,也减少了一个请求数。
  302. */
  303. layui.use('console', layui.factory('console'));
  304. </script>