group.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <view class="content">
  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">
  19. <view class="topCont">
  20. <view class="carBox">
  21. <image src="../../static/img/nocar.png" mode="" class="carLogo"></image>
  22. <view class="carTxt">华晨宝马iX3 G08 电动 HA001N0电动领先型 ( 改款 )(2021-2021)过长换行</view>
  23. <!-- <image src="../../static/img/jt.png" mode="" class="carJt"></image> -->
  24. </view>
  25. <view class="vinBox">
  26. <view class="vinBox2">
  27. <view class="vinB">VIN</view>
  28. <view class="vinNum">HNUJN8888999H9098</view>
  29. </view>
  30. <view class="vinBox2">
  31. <view class="detail" @click="goCarDetail()">车辆详情</view>
  32. <image src="../../static/img/icon_arrow_blue_r@2x.png" mode="" style="width: 12rpx; height: 20rpx"></image>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="mainBox">
  38. <view class="maintitle">总组</view>
  39. <view class="mainLine" v-for="(item,index) in 5" @click="goTwo">
  40. <view class="lineName">电气设备,排气和加热</view>
  41. <image src="../../static/img/jt.png" mode="" class="mainLineJt"></image>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. title: 'Hello',
  51. iStatusBarHeight: '',
  52. }
  53. },
  54. onLoad() {
  55. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  56. },
  57. methods: {
  58. goCarDetail(){
  59. uni.navigateTo({
  60. url:'CarDetail'
  61. })
  62. },
  63. goOemSearch(){
  64. uni.navigateTo({
  65. url:'OemSearch'
  66. })
  67. },
  68. goback(){
  69. console.log('返回');
  70. uni.navigateBack({})
  71. },
  72. goTwo(){
  73. uni.navigateTo({
  74. url:'modelTwo'
  75. })
  76. }
  77. }
  78. }
  79. </script>
  80. <style scoped>
  81. .content{
  82. background: #F4F5F7;
  83. min-height: 100vh;
  84. }
  85. .zdyNavBox {
  86. width: 100vw;
  87. background: #FFFFFF;
  88. position: fixed;
  89. top: 0;
  90. left: 0;
  91. z-index: 9999999;
  92. }
  93. .zdyNav {
  94. height: 44px;
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. }
  99. .backImg {
  100. width: 44rpx;
  101. height: 44rpx;
  102. margin-left: 10rpx;
  103. margin-right: 20rpx;
  104. }
  105. .homeImg {
  106. width: 44rpx;
  107. height: 44rpx;
  108. }
  109. .zdyNavLeft {
  110. display: flex;
  111. align-items: center;
  112. }
  113. .zdyNavTitle {
  114. height: 44px;
  115. background: #FFFFFF;
  116. text-align: center;
  117. font-size: 34rpx;
  118. line-height: 44px;
  119. }
  120. .zdyNavRight{
  121. height: 44px;
  122. background: #FFFFFF;
  123. text-align: center;
  124. font-size: 28rpx;
  125. line-height: 44px;
  126. color: #3F90F7;
  127. margin-right: 24rpx;
  128. }
  129. .top{
  130. padding: 20rpx 0;
  131. }
  132. .topCont{
  133. width: 750rpx;
  134. height: 185rpx;
  135. background: #FFFFFF;
  136. }
  137. .carLogo{
  138. width: 72rpx;height: 72rpx;
  139. }
  140. .carTxt{
  141. font-size: 28rpx;
  142. font-family: PingFangSC-Medium, PingFang SC;
  143. font-weight: 500;
  144. color: #333333;
  145. line-height: 36rpx;
  146. width: 606rpx;
  147. }
  148. .carJt{
  149. width: 25rpx;
  150. height: 24rpx;
  151. margin-top: 6rpx;
  152. }
  153. .carBox{
  154. display: flex;
  155. justify-content: space-between;
  156. padding: 30rpx 24rpx 24rpx 24rpx;
  157. }
  158. .vinBox{
  159. display: flex;
  160. justify-content: space-between;
  161. padding-left: 120rpx;
  162. padding-right: 24rpx;
  163. }
  164. .vinBox2{
  165. display: flex;
  166. align-items: center;
  167. }
  168. .detail{
  169. color: #3F90F7;
  170. font-size: 24rpx;
  171. margin-right: 10rpx;
  172. }
  173. .vinB{
  174. background: #F19D01;
  175. width: 60rpx;
  176. height: 30rpx;
  177. text-align: center;
  178. line-height: 30rpx;
  179. color: #FFFFFF;
  180. font-size: 22rpx;
  181. border-radius: 5rpx;
  182. }
  183. .vinNum{
  184. color: #999999;font-size: 24rpx;line-height: 30rpx;padding-left: 10rpx;
  185. }
  186. .mainBox{
  187. background: #FFFFFF;
  188. }
  189. .maintitle{
  190. font-size: 28rpx;
  191. font-family: PingFangSC-Medium, PingFang SC;
  192. font-weight: 500;
  193. color: #333333;
  194. text-align: center;
  195. line-height: 88rpx;
  196. border-bottom: 1px solid #EEEEEE;
  197. }
  198. .mainLineJt{
  199. width: 25rpx;
  200. height: 24rpx;
  201. margin-top: 8rpx;
  202. }
  203. .mainLine{
  204. display: flex;
  205. justify-content: space-between;
  206. border-bottom: 1px solid #EEEEEE;
  207. padding:24rpx;
  208. }
  209. .lineName{
  210. font-size: 28rpx;
  211. font-family: PingFangSC-Regular, PingFang SC;
  212. font-weight: 400;
  213. color: #333333;
  214. line-height: 40rpx;
  215. }
  216. </style>