Przeglądaj źródła

移除多余console,压缩登录页图片

guohh 4 lat temu
rodzic
commit
612a51b927

BIN
2020/ca-demo/img/login-bg.png


+ 1 - 1
2020/ca-demo/js/login.js

@ -52,7 +52,7 @@ $(function () {
52 52
    ca.login(userName);
53 53
    setTimeout(function () {
54 54
      location.href = "main.html";
55
    }, 600);
55
    }, 1000);
56 56
  });
57 57
58 58
});

+ 0 - 5
2020/ca-demo/js/main.js

@ -17,7 +17,6 @@ $(function () {
17 17
    errorHandler: function (error, type) {
18 18
      console.log("日志发送失败", error, type);
19 19
      if (type == "sendFailed") {
20
        console.log("发送异常");
21 20
      } else if (type == "ca_demo_error") {
22 21
        alert("发送日志异常");
23 22
      }
@ -38,7 +37,6 @@ $(function () {
38 37
39 38
  // 展示发送的数据
40 39
  function showCaData() {
41
    console.log('展示发送数据');
42 40
    var caDataStr = sessionStorage.getItem("caData");
43 41
    var caData = [];
44 42
@ -60,7 +58,6 @@ $(function () {
60 58
    var tevent;
61 59
62 60
    $(caData).each(function (index, obj) {
63
      console.log(obj, index);
64 61
      tId = obj.data.eventId;
65 62
      tevent = eventInfo[tId];
66 63
@ -82,7 +79,6 @@ $(function () {
82 79
        ` + htmlStr;
83 80
    });
84 81
85
    console.log(htmlStr);
86 82
    $(".demo-data-list").html(htmlStr);
87 83
  }
88 84
@ -103,7 +99,6 @@ $(function () {
103 99
104 100
  // 自定义订购事件
105 101
  $(".demo-action-item-diy .demo-action-btn").click(function () {
106
    console.log('1');
107 102
    var diyJSONStr = $.trim($(".demo-action-diy-input").val());
108 103
    var diyJSON = {};
109 104
    try {