国内流行的内容管理系统(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.

39 lines
1.6KB

  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. <div class="scroll-top">
  9. <button onclick="gotop()" id="btnScrollTop" title="返回顶部">
  10. <i class="fa fa-chevron-up"></i>
  11. </button>
  12. </div>
  13. <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.bundle.min.js"></script>
  14. <script src="{dede:global.cfg_cmsurl/}/static/web/js/style.js"></script>
  15. {dede:statistics/}
  16. <script>
  17. //校验是否登录
  18. function CheckLogin() {
  19. $.get("{dede:global.cfg_cmsurl/}/user/ajax_loginsta.php?format=json",function(data) {
  20. let result = JSON.parse(data);
  21. if (result.code === 200) {
  22. $("#_login").html(`
  23. 欢迎,${result.data.username}
  24. <a class="ml-2" href="{dede:global.cfg_cmsurl/}/user/">[会员中心]</a>
  25. <a class="ml-2" href="{dede:global.cfg_cmsurl/}/user/index_do.php?fmdo=login&dopost=exit">[退出]</a>
  26. `);
  27. $("#iptUsername").val(result.data.username);
  28. $("#iptUsername").attr("disabled", "disabled");
  29. $(".areaValidate").hide();
  30. } else {
  31. $(".areaValidate").show();
  32. }
  33. });
  34. }
  35. //页面加载触发
  36. $(document).ready(function () {
  37. CheckLogin();
  38. });
  39. </script>