page-navbar.vue 706 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="page-top">
  3. <image class="bg" src="@/static/icon/icon-1.png"></image>
  4. <uv-navbar bgColor="transparent" placeholder>
  5. <template #left>
  6. <slot name="navLeft"></slot>
  7. </template>
  8. <template #center>
  9. <slot name="navCenter"></slot>
  10. </template>
  11. <template #right>
  12. <slot name="navRight"></slot>
  13. </template>
  14. </uv-navbar>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: "page-navbar",
  20. data() {
  21. return {
  22. };
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. .page-top {
  28. position: relative;
  29. width: 750rpx;
  30. height: calc(100rpx + var(--status-bar-height));
  31. .bg {
  32. width: 750rpx;
  33. height: calc(100rpx + var(--status-bar-height));
  34. }
  35. }
  36. </style>