chore: logo、登录页图片固定

tea/dev
wx-jincw 4 weeks ago
parent 67185bbab6
commit 27bea82578

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

@ -24,13 +24,13 @@
data() { data() {
return { return {
title: 'Vue Element Admin', title: 'Vue Element Admin',
logo: '', logo: require('@/assets/imgs/logo.png'),
logoSmall: '' logoSmall: require('@/assets/imgs/logo.png')
} }
}, },
mounted() { mounted() {
this.getLogo() // this.getLogo()
this.getSquareLogo() // this.getSquareLogo()
}, },
methods: { methods: {
getLogo() { getLogo() {

@ -118,9 +118,11 @@ export default {
} }
return { return {
captchatImg: '', captchatImg: '',
swiperList: [], swiperList: [{
loginLogo: '', pic: require('@/assets/imgs/banner.jpeg')
backgroundImages: '', }],
loginLogo: require('@/assets/imgs/logo.png'),
backgroundImages: require('@/assets/imgs/bg.jpg'),
backgroundImageMo: require("@/assets/imgs/bg.jpg"), backgroundImageMo: require("@/assets/imgs/bg.jpg"),
fullWidth: document.body.clientWidth, fullWidth: document.body.clientWidth,
swiperOption: { swiperOption: {
@ -268,12 +270,12 @@ export default {
} }
}, },
getInfo() { getInfo() {
getLoginPicApi().then(res => { // getLoginPicApi().then(res => {
this.swiperList = res.banner // this.swiperList = res.banner
this.loginLogo = res.loginLogo // this.loginLogo = res.loginLogo
this.backgroundImages = res.backgroundImage // this.backgroundImages = res.backgroundImage
// Cookies.set('MerInfo', JSON.stringify(data)) // // Cookies.set('MerInfo', JSON.stringify(data))
}) // })
}, },
checkCapslock(e) { checkCapslock(e) {
const { key } = e const { key } = e
@ -495,11 +497,13 @@ export default {
.swiperPross, .swiperPic, .swiperPic img { .swiperPross, .swiperPic, .swiperPic img {
width: 286px; width: 286px;
height: 100%; height: 100%;
padding: 16px 0;
} }
.swiperPic img { .swiperPic img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover;
} }
.container { .container {

@ -1,9 +1,9 @@
<template> <template>
<div class="lottie-bg"> <div class="lottie-bg">
<div>222进来了22222</div> <div>~</div>
<div id="lottie"> <div id="lottie">
<img <img
src="@/assets/imgs/live-logo.gif" src="@/assets/imgs/logo.png"
rel="preload" rel="preload"
style="width: 100%;" style="width: 100%;"
/> />

Loading…
Cancel
Save