finishedActivity.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="finished-activity-container">
  3. <purchaserActivityList style="width: 682rpx;" ref="purchaserActivityListRef" :activityType="0">
  4. <view class="no-data-box">
  5. <view class="no-data">
  6. <image src="https://hzstatic.hzinsights.com/cygx/icon/activity-no-data.png" ></image>
  7. <text>暂无对应活动</text>
  8. </view>
  9. </view>
  10. </purchaserActivityList>
  11. <Loading />
  12. </view>
  13. </template>
  14. <script>
  15. import purchaserActivityList from "@/components/activity/purchaserActivityList.vue"
  16. import { Throttle } from "@/config/util.js";
  17. import { activity } from "@/config/api";
  18. export default {
  19. components:{purchaserActivityList},
  20. data() {
  21. return {
  22. }
  23. },
  24. methods: {
  25. },
  26. onLoad() {
  27. this.$refs.purchaserActivityListRef.reloadActivityList();
  28. },
  29. onReachBottom: Throttle(function () {
  30. if (this.$refs.purchaserActivityListRef.page_no >= this.$refs.purchaserActivityListRef.pages) return;
  31. this.$refs.purchaserActivityListRef.loadActivityMore();
  32. }),
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .finished-activity-container{
  37. background-color: $uni-bg-color;
  38. // height: 100vh;
  39. min-height: 100vh;
  40. padding: 20rpx 34rpx 36rpx;
  41. .no-data-box{
  42. width: 682rpx;
  43. height: calc(100vh - 56rpx);
  44. border-radius: 16rpx;
  45. background-color: white;
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. justify-content: center;
  50. .no-data{
  51. display: flex;
  52. flex-direction: column;
  53. align-items: center;
  54. justify-content: center;
  55. margin-bottom: 40rpx;
  56. image{
  57. width: 412rpx;
  58. height: 380rpx;
  59. margin-bottom: 40rpx;
  60. }
  61. text{
  62. font-size: 24rpx;
  63. line-height: 34rpx;
  64. color: #999999;
  65. }
  66. }
  67. }
  68. }
  69. </style>