TimeLimitedSeckill.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="time-limited-seckill-container">
  3. <view class="time-title-wrapper">
  4. <text class="time-title">限时秒杀</text>
  5. <view class="count-down">
  6. <text>距结束</text>
  7. <text>01:12:12</text>
  8. </view>
  9. </view>
  10. <view class="time-goods-list">
  11. <view class="item">
  12. <BeeAvatar :size="60" radius="10rpx" :src="common.seamingImgUrl('alo7i1qewcuj4305mrr3.png')"></BeeAvatar>
  13. <view class="info">
  14. <view class="name"> 蜜雪冰城 </view>
  15. <view class="op-desc"> 【2人份】蜜雪冰城 </view>
  16. <view class="price-wrapper">
  17. <text class="now-price">¥18</text>
  18. <text class="old-price">¥30</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="item">
  23. <BeeAvatar :size="60" radius="10rpx" :src="common.seamingImgUrl('alo7i1qewcuj4305mrr3.png')"></BeeAvatar>
  24. <view class="info">
  25. <view class="name"> 麦当劳 </view>
  26. <view class="op-desc"> 【2人份】麦当劳 </view>
  27. <view class="price-wrapper">
  28. <text class="now-price">¥6</text>
  29. <text class="old-price">¥10</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {}
  38. </script>
  39. <style lang="less" scoped>
  40. .time-limited-seckill-container {
  41. padding: 32upx 26upx 20upx 26upx;
  42. box-sizing: border-box;
  43. background: linear-gradient(122deg,
  44. #fcdbdb 3%,
  45. rgba(255, 255, 255, 0.55),
  46. rgba(255, 255, 255, 0.55),
  47. rgba(255, 255, 255, 0.55),
  48. );
  49. border-radius: 20upx;
  50. .time-title-wrapper {
  51. display: flex;
  52. align-items: center;
  53. box-sizing: border-box;
  54. height: 40upx;
  55. .time-title {
  56. font-size: 32upx;
  57. font-weight: 500;
  58. color: #000;
  59. margin-right: 8upx;
  60. }
  61. .count-down {
  62. border-radius: 6upx;
  63. overflow: hidden;
  64. border: 1upx solid #fa5151;
  65. box-sizing: border-box;
  66. height: 40upx;
  67. text {
  68. display: inline-block;
  69. line-height: 40upx;
  70. position: relative;
  71. top: -4upx;
  72. &:nth-child(1) {
  73. color: #fff;
  74. font-size: 24upx;
  75. padding: 0 22upx 0 15upx;
  76. border-radius: 0 0 20upx 0;
  77. border-right: none;
  78. background: linear-gradient(289deg, #fa5151 13%, #ff3484 99%);
  79. }
  80. &:nth-child(2) {
  81. color: #ff3484;
  82. font-size: 24upx;
  83. padding: 0 22upx 0 15upx;
  84. border-radius: 0 0 20upx 0;
  85. border-right: none;
  86. }
  87. }
  88. }
  89. }
  90. .time-goods-list {
  91. margin-top: 20upx;
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-between;
  95. .item {
  96. display: flex;
  97. align-items: center;
  98. .info {
  99. margin-left: 8upx;
  100. font-size: 24upx;
  101. .name {
  102. color: #3d3d3d;
  103. font-weight: 500;
  104. width: 200upx;
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. white-space: nowrap;
  108. }
  109. .op-desc {
  110. color: #999999;
  111. width: 200upx;
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. white-space: nowrap;
  115. }
  116. .price-wrapper {
  117. .now-price {
  118. color: #fa5151;
  119. }
  120. .old-price {
  121. font-size: 24upx;
  122. color: #999;
  123. text-decoration: line-through;
  124. margin-left: 6upx;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }
  131. </style>