return-notice.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <!-- 添加退回提示区域 -->
  3. <view class="return-notice" @click="handleReturn">
  4. <view class="notice-content">
  5. <view class="title-row">
  6. <text class="title">退回不通过书籍</text>
  7. <text class="tag">首次免费退</text>
  8. </view>
  9. <view class="countdown">
  10. 您需要在
  11. <u-count-down class="time" :timestamp="orderInfo.restTime" separator="zh" separator-size="28" separator-color="#FF0000" color="#FF0000" bg-color="transparent"></u-count-down>
  12. 内处理
  13. </view>
  14. </view>
  15. <u-icon name="arrow-right" size="28" color="#999"></u-icon>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. props: {
  21. orderInfo: {
  22. type: Object,
  23. default: {}
  24. }
  25. },
  26. methods: {
  27. handleReturn() {
  28. this.$emit('close')
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. // 添加新的样式
  35. .return-notice {
  36. margin: 30rpx;
  37. padding: 30rpx;
  38. display: flex;
  39. justify-content: space-between;
  40. align-items: center;
  41. background: #FFF4F4;
  42. border-radius: 10rpx;
  43. border: 2rpx solid #FF0000;
  44. .notice-content {
  45. flex: 1;
  46. .title-row {
  47. display: flex;
  48. align-items: center;
  49. margin-bottom: 12rpx;
  50. .title {
  51. font-size: 32rpx;
  52. font-weight: 500;
  53. color: #333;
  54. }
  55. .tag {
  56. margin-left: 12rpx;
  57. padding: 4rpx 12rpx;
  58. background: #FF4B4B;
  59. color: #fff;
  60. font-size: 24rpx;
  61. border-radius: 4rpx;
  62. }
  63. }
  64. .countdown {
  65. font-size: 28rpx;
  66. color: #666;
  67. .time {
  68. color: #FF4B4B;
  69. }
  70. }
  71. }
  72. }
  73. </style>