modelTwo.vue 4.5 KB

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