1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| window.onresize = function() {
| document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
| };
| window.onresize();
|
| function getQueryString(name) {
| var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
| var r = window.location.search.substr(1).match(reg);
| if (r != null) return unescape(r[2]);
| return null;
| }
|
| function toast(msg) {
| layer.open({
| type: 1,
| shade: false,
| content: msg,
| time: 2,
| style: "padding:5px 10px; background:rgb(0,0,0,0.05);border-radius:10px;"
| });
| }
|
| var lodingIndex = null;
|
| function showLoading() {
| lodingIndex = layer.open({
| type: 2,
| shade: true,
| });
| }
|
| function closeLoading() {
| if (lodingIndex != null)
| layer.close(lodingIndex)
| }
|
|