Commit b5a09725 by 李嘉林

背景优化

parent 9073a2e8
......@@ -60,7 +60,6 @@ export default {
},
methods: {
setHomeBgImg({ backgroundImage, imgRgb }) {
console.log('imgRgb->', imgRgb)
// this.bacImage = backgroundImage;
if (this.pageCode != 1) return;
this.bacImage = "";
......@@ -78,14 +77,16 @@ export default {
position: absolute;
top: 0;
z-index: -1;
.gradient{
.gradient {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0) 10%, rgb(255, 255, 255) 40%);
background: linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(255, 255, 255, 1) 80%);
}
transition: background-color .5s;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment