modelTwo.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="topCont">
  5. <view class="carBox">
  6. <image src="../../static/img/nocar.png" mode="" class="carLogo"></image>
  7. <view class="carTxt">华晨宝马iX3 G08 电动 HA001N0电动领先型 ( 改款 )(2021-2021)过长换行</view>
  8. <!-- <image src="../../static/img/jt.png" mode="" class="carJt"></image> -->
  9. </view>
  10. <view class="vinBox">
  11. <view class="vinBox2">
  12. <view class="vinB">VIN</view>
  13. <view class="vinNum">HNUJN8888999H9098</view>
  14. </view>
  15. <view class="vinBox2">
  16. <view class="detail" @click="goCarDetail()">车辆详情</view>
  17. <image src="../../static/img/icon_arrow_blue_r@2x.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="mainBox">
  23. <view class="maintitle">总组
  24. <view class="backBox">
  25. <image src="../../static/img/icon_arrow_blue_l@2x.png" mode="" class="backImg"></image>
  26. <view class="backTxt">返回总组</view>
  27. </view>
  28. </view>
  29. <view class="searchBox">
  30. <view class="inputBox">
  31. <img src="../../static/img/icon_search.png" alt="" class="searchImg">
  32. <input type="text" placeholder="快速查找子组" class="topInput">
  33. </view>
  34. </view>
  35. <view class="mainLine" v-for="(item,index) in 5" @click="goThree">
  36. <view class="lineLeft">
  37. <image class="lineIMg" src="http://dmsimg.66km.com/thFiles/7C057545-E11E-40F5-AD3C-637EF653B417.jpg" mode="aspectFit"></image>
  38. </view>
  39. <view class="lineRIght">
  40. <view class="lineName">电气设备,排气和加热</view>
  41. <view class="lineBm">UH908980</view>
  42. <view class="linejs">这是备注,没有就不显示该行,长了有就不显示该有就不显示该长了有就不显示该</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. title: 'Hello'
  53. }
  54. },
  55. onLoad() {
  56. },
  57. methods: {
  58. goCarDetail(){
  59. uni.navigateTo({
  60. url:'CarDetail'
  61. })
  62. },
  63. goThree(){
  64. uni.navigateTo({
  65. url:'modelThree'
  66. })
  67. }
  68. }
  69. }
  70. </script>
  71. <style scoped>
  72. .searchImg{
  73. width: 40rpx;
  74. height: 40rpx;
  75. margin-top: 16rpx;
  76. margin-left: 20rpx;
  77. }
  78. .searchBox{
  79. padding-top:24rpx ;
  80. }
  81. .inputBox{
  82. width: 702rpx;
  83. height: 72rpx;
  84. background: #F4F5F7;
  85. border-radius: 36rpx;
  86. margin-left: 24rpx;
  87. display:flex;
  88. position: relative;
  89. }
  90. .topInput{
  91. font-size: 28rpx;
  92. height: 72rpx;
  93. line-height: 72rpx;
  94. padding-left: 16rpx;
  95. width: 500rpx;
  96. }
  97. .content{
  98. background: #F4F5F7;
  99. min-height: 100vh;
  100. }
  101. .top{
  102. padding: 20rpx 0;
  103. }
  104. .topCont{
  105. width: 750rpx;
  106. height: 185rpx;
  107. background: #FFFFFF;
  108. }
  109. .carLogo{
  110. width: 72rpx;height: 72rpx;
  111. }
  112. .carTxt{
  113. font-size: 28rpx;
  114. font-family: PingFangSC-Medium, PingFang SC;
  115. font-weight: 500;
  116. color: #333333;
  117. line-height: 36rpx;
  118. width: 606rpx;
  119. }
  120. .carJt{
  121. width: 25rpx;
  122. height: 24rpx;
  123. margin-top: 6rpx;
  124. }
  125. .carBox{
  126. display: flex;
  127. justify-content: space-between;
  128. padding: 30rpx 24rpx 24rpx 24rpx;
  129. }
  130. .vinBox{
  131. display: flex;
  132. justify-content: space-between;
  133. padding-left: 120rpx;
  134. padding-right: 24rpx;
  135. }
  136. .vinBox2{
  137. display: flex;
  138. align-items: center;
  139. }
  140. .detail{
  141. color: #3F90F7;
  142. font-size: 24rpx;
  143. margin-right: 10rpx;
  144. }
  145. .vinB{
  146. background: #F19D01;
  147. width: 60rpx;
  148. height: 30rpx;
  149. text-align: center;
  150. line-height: 30rpx;
  151. color: #FFFFFF;
  152. font-size: 22rpx;
  153. border-radius: 5rpx;
  154. }
  155. .vinNum{
  156. color: #999999;font-size: 24rpx;line-height: 30rpx;padding-left: 10rpx;
  157. }
  158. .mainBox{
  159. background: #FFFFFF;
  160. }
  161. .maintitle{
  162. font-size: 28rpx;
  163. font-family: PingFangSC-Medium, PingFang SC;
  164. font-weight: 500;
  165. color: #333333;
  166. text-align: center;
  167. line-height: 88rpx;
  168. border-bottom: 1px solid #EEEEEE;
  169. position: relative;
  170. }
  171. .backImg{
  172. width: 25rpx;height: 24rpx;margin-top: 4rpx;
  173. }
  174. .backBox{
  175. display: flex;position: absolute;
  176. left: 23rpx;top: 28rpx;
  177. }
  178. .backTxt{
  179. color: #3F90F7;font-weight: 400;font-size: 24rpx;line-height: 33rpx;
  180. }
  181. .mainLineJt{
  182. width: 25rpx;
  183. height: 24rpx;
  184. margin-top: 8rpx;
  185. }
  186. .mainLine{
  187. display: flex;
  188. border-bottom: 1px solid #EEEEEE;
  189. padding: 29rpx 24rpx;
  190. }
  191. .lineName{
  192. font-size: 26rpx;
  193. font-family: PingFangSC-Regular, PingFang SC;
  194. font-weight: 500;
  195. color: #333333;
  196. line-height: 40rpx;
  197. width: 570rpx;
  198. word-wrap: break-word; /*强制换行*/
  199. overflow: hidden; /*超出隐藏*/
  200. text-overflow: ellipsis;/*隐藏后添加省略号*/
  201. white-space: nowrap;/*强制不换行*/
  202. }
  203. .lineIMg{
  204. width: 110rpx;height: 110rpx;
  205. }
  206. .lineRIght{
  207. padding-left: 20rpx;
  208. }
  209. .lineBm{
  210. font-size: 24rpx;
  211. font-family: PingFangSC-Regular, PingFang SC;
  212. font-weight: 400;
  213. color: #999999;
  214. padding: 10rpx 0;
  215. }
  216. .linejs{
  217. font-size: 24rpx;
  218. font-family: PingFangSC-Regular, PingFang SC;
  219. font-weight: 400;
  220. color: #999999;
  221. width: 570rpx;
  222. word-wrap: break-word; /*强制换行*/
  223. overflow: hidden; /*超出隐藏*/
  224. text-overflow: ellipsis;/*隐藏后添加省略号*/
  225. white-space: nowrap;/*强制不换行*/
  226. }
  227. </style>