carView.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="tab dis f-c">
  3. <view class="header-title" :style="headerStyle">{{title}}</view>
  4. <view class="items dis f-c ">
  5. <view class="item dis a-c j-s">
  6. <text>车牌号</text>
  7. <text>{{info.licenseNo}}</text>
  8. </view>
  9. <view class="item dis a-c j-s">
  10. <text>车架号</text>
  11. <text>{{info.vinNo}}</text>
  12. </view>
  13. <view class="item dis a-c j-s">
  14. <text>品牌型号</text>
  15. <text>{{info.brandName}}</text>
  16. </view>
  17. <view class="item dis a-c j-s">
  18. <text>发动机号</text>
  19. <text>{{info.engineNo}}</text>
  20. </view>
  21. <view class="item dis a-c j-s">
  22. <text>使用性质</text>
  23. <text>{{infoB.carNatureCode}}</text>
  24. </view>
  25. <view class="item dis a-c j-s">
  26. <text>车辆类型</text>
  27. <text>{{infoB.carTypeCode}} </text>
  28. </view>
  29. <view class="item dis a-c j-s">
  30. <text>车辆用途</text>
  31. <text>{{infoB.vehicleUseCode}} </text>
  32. </view>
  33. <view class="item dis a-c j-s">
  34. <text>车辆种类</text>
  35. <text> {{infoB.carKindCode}}</text>
  36. </view>
  37. <view class="item dis a-c j-s">
  38. <text>能源种类</text>
  39. <text>{{infoB.energyTypeCode}} </text>
  40. </view>
  41. <view class="item dis a-c j-s">
  42. <text>注册日期</text>
  43. <text>{{info.registerDate}} </text>
  44. </view>
  45. <view class="item dis a-c j-s">
  46. <text>发证日期</text>
  47. <text> {{info.issueDate}}</text>
  48. </view>
  49. <view class="item dis a-c j-s">
  50. <text>是否过户</text>
  51. <text> </text>
  52. </view>
  53. <view class="item dis a-c j-s">
  54. <text>商业险是否过户</text>
  55. <text> </text>
  56. </view>
  57. <view class="item dis a-c j-s">
  58. <text>年款</text>
  59. <text> {{info.carYear}}</text>
  60. </view>
  61. <view class="item dis a-c j-s">
  62. <text>座位数</text>
  63. <text> {{info.seatCount}}座</text>
  64. </view>
  65. <view class="item dis a-c j-s">
  66. <text>整备质量</text>
  67. <text> {{info.completeKerbMass}}</text>
  68. </view>
  69. <view class="item dis a-c j-s">
  70. <text>排量</text>
  71. <text>{{info.displacement}} </text>
  72. </view>
  73. <view class="item dis a-c j-s">
  74. <text>功率</text>
  75. <text> {{info.powerScale}}kw</text>
  76. </view>
  77. <view class="item dis a-c j-s">
  78. <text>新车购置价</text>
  79. <text>{{info.purchasePrice}}元 </text>
  80. </view>
  81. </view>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. name: 'name', //插件名称
  87. props: {
  88. info: {
  89. type: Object,
  90. default: () => {
  91. return {};
  92. }
  93. },
  94. infoB: {
  95. type: Object,
  96. default: () => {
  97. return {};
  98. }
  99. },
  100. title: {
  101. type: String,
  102. default: '基本信息'
  103. },
  104. headerStyle: {
  105. type: Object,
  106. default: () => {
  107. return {};
  108. }
  109. },
  110. },
  111. watch: {
  112. info(newval) {
  113. this.info = newval;
  114. },
  115. infoB(newval) {
  116. this.infoB = newval;
  117. }
  118. },
  119. computed: {},
  120. data() {
  121. return {};
  122. },
  123. methods: {}
  124. };
  125. </script>
  126. <!--使用scss,只在本组件生效-->
  127. <style lang="scss" scoped>
  128. .tab {
  129. background-color: #fff;
  130. padding: 20rpx;
  131. box-sizing: border-box;
  132. border-radius: 0 0 10rpx 10rpx;
  133. .header-title {
  134. background: linear-gradient(180deg, #FFFCEA 0%, #FFFFFF 100%);
  135. border-radius: 20rpx 20rpx 0rpx 0rpx;
  136. font-size: 32rpx;
  137. color: #333;
  138. font-weight: bold;
  139. padding: 20rpx;
  140. box-sizing: border-box;
  141. }
  142. .items {
  143. padding: 0 20rpx;
  144. box-sizing: border-box;
  145. .item {
  146. margin-bottom: 30rpx;
  147. text:first-child {
  148. font-size: 30rpx;
  149. color: #666;
  150. }
  151. text:last-child {
  152. font-size: 30rpx;
  153. color: #333;
  154. font-weight: bold;
  155. }
  156. }
  157. }
  158. }
  159. </style>