SelectCarSix.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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 class="mainBox">
  19. <view class="maintitle">总组
  20. <view class="backBox" @click="blueBack">
  21. <image src="../../static/img/icon_arrow_blue_l@2x.png" mode="" class="blueBackImg"></image>
  22. <view class="backTxt">返回总组</view>
  23. </view>
  24. </view>
  25. <!-- 搜索 -->
  26. <view class="searchBoxBg">
  27. <searchBox placeholder="快速查找子组" @search='search($event)'></searchBox>
  28. </view>
  29. <view @click="gomodelThree()" class="mainLine" v-for="(item,index) in cangList">
  30. <view class="lineLeft">
  31. <image class="lineIMg" src="http://dmsimg.66km.com/thFiles/7C057545-E11E-40F5-AD3C-637EF653B417.jpg"
  32. mode="aspectFit"></image>
  33. </view>
  34. <view class="lineRIght">
  35. <view class="lineName">电气设备,排气和加热</view>
  36. <view class="lineBm">UH908980</view>
  37. <view class="linejs">这是备注,没有就不显示该行,长了有就不显示该有就不显示该长了有就不显示该</view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import searchBox from '@/components/searchBox/searchBox.vue'
  45. export default {
  46. components: {
  47. searchBox
  48. },
  49. data() {
  50. return {
  51. title: '大众 > 迈腾 > 2022 > 市场一',
  52. iStatusBarHeight: '',
  53. cangList: [1,2,3,4,5,6,7,8],
  54. sonTitle: '发动机',
  55. searchValue: '',
  56. }
  57. },
  58. onLoad() {
  59. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  60. },
  61. methods: {
  62. search(val) {
  63. // console.log(val);
  64. this.searchValue = val
  65. },
  66. gomodelThree() {
  67. uni.navigateTo({
  68. url: 'modelThree'
  69. })
  70. },
  71. goOemSearch() {
  72. uni.navigateTo({
  73. url: 'OemSearch'
  74. })
  75. },
  76. blueBack(){
  77. uni.navigateBack({})
  78. },
  79. goback() {
  80. console.log('返回');
  81. uni.navigateBack({})
  82. },
  83. }
  84. }
  85. </script>
  86. <style>
  87. .box {
  88. min-height: 100vh;
  89. background: #ffffff;
  90. padding-bottom: constant(safe-area-inset-bottom);
  91. padding-bottom: env(safe-area-inset-bottom);
  92. }
  93. .zdyNavBox {
  94. width: 100vw;
  95. background: #FFFFFF;
  96. position: fixed;
  97. top: 0;
  98. left: 0;
  99. z-index: 9999999;
  100. }
  101. .zdyNav {
  102. height: 44px;
  103. display: flex;
  104. justify-content: space-between;
  105. align-items: center;
  106. padding: 0 24rpx;
  107. }
  108. .backImg {
  109. width: 22rpx;
  110. height: 40rpx;
  111. }
  112. .homeImg {
  113. width: 44rpx;
  114. height: 44rpx;
  115. }
  116. .zdyNavLeft {
  117. display: flex;
  118. align-items: center;
  119. width: 120rpx;
  120. }
  121. .zdyNavTitle {
  122. height: 44px;
  123. background: #FFFFFF;
  124. text-align: center;
  125. font-size: 34rpx;
  126. line-height: 44px;
  127. }
  128. .zdyNavRight {
  129. height: 44px;
  130. background: #FFFFFF;
  131. text-align: center;
  132. font-size: 28rpx;
  133. line-height: 44px;
  134. color: #3F90F7;
  135. width: 120rpx;
  136. }
  137. .top {
  138. color: #FFFFFF;
  139. font-size: 28rpx;
  140. padding: 24rpx;
  141. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  142. }
  143. .mainBox {
  144. background: #FFFFFF;
  145. }
  146. .maintitle {
  147. font-size: 28rpx;
  148. font-family: PingFangSC-Medium, PingFang SC;
  149. font-weight: 500;
  150. color: #333333;
  151. text-align: center;
  152. line-height: 88rpx;
  153. border-bottom: 1px solid #EEEEEE;
  154. position: relative;
  155. }
  156. .blueBackImg {
  157. width: 25rpx;
  158. height: 24rpx;
  159. margin-top: 4rpx;
  160. }
  161. .backBox {
  162. display: flex;
  163. position: absolute;
  164. left: 23rpx;
  165. top: 28rpx;
  166. }
  167. .backTxt {
  168. color: #3F90F7;
  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>