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
824 B

  1. var login_data = getStorJson("login_data");
  2. $(document).ready(function(){
  3. $("#user_name").text(login_data.username);
  4. $("#login_name").text(login_data.login_name);
  5. })
  6. function login_out(){
  7. $.ajax({
  8. url:'./zz-fx/control.php', //请求地址
  9. type: "post", //请求方式
  10. data:{
  11. type:"distribut_logout"
  12. },
  13. dataType: "json",
  14. success: function (data) {
  15. console.log(data);
  16. if(data.code == 0){
  17. window.location.href="login.html";
  18. }else if(data.code == -1){
  19. }
  20. },
  21. fail: function (date) {
  22. // 此处放失败后执行的代码
  23. }
  24. });
  25. }
  26. $("#password").click(function(){
  27. window.location.href="amend_password.html";
  28. })
  29. $("#my_code").click(function(){
  30. window.location.href="my_code.html";
  31. })