fm:除了官方的一些说设置方法外 还可以用css 而且用了css 莫名其妙用什么方法都改变不了 最终要的就是z-index和fixed 那有人说了 渐变色咋办
那就在这个页面最外层view 设置动态背景色
.onReachBottomBg{
position: fixed;
z-index: -1;
// background-color: @titleBackground;
background-color: #f2f2f2;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
:style="{background: `linear-gradient(90deg,${onReachBottomBg[0].item} 0%,${onReachBottomBg[1].item} 100%)`}"
onReachBottomBg: [{
item: '#FFFFFF'
},
{
item: '#000000'
}
],