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

37 lines
1.5KB

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