Skip to content

Commit d40b0ed

Browse files
committed
增加bg,适配mobile
1 parent 73a4545 commit d40b0ed

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

public/images/background13.jpg

1.53 MB
Loading

public/images/background14.png

565 KB
Loading

public/images/background15.png

4.97 MB
Loading

public/images/background16.png

1.34 MB
Loading

src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ onBeforeUnmount(() => {
165165
display: flex;
166166
justify-content: center;
167167
align-items: center;
168-
top: auto;
169-
bottom: clamp(96px, 16vh, 140px);
168+
top: auto;
169+
bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(36px, 12vh, 88px));
170170
left: 50%;
171171
margin-left: -28px;
172172
width: 56px;
@@ -219,7 +219,7 @@ onBeforeUnmount(() => {
219219
}
220220
}
221221
.menu {
222-
bottom: clamp(88px, 18vh, 132px);
222+
bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(40px, 14vh, 96px));
223223
margin-left: -28px;
224224
}
225225
.f-ter {

src/components/Background.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const emit = defineEmits(["loadComplete"]);
3434
3535
// 壁纸随机数
3636
// 请依据文件夹内的图片个数修改 Math.random() 后面的第一个数字
37-
const bgRandom = Math.floor(Math.random() * 9 + 1);
37+
const bgRandom = Math.floor(Math.random() * 16 + 1);
3838
3939
// 更换壁纸链接
4040
const changeBg = (type) => {

src/components/Footer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const policeIconSrc = computed(
213213
214214
@media (max-width: 720px) {
215215
#footer {
216-
bottom: 24px;
216+
bottom: 16px;
217217
padding: 0 20px;
218218
}
219219
@@ -234,7 +234,7 @@ const policeIconSrc = computed(
234234
235235
@media (max-width: 480px) {
236236
#footer {
237-
bottom: 20px;
237+
bottom: 12px;
238238
padding: 0 16px;
239239
}
240240

0 commit comments

Comments
 (0)