p-1200.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="img-wrap">
  3. <view v-for="(item, index) in 19" :style="{ left: 65 + (item - 1) * 66 + 'rpx' }" class="item success"></view>
  4. <view v-for="(item, index) in 21" :style="{ left: 65 + (item - 1) * 66 + 'rpx' }" class="item1 error"></view>
  5. <view v-for="(item, index) in 4" :style="{ left: 126 + (item - 1) * 47 + 'rpx', borderRadius: '16rpx' }" class="item2 success"></view>
  6. <view :style="{ left: '340rpx', borderRadius: '16rpx' }" class="item2 success"></view>
  7. <view v-for="(item, index) in 7" :style="{ left: 414 + (item - 1) * 48 + 'rpx' }" class="item2 success"></view>
  8. <view v-for="(item, index) in 7" :style="{ left: 774 + (item - 1) * 48 + 'rpx' }" class="item2 error"></view>
  9. <view v-for="(item, index) in 4" :style="{ left: '1136rpx' }" class="item2 success"></view>
  10. <view v-for="(item, index) in 4" :style="{ left: 1212 + (item - 1) * 47 + 'rpx', borderRadius: '16rpx' }" class="item2 success"></view>
  11. <image mode="heightFix" src="@/static/electron-picture/p-1200.jpg" alt="" />
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {}
  18. }
  19. }
  20. </script>
  21. <style scoped lang="scss">
  22. .img-wrap {
  23. position: relative;
  24. overflow-x: scroll;
  25. padding-right: 49rpx;
  26. .item {
  27. width: 37rpx;
  28. height: 77rpx;
  29. position: absolute;
  30. top: 125rpx;
  31. left: 63rpx;
  32. border-radius: 8rpx;
  33. z-index: 999;
  34. }
  35. .item1 {
  36. width: 37rpx;
  37. height: 77rpx;
  38. position: absolute;
  39. top: 500rpx;
  40. left: 63rpx;
  41. border-radius: 8rpx;
  42. z-index: 999;
  43. }
  44. .item2 {
  45. width: 37rpx;
  46. height: 77rpx;
  47. position: absolute;
  48. top: 846rpx;
  49. left: 63rpx;
  50. border-radius: 8rpx;
  51. z-index: 999;
  52. }
  53. .success {
  54. background-color: #00BD00;
  55. }
  56. .error {
  57. background-color: #D6000F;
  58. }
  59. image {
  60. height: 1095rpx;
  61. }
  62. }
  63. </style>