12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- </div>
- <div id="adminfooter">
- <a href="<{$web_cfg.domain}>/admin/">后台管理平台</a> 1.0.0 版本
- </div>
- <{*<script type="text/javascript" src="<{$web_cfg.cdn}>/public/static/js/jquery.pin.js"></script>*}>
- <script>
- <{*$(".activity_right").pin();*}>
- KISSY.use('node, cookie, tabs, dom, event', function (S, Node, Cookie, Tabs, DOM, Event) {
- var $ = S.all;
- var X_ADMINMENU = 'X_ADMINMENU';
- //初始化导航
- if (Cookie.get(X_ADMINMENU) == 'sticky') {
- $("body").addClass('sticky-menu');
- $("#adminmenu .pack-up").all('i').replaceClass('fa-arrow-circle-o-left', 'fa-arrow-circle-o-right');
- } else {
- $("body").removeClass('sticky-menu');
- $("#adminmenu .pack-up").all('i').replaceClass('fa-arrow-circle-o-right', 'fa-arrow-circle-o-left');
- }
-
- //初始化默认内容高度
- $("#admincontent").css({'min-height':$(document).height() - 150});
-
- //左侧导航
- $("#adminmenu .pack-up").on('click', function () {
- if ($("body").hasClass('sticky-menu')) {
- $("body").removeClass('sticky-menu');
- $(this).all('i').replaceClass('fa-arrow-circle-o-right', 'fa-arrow-circle-o-left');
- Cookie.remove(X_ADMINMENU);
- } else {
- $("body").addClass('sticky-menu');
- $(this).all('i').replaceClass('fa-arrow-circle-o-left', 'fa-arrow-circle-o-right');
- Cookie.set(X_ADMINMENU, 'sticky');
- }
- });
-
- $("#adminmenu .menu-list").on('mouseenter', function () {
- $(this).addClass('opensub');
- }).on('mouseleave', function () {
- $(this).removeClass('opensub');
- });
-
- //bar 下拉菜单
- $(".barshow").on('mouseenter', function () {
- $(this).all('.showbox').show();
- $(this).addClass('catch');
- });
- $(".barshow").on('mouseleave', function () {
- $(this).all('.showbox').hide();
- $(this).removeClass('catch');
- });
- // 刷新
- $("#adminrefresh").on('click', function () {
- $(this).all('i').addClass("fa-spin");
- });
-
- //退出登录提示
- $("#back_logout").on('click', function () {
- if (!confirm("确认退出登录?")) {
- return false;
- }
- });
- //二维码tabs
- $(".ks-activity-right-tabs").each(function (n) {
- new Tabs({
- changeType: 'mouse',
- srcNode: n
- }).render();
- });
-
- //二维码 选中活动地址
- $(".activity_right_url_input").on('click', function () {
- var t = DOM.get($(this));
- DOM.prop(t, "selectionStart", 0);
- DOM.prop(t, "selectionEnd", t.value.length);
- });
- });
- </script>
- </body>
- </html>
|