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