HyCharge.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="charge-item-wrapper">
  3. <view class="item-btn-wrap">快充</view>
  4. <view class="item-content-wrap">
  5. <view class="text">空闲</view>
  6. <view class="content-number">
  7. <view class="left-num">10</view>
  8. <view class="right-num">/24</view>
  9. </view>
  10. </view>
  11. <view class="item-status-wrap">排队中</view>
  12. </view>
  13. </template>
  14. <script lang="ts" setup></script>
  15. <style lang="scss" scoped>
  16. .charge-item-wrapper {
  17. width: 100%;
  18. height: 70rpx;
  19. background-color: #e2f9ef;
  20. border-radius: 8rpx;
  21. position: relative;
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. .item-btn-wrap {
  26. width: 94rpx;
  27. height: 42rpx;
  28. background-image: linear-gradient(90deg, #00d454 0%, #4ad581 100%), linear-gradient(#e5f5e7, #e5f5e7);
  29. background-blend-mode: normal, normal;
  30. border-radius: 8rpx;
  31. position: absolute;
  32. top: 14rpx;
  33. left: 18rpx;
  34. display: flex;
  35. align-items: center;
  36. justify-content: center;
  37. font-size: 26rpx;
  38. color: #fff;
  39. font-weight: bold;
  40. }
  41. .item-content-wrap {
  42. display: flex;
  43. align-items: center;
  44. .text {
  45. font-size: 24rpx;
  46. color: #222830;
  47. line-height: 50rpx;
  48. margin-right: 14rpx;
  49. }
  50. .content-number {
  51. display: flex;
  52. align-items: center;
  53. font-size: 26rpx;
  54. font-weight: 600;
  55. .left-num {
  56. color: #222830;
  57. }
  58. .right-num {
  59. color: #999;
  60. }
  61. }
  62. }
  63. .item-status-wrap {
  64. font-size: 26rpx;
  65. line-height: 50rpx;
  66. color: #158e45;
  67. position: absolute;
  68. top: 14rpx;
  69. right: 24rpx;
  70. }
  71. }
  72. </style>