SelectCarTwo.vue 3.2 KB

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