index.vue 765 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div class="home_content" :class="{ popup_content: state.popup }">
  3. <router-view></router-view>
  4. </div>
  5. </template>
  6. <script setup>
  7. import { reactive, onMounted, provide, watch } from 'vue'
  8. import { setStorage, getStorage } from '@/uilts/help'
  9. let withdraw_info = reactive(getStorage('withdraw_info') || {})
  10. watch(withdraw_info, (newVal) => {
  11. setStorage('withdraw_info',newVal)
  12. })
  13. provide('withdraw_info', withdraw_info)
  14. let state = reactive({
  15. popup: true
  16. })
  17. onMounted(() => {
  18. if (window.location.href.indexOf('home.html') > 0) {
  19. state.popup = false
  20. }
  21. })
  22. </script>
  23. <style>
  24. .home_content {
  25. width: 100%;
  26. height: 100%;
  27. }
  28. .popup_content {
  29. width: 375px;
  30. height: 600px;
  31. box-sizing: border-box;
  32. overflow-y: auto;
  33. }
  34. </style>