SelectCarSix.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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 class="mainBox">
  20. <view class="maintitle">总组
  21. <view class="backBox" @click="blueBack">
  22. <image src="../../static/img/icon_arrow_blue_l@2x.png" mode="" class="blueBackImg"></image>
  23. <view class="backTxt">返回总组</view>
  24. </view>
  25. </view>
  26. <!-- 搜索 -->
  27. <view class="searchBoxBg">
  28. <searchBox placeholder="快速查找子组" @search='search($event)'></searchBox>
  29. </view>
  30. <view @click="gomodelThree()" class="mainLine" v-for="(item,index) in cangList">
  31. <view class="lineLeft">
  32. <image class="lineIMg" src="http://dmsimg.66km.com/thFiles/7C057545-E11E-40F5-AD3C-637EF653B417.jpg"
  33. mode="aspectFit"></image>
  34. </view>
  35. <view class="lineRIght">
  36. <view class="lineName">电气设备,排气和加热</view>
  37. <view class="lineBm">UH908980</view>
  38. <view class="linejs">这是备注,没有就不显示该行,长了有就不显示该有就不显示该长了有就不显示该</view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import searchBox from '@/components/searchBox/searchBox.vue'
  46. export default {
  47. components: {
  48. searchBox
  49. },
  50. data() {
  51. return {
  52. title: '大众 > 迈腾 > 2022 > 市场一',
  53. iStatusBarHeight: '',
  54. cangList: [1,2,3,4,5,6,7,8],
  55. sonTitle: '发动机',
  56. searchValue: '',
  57. }
  58. },
  59. onLoad() {
  60. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  61. },
  62. methods: {
  63. search(val) {
  64. // console.log(val);
  65. this.searchValue = val
  66. },
  67. gomodelThree() {
  68. uni.navigateTo({
  69. url: 'modelThree'
  70. })
  71. },
  72. goOemSearch() {
  73. uni.navigateTo({
  74. url: 'OemSearch'
  75. })
  76. },
  77. blueBack(){
  78. uni.navigateBack({})
  79. },
  80. goback() {
  81. console.log('返回');
  82. uni.navigateBack({})
  83. },
  84. }
  85. }
  86. </script>
  87. <style>
  88. .box {
  89. min-height: 100vh;
  90. background: #ffffff;
  91. }
  92. .zdyNavBox {
  93. width: 100vw;
  94. background: #FFFFFF;
  95. position: fixed;
  96. top: 0;
  97. left: 0;
  98. z-index: 9999999;
  99. }
  100. .zdyNav {
  101. height: 44px;
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: center;
  105. }
  106. .backImg {
  107. width: 44rpx;
  108. height: 44rpx;
  109. margin-left: 10rpx;
  110. margin-right: 20rpx;
  111. }
  112. .homeImg {
  113. width: 44rpx;
  114. height: 44rpx;
  115. }
  116. .zdyNavLeft {
  117. display: flex;
  118. align-items: center;
  119. }
  120. .zdyNavTitle {
  121. height: 44px;
  122. background: #FFFFFF;
  123. text-align: center;
  124. font-size: 34rpx;
  125. line-height: 44px;
  126. }
  127. .zdyNavRight {
  128. height: 44px;
  129. background: #FFFFFF;
  130. text-align: center;
  131. font-size: 28rpx;
  132. line-height: 44px;
  133. color: #3F90F7;
  134. margin-right: 24rpx;
  135. }
  136. .top {
  137. color: #FFFFFF;
  138. font-size: 28rpx;
  139. padding: 24rpx;
  140. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  141. }
  142. .mainBox {
  143. background: #FFFFFF;
  144. }
  145. .maintitle {
  146. font-size: 28rpx;
  147. font-family: PingFangSC-Medium, PingFang SC;
  148. font-weight: 500;
  149. color: #333333;
  150. text-align: center;
  151. line-height: 88rpx;
  152. border-bottom: 1px solid #EEEEEE;
  153. position: relative;
  154. }
  155. .blueBackImg {
  156. width: 25rpx;
  157. height: 24rpx;
  158. margin-top: 4rpx;
  159. }
  160. .backBox {
  161. display: flex;
  162. position: absolute;
  163. left: 23rpx;
  164. top: 28rpx;
  165. }
  166. .backTxt {
  167. color: #3F90F7;
  168. font-weight: 400;
  169. font-size: 24rpx;
  170. line-height: 33rpx;
  171. }
  172. .mainLineJt {
  173. width: 25rpx;
  174. height: 24rpx;
  175. margin-top: 8rpx;
  176. }
  177. .mainLine {
  178. display: flex;
  179. border-bottom: 1px solid #EEEEEE;
  180. padding: 29rpx 24rpx;
  181. }
  182. .lineName {
  183. font-size: 26rpx;
  184. font-family: PingFangSC-Regular, PingFang SC;
  185. font-weight: 500;
  186. color: #333333;
  187. line-height: 40rpx;
  188. width: 570rpx;
  189. word-wrap: break-word;
  190. /*强制换行*/
  191. overflow: hidden;
  192. /*超出隐藏*/
  193. text-overflow: ellipsis;
  194. /*隐藏后添加省略号*/
  195. white-space: nowrap;
  196. /*强制不换行*/
  197. }
  198. .lineIMg {
  199. width: 110rpx;
  200. height: 110rpx;
  201. }
  202. .lineRIght {
  203. padding-left: 20rpx;
  204. }
  205. .lineBm {
  206. font-size: 24rpx;
  207. font-family: PingFangSC-Regular, PingFang SC;
  208. font-weight: 400;
  209. color: #999999;
  210. padding: 10rpx 0;
  211. }
  212. .linejs {
  213. font-size: 24rpx;
  214. font-family: PingFangSC-Regular, PingFang SC;
  215. font-weight: 400;
  216. color: #999999;
  217. width: 570rpx;
  218. word-wrap: break-word;
  219. /*强制换行*/
  220. overflow: hidden;
  221. /*超出隐藏*/
  222. text-overflow: ellipsis;
  223. /*隐藏后添加省略号*/
  224. white-space: nowrap;
  225. /*强制不换行*/
  226. }
  227. </style>