Sfoglia il codice sorgente

官网管理端上传

gzb
wangzhonglu 1 anno fa
parent
commit
5e05a76da3
7 ha cambiato i file con 53 aggiunte e 0 eliminazioni
  1. 0
    0
      css/comm.css
  2. 0
    0
      css/index.css
  3. BIN
      favicon.ico
  4. 16
    0
      index.html
  5. 1
    0
      js/index.js
  6. 5
    0
      librarys/jquery@1.12.4/jquery.min.js
  7. 31
    0
      utils/index.js

+ 0
- 0
css/comm.css Vedi File


+ 0
- 0
css/index.css Vedi File


BIN
favicon.ico Vedi File


+ 16
- 0
index.html Vedi File

@@ -0,0 +1,16 @@
1
+<!DOCTYPE html>
2
+<html lang="zh-cn">
3
+  <head>
4
+    <meta charset="UTF-8" />
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <title>河南星火燎原软件科技有限公司</title>
8
+    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
9
+    <link rel="stylesheet" href="./css/comm.css" />
10
+    <link rel="stylesheet" href="./css/index.css" />
11
+  </head>
12
+  <body>
13
+    <script src="./librarys/jquery@1.12.4/jquery.min.js"></script>
14
+    <script src="./js/index.js"></script>
15
+  </body>
16
+</html>

+ 1
- 0
js/index.js Vedi File

@@ -0,0 +1 @@
1
+$(function () {});

+ 5
- 0
librarys/jquery@1.12.4/jquery.min.js
File diff soppresso perché troppo grande
Vedi File


+ 31
- 0
utils/index.js Vedi File

@@ -0,0 +1,31 @@
1
+jQuery.extend({
2
+  baseUrl: "//xhwebapitest.xhkjedu.com/",
3
+  showImageUrl: "//schoolstatictest.xhkjedu.com/static/",
4
+  //毫秒时间转换为yyyy-MM-dd
5
+  msToDateString: function (ms) {
6
+    let date = new Date(ms);
7
+    let year = date.getFullYear();
8
+    let month = date.getMonth() + 1;
9
+    let day = date.getDate();
10
+    if (month < 10) {
11
+      month = "0" + month;
12
+    }
13
+    if (day < 10) {
14
+      day = "0" + day;
15
+    }
16
+    return year + "-" + month + "-" + day;
17
+  },
18
+  // 读取url参数
19
+  getQueryVariable: function(variable) {
20
+    let query = window.location.search.substring(1);
21
+    query = decodeURI(query);
22
+    let vars = query.split("&");
23
+    for (let i = 0; i < vars.length; i++) {
24
+      let pair = vars[i].split("=");
25
+      if (pair[0] === variable) {
26
+        return pair[1];
27
+      }
28
+    }
29
+    return false;
30
+  }
31
+});

Loading…
Annulla
Salva