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