four.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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="125" 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">
  21. <countTo
  22. :startVal="2000000"
  23. :endVal="car.carOrderUnreal"
  24. :duration="2000"
  25. />
  26. <van-image width="25" height="20" class="fourtitle7" :src="fourtitle7" />
  27. </div>
  28. </div>
  29. </template>
  30. <script setup>
  31. import { defineProps } from 'vue';
  32. // import { onMounted, reactive } from "vue";
  33. import chepai from '@/assets/img/chepai.png';
  34. import fourtitle0 from '@/assets/img/chuxing.png';
  35. import fourtitle1 from '@/assets/img/fourtitle1.png';
  36. import fourtitle2 from '@/assets/img/fourtitle2.png';
  37. import fourtitle4 from '@/assets/img/fourtitle4.png';
  38. import fourtitle5 from '@/assets/img/dashi.png';
  39. import fourtitle6 from '@/assets/img/bottomText.png';
  40. import fourtitle7 from '@/assets/img/wei.png';
  41. import countTo from '@/components/counto/vue-countTo.vue';
  42. const props = defineProps({
  43. car: {
  44. type: Object,
  45. },
  46. });
  47. const chepaiData = props.car.carId.split('');
  48. </script>
  49. <style scoped>
  50. .page_item {
  51. width: 100%;
  52. height: 100%;
  53. position: relative;
  54. background-image: url(../../../assets/img/chezhubg.jpg);
  55. background-size: 100% 100%;
  56. background-repeat: no-repeat;
  57. }
  58. .chepai {
  59. top: 213px;
  60. left: 27px;
  61. position: absolute;
  62. display: flex;
  63. }
  64. .chepai .item {
  65. height: 100%;
  66. width: 44px;
  67. height: 44px;
  68. font-size: 26px;
  69. color: #1e3c95;
  70. line-height: 1.5em;
  71. text-align: center;
  72. display: inline-block;
  73. border: 2px solid #1e3c95;
  74. border-radius: 3px;
  75. vertical-align: middle;
  76. }
  77. .chepai .item:not(:last-child) {
  78. margin-right: 3px;
  79. }
  80. .fourtitle0 {
  81. top: 107px;
  82. left: 25px;
  83. position: absolute;
  84. }
  85. .fourtitle1 {
  86. top: 295px;
  87. left: 85px;
  88. position: absolute;
  89. }
  90. .fourtitle2 {
  91. top: 370px;
  92. left: 39px;
  93. position: absolute;
  94. }
  95. .fourtitle4 {
  96. bottom: 143px;
  97. left: 52px;
  98. position: absolute;
  99. }
  100. .fourtitle5 {
  101. top: 403px;
  102. left: 39px;
  103. position: absolute;
  104. }
  105. .fourtitle6 {
  106. bottom: 39px;
  107. left: 50%;
  108. transform: translateX(-50%);
  109. position: absolute;
  110. }
  111. .fourtitle7 {
  112. display: inline-block;
  113. vertical-align: middle;
  114. margin-left: 3px;
  115. }
  116. .precedence {
  117. position: absolute;
  118. top: 370px;
  119. left: 165px;
  120. text-align: center;
  121. width: 7.3em;
  122. font-size: 24px;
  123. color: #1e3c95;
  124. }
  125. </style>