SelectCarFour.vue 3.1 KB

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