%%FB^FBA^FBA9D6BA%%bottom.html.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php /* Smarty version 2.6.17, created on 2018-05-26 11:47:12
  2. compiled from ./admin/bottom.html */ ?>
  3. </div>
  4. <div id="adminfooter">
  5. <a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  6. /admin/">后台管理平台</a> 1.0.0 版本
  7. </div>
  8. <script>
  9. KISSY.use('node, cookie, tabs, dom, event', function (S, Node, Cookie, Tabs, DOM, Event) {
  10. var $ = S.all;
  11. var X_ADMINMENU = 'X_ADMINMENU';
  12. //初始化导航
  13. if (Cookie.get(X_ADMINMENU) == 'sticky') {
  14. $("body").addClass('sticky-menu');
  15. $("#adminmenu .pack-up").all('i').replaceClass('fa-arrow-circle-o-left', 'fa-arrow-circle-o-right');
  16. } else {
  17. $("body").removeClass('sticky-menu');
  18. $("#adminmenu .pack-up").all('i').replaceClass('fa-arrow-circle-o-right', 'fa-arrow-circle-o-left');
  19. }
  20. //初始化默认内容高度
  21. $("#admincontent").css({'min-height':$(document).height() - 150});
  22. //左侧导航
  23. $("#adminmenu .pack-up").on('click', function () {
  24. if ($("body").hasClass('sticky-menu')) {
  25. $("body").removeClass('sticky-menu');
  26. $(this).all('i').replaceClass('fa-arrow-circle-o-right', 'fa-arrow-circle-o-left');
  27. Cookie.remove(X_ADMINMENU);
  28. } else {
  29. $("body").addClass('sticky-menu');
  30. $(this).all('i').replaceClass('fa-arrow-circle-o-left', 'fa-arrow-circle-o-right');
  31. Cookie.set(X_ADMINMENU, 'sticky');
  32. }
  33. });
  34. $("#adminmenu .menu-list").on('mouseenter', function () {
  35. $(this).addClass('opensub');
  36. }).on('mouseleave', function () {
  37. $(this).removeClass('opensub');
  38. });
  39. //bar 下拉菜单
  40. $(".barshow").on('mouseenter', function () {
  41. $(this).all('.showbox').show();
  42. $(this).addClass('catch');
  43. });
  44. $(".barshow").on('mouseleave', function () {
  45. $(this).all('.showbox').hide();
  46. $(this).removeClass('catch');
  47. });
  48. // 刷新
  49. $("#adminrefresh").on('click', function () {
  50. $(this).all('i').addClass("fa-spin");
  51. });
  52. //退出登录提示
  53. $("#back_logout").on('click', function () {
  54. if (!confirm("确认退出登录?")) {
  55. return false;
  56. }
  57. });
  58. //二维码tabs
  59. $(".ks-activity-right-tabs").each(function (n) {
  60. new Tabs({
  61. changeType: 'mouse',
  62. srcNode: n
  63. }).render();
  64. });
  65. //二维码 选中活动地址
  66. $(".activity_right_url_input").on('click', function () {
  67. var t = DOM.get($(this));
  68. DOM.prop(t, "selectionStart", 0);
  69. DOM.prop(t, "selectionEnd", t.value.length);
  70. });
  71. });
  72. </script>
  73. </body>
  74. </html>