// var baseURL = "192.168.3.49:8081/" var baseURL = "https://custproj00011-2.ceydz.com/" function login() { var username = document.getElementById("dz_username").value var pwd = document.getElementById("dz_pwd").value $.ajax({ url: baseURL + "front/lzdj/login?username=" + username + "&pwd=" + pwd, method: "get", success: function(data) { console.log(data); if (data.code == 200) { window.location.href = "https://custproj00011-2.ceydz.com/manager/ext/projects/lzdj/index.html?token=" + data.content + "&username=" + username } else { alert('账号或者密码输入错误') } }, }); }