messageList.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view>
  3. <view class="box" v-for="item, index in 1" :key="index">
  4. <view class="time">2025-09-11 12:05</view>
  5. <view class="desc">恭喜你,成功下单某某,赠送您50优惠券,可在某某查收。</view>
  6. <view class="conpon_box">
  7. <view class="conpon_box_left">
  8. <view class="amount">
  9. <text>¥</text>50
  10. </view>
  11. <view class="conpon_box_left_cont">
  12. <view class="type">
  13. <trans _t="运费券" />
  14. </view>
  15. <view class="status">满100可用</view>
  16. </view>
  17. </view>
  18. <view class="conpon_box_right">
  19. <view class="conpon_box_right_box">
  20. <view>
  21. <trans _t="领"></trans>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup>
  30. const props = defineProps({
  31. list: {
  32. type: Array,
  33. default: () => []
  34. }
  35. })
  36. </script>
  37. <style lang="less" scoped>
  38. @import url('@/style.less');
  39. .circle(@size, @bg) {
  40. .flex_center();
  41. width: @size;
  42. height: @size;
  43. background: @bg;
  44. border-radius: 50%;
  45. }
  46. .box {
  47. margin: 0 auto;
  48. padding-bottom: 48rpx;
  49. .time {
  50. .size(24rpx);
  51. text-align: center;
  52. color: var(--text-02);
  53. }
  54. .desc {
  55. width: 100%;
  56. padding: 26rpx 34rpx;
  57. margin: 12rpx 0 16rpx 0;
  58. border-radius: 20rpx;
  59. background-color: var(--bor-color);
  60. box-sizing: border-box;
  61. .size(24rpx);
  62. color: var(--text);
  63. line-height: 44rpx;
  64. }
  65. .conpon_box {
  66. display: flex;
  67. width: 100%;
  68. border-radius: 20rpx;
  69. background: linear-gradient(180deg, #E6734C 0%, #EB3A68 100%);
  70. padding: 20rpx;
  71. box-sizing: border-box;
  72. &_left {
  73. display: flex;
  74. flex: 1;
  75. height: 200rpx;
  76. background: url('@/static/user/conpon_bg.png');
  77. background-size: 100% 100%;
  78. box-sizing: border-box;
  79. .amount {
  80. .size(96rpx);
  81. font-weight: bold;
  82. color: var(--red);
  83. line-height: 200rpx;
  84. margin-left: 40rpx;
  85. text {
  86. .size(28rpx);
  87. margin-right: 8rpx
  88. }
  89. }
  90. &_cont {
  91. .hor(space-between);
  92. flex-direction: column;
  93. padding: 30rpx 0 48rpx 30rpx;
  94. color: #E94F5D;
  95. font-weight: 500;
  96. .type {
  97. .size(32rpx);
  98. }
  99. .status {
  100. .size(28rpx);
  101. }
  102. }
  103. }
  104. &_right {
  105. .circle(200rpx, transparent);
  106. &_box {
  107. .circle(140rpx, #F8EDC9);
  108. view {
  109. .circle(120rpx, linear-gradient(180deg, #F5DFB1 0%, #E39355 100%));
  110. border: 0.5px solid #CC9245;
  111. box-sizing: border-box;
  112. text {
  113. .size(60rpx);
  114. font-weight: bold;
  115. background: linear-gradient(180deg, #E85B57 0%, #E94F5D 100%);
  116. -webkit-background-clip: text;
  117. -webkit-text-fill-color: transparent;
  118. background-clip: text;
  119. text-fill-color: transparent;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. </style>