t-i-navbar.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="status_bar">
  5. <!-- 这里是状态栏 -->
  6. </view>
  7. <view class="navbar">
  8. <view class="left">
  9. <image src="./icon/ningdongyunying.png" mode=""></image>
  10. <uni-icons type="arrowdown" color="#fff"></uni-icons>
  11. </view>
  12. <view class="search">
  13. <view class="box">
  14. <view class="left">
  15. <view class="icon">
  16. <image src="./icon/search.png" mode=""></image>
  17. </view>
  18. <view class="text">搜索</view>
  19. </view>
  20. <view class="scan">
  21. <image src="./icon/saoma.png" mode=""></image>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="right">
  26. <view class="icon">
  27. <image src="./icon/day.png" mode=""></image>
  28. </view>
  29. <view class="num">21℃</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="status_bar"></view>
  34. <view style="height: 88rpx;"></view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. name: "t-i-navbar",
  40. data() {
  41. return {
  42. };
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .content{
  48. position: fixed;
  49. top: 0;
  50. left: 0;
  51. z-index: 999;
  52. width: 750rpx;
  53. background-image: url(./icon/bg_img.jpg);
  54. background-size: 750rpx 334rpx;
  55. background-repeat: no-repeat;
  56. }
  57. .navbar{
  58. box-sizing: border-box;
  59. padding: 10rpx 25rpx;
  60. display: flex;
  61. align-items: center;
  62. justify-content: space-between;
  63. height: 88rpx;
  64. .left{
  65. display: flex;
  66. align-items: center;
  67. width: 170rpx;
  68. image{
  69. width: 165rpx;
  70. height: 48rpx;
  71. margin-right: 10rpx;
  72. }
  73. }
  74. .search{
  75. width: 370rpx;
  76. .box{
  77. display: flex;
  78. justify-content: space-between;
  79. align-items: center;
  80. height: 68rpx;
  81. background-color: rgba(255,255,255,.4);
  82. border-radius: 50rpx;
  83. box-sizing: border-box;
  84. padding: 0 20rpx;
  85. .left{
  86. display: flex;
  87. .icon{
  88. image{
  89. width: 21rpx;
  90. height: 21rpx;
  91. }
  92. }
  93. .text{
  94. color: #FFFFFF;
  95. font-size: 24rpx;
  96. }
  97. }
  98. .scan{
  99. image{
  100. width: 27rpx;
  101. height: 25rpx;
  102. }
  103. }
  104. }
  105. }
  106. .right{
  107. margin-left: 20rpx;
  108. border-left: 2rpx solid #FFFFFF;
  109. box-sizing: border-box;
  110. padding-left: 20rpx;
  111. display: flex;
  112. align-items: center;
  113. justify-content: space-between;
  114. height: 40rpx;
  115. .icon{
  116. margin-right: 10rpx;
  117. image{
  118. width: 40rpx;
  119. height: 40rpx;
  120. }
  121. }
  122. .num{
  123. color: #FFFFFF;
  124. font-size: 24rpx;
  125. }
  126. }
  127. }
  128. </style>