SelectCarSix.vue 5.2 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 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. padding-bottom: constant(safe-area-inset-bottom);
  92. padding-bottom: env(safe-area-inset-bottom);
  93. }
  94. .zdyNavBox {
  95. width: 100vw;
  96. background: #FFFFFF;
  97. position: fixed;
  98. top: 0;
  99. left: 0;
  100. z-index: 9999999;
  101. }
  102. .zdyNav {
  103. height: 44px;
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. }
  108. .backImg {
  109. width: 44rpx;
  110. height: 44rpx;
  111. margin-left: 10rpx;
  112. margin-right: 20rpx;
  113. }
  114. .homeImg {
  115. width: 44rpx;
  116. height: 44rpx;
  117. }
  118. .zdyNavLeft {
  119. display: flex;
  120. align-items: center;
  121. }
  122. .zdyNavTitle {
  123. height: 44px;
  124. background: #FFFFFF;
  125. text-align: center;
  126. font-size: 34rpx;
  127. line-height: 44px;
  128. }
  129. .zdyNavRight {
  130. height: 44px;
  131. background: #FFFFFF;
  132. text-align: center;
  133. font-size: 28rpx;
  134. line-height: 44px;
  135. color: #3F90F7;
  136. margin-right: 24rpx;
  137. }
  138. .top {
  139. color: #FFFFFF;
  140. font-size: 28rpx;
  141. padding: 24rpx;
  142. background: linear-gradient(110deg, #48B9F9 0%, #3F90F7 100%);
  143. }
  144. .mainBox {
  145. background: #FFFFFF;
  146. }
  147. .maintitle {
  148. font-size: 28rpx;
  149. font-family: PingFangSC-Medium, PingFang SC;
  150. font-weight: 500;
  151. color: #333333;
  152. text-align: center;
  153. line-height: 88rpx;
  154. border-bottom: 1px solid #EEEEEE;
  155. position: relative;
  156. }
  157. .blueBackImg {
  158. width: 25rpx;
  159. height: 24rpx;
  160. margin-top: 4rpx;
  161. }
  162. .backBox {
  163. display: flex;
  164. position: absolute;
  165. left: 23rpx;
  166. top: 28rpx;
  167. }
  168. .backTxt {
  169. color: #3F90F7;
  170. font-size: 24rpx;
  171. line-height: 33rpx;
  172. }
  173. .mainLineJt {
  174. width: 25rpx;
  175. height: 24rpx;
  176. margin-top: 8rpx;
  177. }
  178. .mainLine {
  179. display: flex;
  180. border-bottom: 1px solid #EEEEEE;
  181. padding: 29rpx 24rpx;
  182. }
  183. .lineName {
  184. font-size: 26rpx;
  185. font-family: PingFangSC-Regular, PingFang SC;
  186. font-weight: 500;
  187. color: #333333;
  188. line-height: 40rpx;
  189. width: 570rpx;
  190. word-wrap: break-word;
  191. /*强制换行*/
  192. overflow: hidden;
  193. /*超出隐藏*/
  194. text-overflow: ellipsis;
  195. /*隐藏后添加省略号*/
  196. white-space: nowrap;
  197. /*强制不换行*/
  198. }
  199. .lineIMg {
  200. width: 110rpx;
  201. height: 110rpx;
  202. }
  203. .lineRIght {
  204. padding-left: 20rpx;
  205. }
  206. .lineBm {
  207. font-size: 24rpx;
  208. font-family: PingFangSC-Regular, PingFang SC;
  209. font-weight: 400;
  210. color: #999999;
  211. padding: 10rpx 0;
  212. }
  213. .linejs {
  214. font-size: 24rpx;
  215. font-family: PingFangSC-Regular, PingFang SC;
  216. font-weight: 400;
  217. color: #999999;
  218. width: 570rpx;
  219. word-wrap: break-word;
  220. /*强制换行*/
  221. overflow: hidden;
  222. /*超出隐藏*/
  223. text-overflow: ellipsis;
  224. /*隐藏后添加省略号*/
  225. white-space: nowrap;
  226. /*强制不换行*/
  227. }
  228. </style>