SelectCarThree.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 @click="goSelectCarFour()" class="xingBox" v-for="(item,index) in nianList" :key="index">
  20. <view class="xing">2022</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: '大众 > 迈腾 >',
  30. iStatusBarHeight: '',
  31. nianList: [1, 2, 3, 4, 5],
  32. }
  33. },
  34. onLoad() {
  35. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  36. },
  37. methods: {
  38. goSelectCarFour(){
  39. uni.navigateTo({
  40. url: 'SelectCarFour'
  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. }
  76. .backImg {
  77. width: 44rpx;
  78. height: 44rpx;
  79. margin-left: 10rpx;
  80. margin-right: 20rpx;
  81. }
  82. .homeImg {
  83. width: 44rpx;
  84. height: 44rpx;
  85. }
  86. .zdyNavLeft {
  87. display: flex;
  88. align-items: center;
  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. margin-right: 24rpx;
  105. }
  106. .top {
  107. color: #FFFFFF;
  108. font-size: 28rpx;
  109. padding: 24rpx;
  110. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  111. }
  112. .xingBox{
  113. font-size: 28rpx;
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. padding: 24rpx;
  118. border-bottom: 1rpx solid #eeeeee;
  119. }
  120. </style>