page-navbar.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view class="page-top">
  3. <!-- <image class="bg" src="@/static/home/sy_img_top.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(380rpx + var(--status-bar-height));
  31. margin-bottom: -120rpx;
  32. .bg {
  33. width: 750rpx;
  34. height: calc(380rpx + var(--status-bar-height));
  35. }
  36. ::v-deep.uv-navbar__content {
  37. height: 310rpx !important;
  38. box-sizing: border-box;
  39. padding-left: 24rpx;
  40. display: flex;
  41. justify-content: center;
  42. flex-direction: column;
  43. align-items: flex-start;
  44. box-sizing: border-box;
  45. padding-top: 20rpx;
  46. padding-bottom: 14rpx;
  47. .input-box {
  48. width: 88rpx;
  49. height: 56rpx;
  50. background-color: #1f1f1f;
  51. border-radius: 32rpx;
  52. margin-right: 5rpx;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. }
  57. .uvicon-arrow-left {
  58. display: none !important;
  59. }
  60. .left-top {
  61. display: flex;
  62. justify-content: flex-start;
  63. }
  64. .weather {
  65. font-size: 22rpx;
  66. }
  67. .search {
  68. margin-top: 20rpx;
  69. width: 490rpx;
  70. .uv-input {
  71. height: 72rpx;
  72. border: 6rpx solid #000;
  73. box-sizing: border-box;
  74. padding-left: 4rpx;
  75. box-sizing: border-box;
  76. .uni-input-placeholder {
  77. color: #999 !important;
  78. font-size: 24rpx;
  79. padding-left: 4rpx;
  80. }
  81. }
  82. }
  83. }
  84. }
  85. </style>