在pages.json中设置背景颜色
{
"path": "pages/DistributeData/DistributeData",
"style": {
"navigationBarTitleText": "投放数据",
"navigationBarBackgroundColor": "#2277FF"
}
}
<template>
<view class="container">
<!-- 投放数据统计 -->
<view
style="width: 100vw;height: 180px; z-index: -999;position: absolute;background: linear-gradient(180deg,#2277ff, rgba(34,119,255,0.00));">
</view>
</view>
</template>