SelectCarFive.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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">车型件</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. <view class="top">{{title}}</view>
  18. <view class="cangTitle">总组</view>
  19. <view @click="goSelectCarSix()" class="cangBox" v-for="(item,index) in cangList" :key="index">
  20. <view class="xing">发动机</view>
  21. <image src="../../static/img/rightArrow.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. title: '大众 > 迈腾 > 2022 > 市场一',
  30. iStatusBarHeight: '',
  31. cangList: [1, 3, 4],
  32. }
  33. },
  34. onLoad() {
  35. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  36. },
  37. methods: {
  38. goSelectCarSix(){
  39. uni.navigateTo({
  40. url: 'SelectCarSix'
  41. })
  42. },
  43. goOemSearch() {
  44. uni.navigateTo({
  45. url: 'OemSearch'
  46. })
  47. },
  48. goback() {
  49. console.log('返回');
  50. uni.navigateBack({})
  51. },
  52. }
  53. }
  54. </script>
  55. <style>
  56. .box {
  57. min-height: 100vh;
  58. background: #ffffff;
  59. padding-bottom: constant(safe-area-inset-bottom);
  60. padding-bottom: env(safe-area-inset-bottom);
  61. }
  62. .zdyNavBox {
  63. width: 100vw;
  64. background: #FFFFFF;
  65. position: fixed;
  66. top: 0;
  67. left: 0;
  68. z-index: 9999999;
  69. }
  70. .zdyNav {
  71. height: 44px;
  72. display: flex;
  73. justify-content: space-between;
  74. align-items: center;
  75. padding: 0 24rpx;
  76. }
  77. .backImg {
  78. width: 22rpx;
  79. height: 40rpx;
  80. }
  81. .homeImg {
  82. width: 44rpx;
  83. height: 44rpx;
  84. }
  85. .zdyNavLeft {
  86. display: flex;
  87. align-items: center;
  88. width: 120rpx;
  89. }
  90. .zdyNavTitle {
  91. height: 44px;
  92. background: #FFFFFF;
  93. text-align: center;
  94. font-size: 34rpx;
  95. line-height: 44px;
  96. }
  97. .zdyNavRight {
  98. height: 44px;
  99. background: #FFFFFF;
  100. text-align: center;
  101. font-size: 28rpx;
  102. line-height: 44px;
  103. color: #3F90F7;
  104. width: 120rpx;
  105. }
  106. .top {
  107. color: #FFFFFF;
  108. font-size: 28rpx;
  109. padding: 24rpx;
  110. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  111. }
  112. .cangBox {
  113. background: #FFFFFF;
  114. padding: 24rpx;
  115. border-bottom: 1rpx solid #eeeeee;
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. }
  120. .cangTitle {
  121. padding: 24rpx 0;
  122. color: #333333;
  123. font-size: 28rpx;
  124. font-weight: bold;
  125. text-align: center;
  126. border-bottom: 1rpx solid #eeeeee;
  127. }
  128. .xing {
  129. font-size: 28rpx;
  130. color: #333333;
  131. }
  132. </style>