国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7KB

  1. <footer class="bg-success">
  2. <div class="copyright py-5">
  3. <p class="text-center">
  4. {dede:global.cfg_powerby/} {dede:global.cfg_beian/} Powered by <a href="https://www.dedebiz.com" title="DedeBIZ内容管理系统-国内流行的内容管理系统多端全媒体解决方案" target="_blank">DedeBIZ{dede:global.cfg_version/}</a>
  5. </p>
  6. </div>
  7. </footer>
  8. <!-- /footer -->
  9. <div class="scroll-top">
  10. <button onclick="gotop()" id="btnScrollTop" title="返回顶部">
  11. <i class="fa fa-chevron-up"></i>
  12. </button>
  13. </div>
  14. <!-- /.scroll-top -->
  15. <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.bundle.min.js"></script>
  16. <script src="{dede:global.cfg_cmsurl/}/static/web/js/style.js"></script>
  17. {dede:statistics/}
  18. <script>
  19. //校验是否登录
  20. function CheckLogin() {
  21. $.get("{dede:global.cfg_cmsurl/}/user/ajax_loginsta.php?format=json",function(data) {
  22. let result = JSON.parse(data);
  23. if (result.code === 200) {
  24. $("#_login").html(`
  25. 欢迎,${result.data.username}
  26. <a class="ml-2" href="{dede:global.cfg_cmsurl/}/user/">[会员中心]</a>
  27. <a class="ml-2" href="{dede:global.cfg_cmsurl/}/user/index_do.php?fmdo=login&dopost=exit">[退出]</a>
  28. `);
  29. $("#iptUsername").val(result.data.username);
  30. $("#iptUsername").attr("disabled", "disabled");
  31. $(".areaValidate").hide();
  32. } else {
  33. $(".areaValidate").show();
  34. }
  35. });
  36. }
  37. //页面加载触发
  38. $(document).ready(function () {
  39. CheckLogin();
  40. });
  41. </script>