winRecordPopup.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="winRecordPopup">
  3. <wd-popup
  4. v-model="props.show"
  5. custom-style="height: 880rpx;width:686rpx;background: transparent;"
  6. @close="handleClose"
  7. >
  8. <view class="content">
  9. <view style="padding-top: 128rpx;">
  10. <view class="head-notice">
  11. <image class="notice-img" src="https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/expox-icon.png" mode=""></image>
  12. 请在 24 小时内确认收款!超时将失效需重新提交审核!
  13. </view>
  14. </view>
  15. <scroll-view class="list" scroll-y @scrolltolower="scrolltolower">
  16. <view>
  17. <view v-for="item in list" :key="item.id" class="record">
  18. <text>活动力度:{{ item.discountLevel }}</text>
  19. <view class="flex-center-btw bot">
  20. <text>奖励金额:{{ item.paymentAmount }}元</text>
  21. <view
  22. class="btn"
  23. :class="isWithDraw(item.processStatus) ? '' : 'static'"
  24. @click="onPayment(item, '2')"
  25. >提现</view
  26. >
  27. </view>
  28. </view>
  29. </view>
  30. </scroll-view>
  31. </view>
  32. <image
  33. class="closed"
  34. @click="handleClose"
  35. :src="imgObj.close"
  36. mode="scaleToFill"
  37. />
  38. </wd-popup>
  39. </view>
  40. </template>
  41. <script lang="ts" setup>
  42. import { imgObj } from "../utils/source";
  43. // import { ref } from "vue";
  44. import { useDraw } from "@/hooks/useDraw";
  45. const props = defineProps({
  46. show: {
  47. type: Boolean,
  48. default: false,
  49. },
  50. list: {
  51. type: Array<any>,
  52. default: () => [],
  53. },
  54. });
  55. const emit = defineEmits(["update:show", "scrolltolower"]);
  56. const { handleClose, onPayment, isWithDraw } = useDraw(props, emit);
  57. const scrolltolower = () => {
  58. emit("scrolltolower");
  59. };
  60. </script>
  61. <style lang="scss" scoped>
  62. .head-notice {
  63. background: rgba(255, 59, 29, .1);
  64. padding: 16rpx;
  65. color: #FF3B1D;
  66. font-size: 24rpx;
  67. width: 85%;
  68. margin: 0 auto;
  69. .notice-img {
  70. width: 32rpx;
  71. height: 32rpx;
  72. vertical-align: sub;
  73. }
  74. }
  75. .winRecordPopup {
  76. .content {
  77. height: 798rpx;
  78. width: 686rpx;
  79. background: url("https://qiuyu-daodian.oss-cn-beijing.aliyuncs.com/images/winRecord.png")
  80. no-repeat center;
  81. background-size: 100% 100%;
  82. box-sizing: border-box;
  83. // overflow: hidden;
  84. .list {
  85. font-size: 28rpx;
  86. color: #666666;
  87. // overflow-y: scroll;
  88. height: 555rpx;
  89. box-sizing: border-box;
  90. width: 85%;
  91. margin: auto;
  92. padding: 0 0 95rpx;
  93. .record {
  94. // text-align: center;
  95. // text-align: left;
  96. padding: 32rpx 0;
  97. border-bottom: 1rpx solid rgba(191, 200, 219, 0.5);
  98. // display: flex;
  99. // justify-content: space-between;
  100. // align-items: flex-end;
  101. > text {
  102. line-height: 30rpx;
  103. &:last-of-type {
  104. // margin-left: 44rpx;
  105. }
  106. }
  107. &:last-of-type {
  108. border: none;
  109. }
  110. }
  111. }
  112. }
  113. .closed {
  114. width: 56rpx;
  115. height: 56rpx;
  116. margin: auto;
  117. position: absolute;
  118. left: 0;
  119. right: 0;
  120. bottom: 0;
  121. margin: auto;
  122. }
  123. .btn {
  124. @include btnStyle(108rpx, 48rpx);
  125. font-weight: normal;
  126. font-size: 22rpx;
  127. &.static {
  128. background: #d1d1d6;
  129. }
  130. }
  131. .bot {
  132. height: 48rpx;
  133. }
  134. }
  135. </style>