SelectCarTwo.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="box">
  3. <!-- 自定义导航 -->
  4. <view class="zdyNavBox">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback">
  9. </image>
  10. </view>
  11. <view class="zdyNavTitle">{{title}}</view>
  12. <view class="zdyNavRight" @click="goOemSearch">OEM搜索</view>
  13. </view>
  14. </view>
  15. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  16. <view style="height: 44px;"></view>
  17. <!-- 搜索 -->
  18. <view class="searchBoxBg">
  19. <searchBox placeholder="搜索车型" @search='search($event)'></searchBox>
  20. </view>
  21. <view class="cangBox" v-for="(item,index) in cangList" :key="index">
  22. <view class="cangTitle">一汽大众</view>
  23. <view @click="goSelectCarThree()" class="xingBox" v-for="(item,index) in xingList" :key="index">
  24. <view class="xing">迈腾</view>
  25. <image src="../../static/img/rightArrow.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import searchBox from '@/components/searchBox/searchBox.vue'
  32. export default {
  33. components: {
  34. searchBox
  35. },
  36. data() {
  37. return {
  38. title: '大众',
  39. iStatusBarHeight: '',
  40. searchValue: '',
  41. cangList: [1, 2],
  42. xingList: [1, 2, 3, 4, 5],
  43. }
  44. },
  45. onLoad() {
  46. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  47. },
  48. methods: {
  49. search(val) {
  50. // console.log(val);
  51. this.searchValue = val
  52. },
  53. goSelectCarThree(){
  54. uni.navigateTo({
  55. url: 'SelectCarThree'
  56. })
  57. },
  58. goOemSearch() {
  59. uni.navigateTo({
  60. url: 'OemSearch'
  61. })
  62. },
  63. goback() {
  64. console.log('返回');
  65. uni.navigateBack({})
  66. },
  67. }
  68. }
  69. </script>
  70. <style>
  71. .box {
  72. min-height: 100vh;
  73. background: #ffffff;
  74. padding-bottom: constant(safe-area-inset-bottom);
  75. padding-bottom: env(safe-area-inset-bottom);
  76. }
  77. .zdyNavBox {
  78. width: 100vw;
  79. background: #FFFFFF;
  80. position: fixed;
  81. top: 0;
  82. left: 0;
  83. z-index: 9999999;
  84. }
  85. .zdyNav {
  86. height: 44px;
  87. display: flex;
  88. justify-content: space-between;
  89. align-items: center;
  90. padding: 0 24rpx;
  91. }
  92. .backImg {
  93. width: 22rpx;
  94. height: 40rpx;
  95. }
  96. .homeImg {
  97. width: 44rpx;
  98. height: 44rpx;
  99. }
  100. .zdyNavLeft {
  101. display: flex;
  102. align-items: center;
  103. width: 120rpx;
  104. }
  105. .zdyNavTitle {
  106. height: 44px;
  107. background: #FFFFFF;
  108. text-align: center;
  109. font-size: 34rpx;
  110. line-height: 44px;
  111. }
  112. .zdyNavRight {
  113. height: 44px;
  114. background: #FFFFFF;
  115. text-align: center;
  116. font-size: 28rpx;
  117. line-height: 44px;
  118. color: #3F90F7;
  119. width: 120rpx;
  120. }
  121. .top {
  122. color: #FFFFFF;
  123. font-size: 28rpx;
  124. padding: 24rpx;
  125. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  126. }
  127. .cangBox{
  128. background: #FFFFFF;
  129. }
  130. .cangTitle{
  131. padding: 10rpx 24rpx;
  132. background: #F4F5F7;
  133. color: #333333;
  134. font-size: 28rpx;
  135. }
  136. .xingBox{
  137. font-size: 28rpx;
  138. display: flex;
  139. justify-content: space-between;
  140. align-items: center;
  141. padding: 24rpx;
  142. border-bottom: 1rpx solid #eeeeee;
  143. }
  144. </style>