p-22-low.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="img-wrap">
  3. <view :style="{ left: '-4rpx', top: '148rpx' }" class="item success"></view>
  4. <view v-for="(item, index) in 2" :key="item" :style="{ left: 126 + (item - 1) * 224 + 'rpx', top: '346rpx' }" class="item error"></view>
  5. <view v-for="(item, index) in 7" :key="item" :style="{ left: 512 + (item - 1) * 96 + 'rpx', top: '346rpx' }" class="item error"></view>
  6. <view v-for="(item, index) in 10" :key="item" :style="{ left: 1182 + (item - 1) * 96 + 'rpx', top: '346rpx' }" class="item border error"></view>
  7. <view v-for="(item, index) in 2" :key="item" :style="{ left: 2206 + (item - 1) * 224 + 'rpx', top: '346rpx' }" class="item error"></view>
  8. <image src="@/static/electron-picture/p-22-low.jpg" alt="" />
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {}
  15. }
  16. }
  17. </script>
  18. <style scoped lang="scss">
  19. .img-wrap {
  20. position: relative;
  21. overflow-x: scroll;
  22. padding-right: 49rpx;
  23. .item {
  24. position: absolute;
  25. width: 74rpx;
  26. height: 154rpx;
  27. }
  28. .border {
  29. border-radius: 10rpx;
  30. }
  31. .border2 {
  32. border-radius: 30rpx;
  33. }
  34. .success {
  35. background-color: #00BD00;
  36. }
  37. .error {
  38. background-color: #D6000F;
  39. }
  40. image {
  41. height: 1095rpx;
  42. }
  43. }
  44. </style>