|
- var login_data = getStorJson("login_data");
- $(document).ready(function(){
- $("#user_name").text(login_data.username);
- $("#login_name").text(login_data.login_name);
- })
-
-
- function login_out(){
- $.ajax({
- url:'./zz-fx/control.php', //请求地址
- type: "post", //请求方式
- data:{
- type:"distribut_logout"
- },
- dataType: "json",
- success: function (data) {
- console.log(data);
- if(data.code == 0){
-
- window.location.href="login.html";
-
- }else if(data.code == -1){
-
-
- }
- },
- fail: function (date) {
-
- // 此处放失败后执行的代码
- }
- });
- }
- $("#password").click(function(){
- window.location.href="amend_password.html";
- })
- $("#my_code").click(function(){
- window.location.href="my_code.html";
- })
|