SelectCarFive.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. }
  61. .zdyNavBox {
  62. width: 100vw;
  63. background: #FFFFFF;
  64. position: fixed;
  65. top: 0;
  66. left: 0;
  67. z-index: 9999999;
  68. }
  69. .zdyNav {
  70. height: 44px;
  71. display: flex;
  72. justify-content: space-between;
  73. align-items: center;
  74. }
  75. .backImg {
  76. width: 44rpx;
  77. height: 44rpx;
  78. margin-left: 10rpx;
  79. margin-right: 20rpx;
  80. }
  81. .homeImg {
  82. width: 44rpx;
  83. height: 44rpx;
  84. }
  85. .zdyNavLeft {
  86. display: flex;
  87. align-items: center;
  88. }
  89. .zdyNavTitle {
  90. height: 44px;
  91. background: #FFFFFF;
  92. text-align: center;
  93. font-size: 34rpx;
  94. line-height: 44px;
  95. }
  96. .zdyNavRight {
  97. height: 44px;
  98. background: #FFFFFF;
  99. text-align: center;
  100. font-size: 28rpx;
  101. line-height: 44px;
  102. color: #3F90F7;
  103. margin-right: 24rpx;
  104. }
  105. .top {
  106. color: #FFFFFF;
  107. font-size: 28rpx;
  108. padding: 24rpx;
  109. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  110. }
  111. .cangBox {
  112. background: #FFFFFF;
  113. padding: 24rpx;
  114. border-bottom: 1rpx solid #eeeeee;
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. }
  119. .cangTitle {
  120. padding: 24rpx 0;
  121. color: #333333;
  122. font-size: 28rpx;
  123. font-weight: bold;
  124. text-align: center;
  125. border-bottom: 1rpx solid #eeeeee;
  126. }
  127. .xing {
  128. font-size: 28rpx;
  129. color: #333333;
  130. }
  131. </style>