管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-09-29 99a30a26c6f594e4b0a0df0ec9c29c5239b69c1f
1
已修改1个文件
23 ■■■■ 文件已修改
src/main/resources/templates/login.html 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/login.html
@@ -249,22 +249,21 @@
      return true;
    }
    var isBusy = fase;
    window.isBusy = false;
    function sysLogin() {
      if (isBusy || !sysValidate()) {
        return;
      }
      isBusy = true;
      var username = $.trim($("#username").val());
      var password = $("#password").val();
      var service = getQueryStr("service");
      debugger
      var data = {
        "uid": username,
        "pwd": password,
        "bak": "http://www.baidu.com"
        "pwd": password
      };
      $.ajax({
@@ -274,9 +273,23 @@
        dataType: "json", // html、json、jsonp、script、text
        contentType: "application/json", // "application/json", "application/x-www-form-urlencoded",
        success: function (rs) {
          alert(rs);
          isBusy = false;
          if (rs && rs.code == 200) {
            debugger
            var service = getQueryStr("service");
            if (service) {
              service += (service.indexOf("?") > -1 ? "&" : "?") + "token=" + rs.result.token;
              location.href = service;
            }
            return;
          }
          createCode();
          var msg = rs && rs.msg ? rs.msg : "登录失败!";
          $("#eMsg").html(msg);
        },
        error: function (e) {
          isBusy = false;
          console.error(e);
          alert("登录出错,请联系管理员!");
        }