SelectCarThree.vue 2.6 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>
  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 @click="goSelectCarFour()" class="xingBox" v-for="(item,index) in nianList" :key="index">
  19. <view class="xing">2022</view>
  20. <image src="../../static/img/rightArrow.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. title: '大众 > 迈腾 >',
  29. iStatusBarHeight: '',
  30. nianList: [1, 2, 3, 4, 5],
  31. }
  32. },
  33. onLoad() {
  34. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  35. },
  36. methods: {
  37. goSelectCarFour(){
  38. uni.navigateTo({
  39. url: 'SelectCarFour'
  40. })
  41. },
  42. goOemSearch() {
  43. uni.navigateTo({
  44. url: 'OemSearch'
  45. })
  46. },
  47. goback() {
  48. console.log('返回');
  49. uni.navigateBack({})
  50. },
  51. }
  52. }
  53. </script>
  54. <style>
  55. .box {
  56. min-height: 100vh;
  57. background: #ffffff;
  58. padding-bottom: constant(safe-area-inset-bottom);
  59. padding-bottom: env(safe-area-inset-bottom);
  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. padding: 0 24rpx;
  75. }
  76. .backImg {
  77. width: 22rpx;
  78. height: 40rpx;
  79. }
  80. .homeImg {
  81. width: 44rpx;
  82. height: 44rpx;
  83. }
  84. .zdyNavLeft {
  85. display: flex;
  86. align-items: center;
  87. width: 120rpx;
  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. width: 120rpx;
  104. }
  105. .top {
  106. color: #FFFFFF;
  107. font-size: 28rpx;
  108. padding: 24rpx;
  109. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  110. }
  111. .xingBox{
  112. font-size: 28rpx;
  113. display: flex;
  114. justify-content: space-between;
  115. align-items: center;
  116. padding: 24rpx;
  117. border-bottom: 1rpx solid #eeeeee;
  118. }
  119. </style>