推广小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
879 B

2 months ago
  1. <template>
  2. <view>
  3. <view class="head-box"></view>
  4. <uv-navbar autoBack title="签到列表" leftIconColor="#fff" :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content">
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default{
  11. components:{
  12. },
  13. data() {
  14. return {
  15. bgColor:'transparent',
  16. }
  17. },
  18. onPageScroll(e) {
  19. if(e.scrollTop > 50) {
  20. this.bgColor = '#49070c'
  21. }else{
  22. this.bgColor = 'transparent'
  23. }
  24. },
  25. methods:{
  26. }
  27. }
  28. </script>
  29. <style lang="scss">
  30. page {
  31. background-color: #060504;
  32. }
  33. </style>
  34. <style lang="scss" scoped>
  35. .head-box {
  36. background: url('@/static/image/nav-bg.png') no-repeat;
  37. background-size: 100% 100%;
  38. width: 100%;
  39. height: 534rpx;
  40. position: absolute;
  41. }
  42. .content {
  43. padding: 0 30rpx;
  44. padding-top: calc(var(--status-bar-height) + 100rpx);
  45. }
  46. </style>