gy-app-shop/components/headerBg/headerBg.vue

34 lines
523 B
Vue

<style lang="scss" scoped>
.header-bg{
position: absolute;
left: 0;
top: 0;
z-index: -1;
width: 100%;
&-top{
width: 100%;
height: 140rpx;
background-color: $main-color;
}
&-bottom{
width: 100%;
height: 80rpx;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
background-color: $main-color;
}
}
</style>
<template>
<view class="header-bg">
<view class="header-bg-top"></view>
<view class="header-bg-bottom"></view>
</view>
</template>
<script>
</script>