Skip to content

Commit d736501

Browse files
author
bajins
committed
update
1 parent ada56fa commit d736501

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

static/css/common.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
@media screen and (min-width: 58em) {
1818
/* 弹窗的样式 */
1919
div[times][type="page"] {
20-
width: 60vw !important;
20+
width: 70vw !important;
2121
max-height: 95vh !important;
2222
}
2323
}
2424

2525
@media screen and (min-width: 75em) {
2626
/* 弹窗的样式 */
2727
div[times][type="page"] {
28-
width: 50vw !important;
28+
width: 60vw !important;
2929
max-height: 95vh !important;
3030
}
3131
}
@@ -39,7 +39,7 @@
3939

4040
/* 弹窗的样式 */
4141
div[times][type="page"] {
42-
width: 93vw !important;
42+
width: 90vw !important;
4343
max-height: 95vh !important;
4444
}
4545
}

static/js/index.js

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import http from "./utils/http.js";
1414
import array from "./utils/array.js";
1515
import string from "./utils/string.js";
1616

17-
let bsAreaWidth = "";
18-
let keyAreaWidth = "";
19-
let nsdAreaWidth = "";
2017

2118

2219
/**
@@ -32,28 +29,12 @@ $(function () {
3229
}
3330
})
3431
window.onload = function () {
35-
area();
32+
3633
}
3734
window.onresize = function () {
38-
area();
39-
}
40-
})
4135

42-
function area() {
43-
if (window.innerWidth <= 419) {
44-
bsAreaWidth = "95%";
45-
keyAreaWidth = "80%";
46-
nsdAreaWidth = "80%";
47-
} else if (window.innerWidth <= 768) {
48-
bsAreaWidth = "80%";
49-
keyAreaWidth = "50%";
50-
nsdAreaWidth = "50%";
51-
} else {
52-
bsAreaWidth = "60%";
53-
keyAreaWidth = "40%";
54-
nsdAreaWidth = "50%";
5536
}
56-
}
37+
})
5738

5839

5940
// ================================== 获取Netsarang激活key ===================================
@@ -176,7 +157,7 @@ window.getKey = function getKey() {
176157
layer.open({
177158
// 在默认状态下,layer是宽高都自适应的,但当你只想定义宽度时,你可以area: '500px',高度仍然是自适应的。
178159
// 当你宽高都要定义时,你可以area: ['500px', '300px']
179-
//area: [keyAreaWidth],
160+
//area: [keyAreaWidthWidth],
180161
type: 1,
181162
icon: 1,
182163
// 样式类名,目前layer内置的skin有:layui-layer-lan、layui-layer-molv

0 commit comments

Comments
 (0)