SelectCarThree.vue 2.6 KB

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