four.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <div class="page_item">
  3. <van-image width="326" height="53" class="fourtitle0" :src="fourtitle0" />
  4. <van-image width="203" height="27" class="fourtitle1" :src="fourtitle1" />
  5. <van-image width="202" height="20" class="fourtitle2" :src="fourtitle2" />
  6. <van-image width="262" height="25" class="fourtitle4" :src="fourtitle4" />
  7. <van-image width="304" height="24" class="fourtitle5" :src="fourtitle5" />
  8. <van-image width="251" height="46" class="fourtitle6" :src="fourtitle6" />
  9. <div class="chepai chepaihao" style="width: 363px">
  10. <div class="item" style="padding-top: 1px;">
  11. <van-image width="35" height="31" :src="chepai" />
  12. </div>
  13. <div
  14. class="item"
  15. v-for="(item, index) in chepaiData"
  16. :key="index"
  17. v-text="item"
  18. ></div>
  19. </div>
  20. <div class="precedence" v-text="car.carOrderUnreal"></div>
  21. </div>
  22. </template>
  23. <script setup>
  24. import { defineProps } from "vue";
  25. // import { onMounted, reactive } from "vue";
  26. import chepai from '@/assets/img/chepai.png';
  27. import fourtitle0 from '@/assets/img/chuxing.png';
  28. import fourtitle1 from '@/assets/img/fourtitle1.png';
  29. import fourtitle2 from '@/assets/img/fourtitle2.png';
  30. import fourtitle4 from '@/assets/img/fourtitle4.png';
  31. import fourtitle5 from '@/assets/img/dashi.png';
  32. import fourtitle6 from '@/assets/img/bottomText.png';
  33. const props = defineProps({
  34. car: {
  35. type: Object,
  36. }
  37. })
  38. const chepaiData = props.car.carId.split('');
  39. </script>
  40. <style scoped>
  41. .page_item {
  42. width: 100%;
  43. height: 100%;
  44. position: relative;
  45. background-image: url(../../../assets/img/chezhubg.jpg);
  46. background-size: 100% 100%;
  47. background-repeat: no-repeat;
  48. }
  49. .chepai {
  50. top: 213px;
  51. left: 27px;
  52. position: absolute;
  53. display: flex;
  54. }
  55. .chepai .item {
  56. height: 100%;
  57. width: 44px;
  58. height: 44px;
  59. font-size: 26px;
  60. color: #1e3c95;
  61. line-height: 1em;
  62. text-align: center;
  63. display: inline-block;
  64. border: 2px solid #1e3c95;
  65. border-radius: 3px;
  66. vertical-align: middle;
  67. }
  68. .chepai .item:not(:last-child) {
  69. margin-right: 3px;
  70. }
  71. .fourtitle0{
  72. top: 107px;
  73. left: 25px;
  74. position: absolute;
  75. }
  76. .fourtitle1 {
  77. top: 295px;
  78. left: 85px;
  79. position: absolute;
  80. }
  81. .fourtitle2 {
  82. top: 370px;
  83. left: 39px;
  84. position: absolute;
  85. }
  86. .fourtitle4 {
  87. bottom: 143px;
  88. left: 52px;
  89. position: absolute;
  90. }
  91. .fourtitle5 {
  92. top: 403px;
  93. left: 39px;
  94. position: absolute;
  95. }
  96. .fourtitle6 {
  97. bottom: 39px;
  98. left: 50%;
  99. transform: translateX(-50%);
  100. position: absolute;
  101. }
  102. .precedence{
  103. position: absolute;
  104. top: 365px;
  105. left: 160px;
  106. text-align: center;
  107. width: 2.3em;
  108. font-size: 26px;
  109. color: #1e3c95;
  110. }
  111. </style>