winRecordPopup.vue 2.9 KB

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