un.vue 1013 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view>
  3. <image :src="resource.red_envelope_rain_bg" web class="red-bg" mode="aspectFill"/>
  4. <view class="bottom-fixed flex-column-align-center" style="padding-bottom: 100rpx">
  5. <view style="padding-bottom: 270rpx">
  6. <image :src="resource.red_rule_time" style="width: 258rpx; height: 123rpx"/>
  7. </view>
  8. <image :src="resource.refresh" style="width: 90rpx; height: 90rpx" @click="refresh"/>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import resource from '@/utils/resource'
  14. import { throttle } from '@/utils'
  15. export default {
  16. data() {
  17. return {
  18. resource
  19. }
  20. },
  21. methods: {
  22. refresh() {
  23. throttle.call(this.realRefresh)
  24. },
  25. realRefresh() {
  26. this.$emit('refresh')
  27. }
  28. }
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. .red-bg {
  33. position: fixed;
  34. left: 0;
  35. right: 0;
  36. top: 0;
  37. bottom: 0;
  38. width: 100%;
  39. height: 101vh;
  40. }
  41. </style>