spendAndSaveCoupon.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <script lang="ts" setup>
  2. </script>
  3. <template>
  4. <view class="spend-and-save-coupon">
  5. <view class="coupon-content">
  6. <view class="coupon-amount">
  7. <view class="coupon-amount-text">
  8. 50
  9. </view>
  10. <view class="coupon-amount-icon">
  11. </view>
  12. </view>
  13. <view class="coupon-desc">
  14. 满699元可用
  15. </view>
  16. </view>
  17. <view class="coupon-btn">
  18. 去发券
  19. </view>
  20. </view>
  21. </template>
  22. <style lang="scss" scoped>
  23. .spend-and-save-coupon {
  24. width: 210rpx;
  25. height: 205rpx;
  26. background: url('@img/index/coupon1.png') no-repeat right top;
  27. background-size: cover;
  28. position: relative;
  29. .coupon-content {
  30. position: absolute;
  31. top: 35%;
  32. left: 51%;
  33. transform: translate(-50%, -50%);
  34. width: 162rpx;
  35. height: 158rpx;
  36. display: flex;
  37. flex-direction: column;
  38. justify-content: center;
  39. align-items: center;
  40. gap: 27rpx;
  41. .coupon-amount {
  42. position: relative;
  43. .coupon-amount-text {
  44. font-weight: 500;
  45. font-size: 66rpx;
  46. color: #ff4f3b;
  47. }
  48. .coupon-amount-icon {
  49. position: absolute;
  50. width: 24rpx;
  51. height: 24rpx;
  52. background-color: #ffffff;
  53. border-radius: 50%;
  54. bottom: 0;
  55. right: 0;
  56. transform: translate(55%, -20%);
  57. font-weight: 500;
  58. font-size: 20rpx;
  59. color: #ff1a00;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. }
  64. }
  65. .coupon-desc {
  66. font-weight: 400;
  67. font-size: 22rpx;
  68. color: #ff1a00;
  69. }
  70. }
  71. .coupon-btn {
  72. position: absolute;
  73. font-weight: 500;
  74. font-size: 22rpx;
  75. color: #f26e5f;
  76. bottom: 2rpx;
  77. left: 50%;
  78. transform: translate(-54%, -55%);
  79. }
  80. }
  81. </style>