CharityHall.vue 748 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <IframeWrap
  3. class="charity-hall"
  4. :url="url"
  5. :need-back-btn="false"
  6. @back="onClickBack"
  7. />
  8. </template>
  9. <script setup>
  10. import { ref, computed, watch, onMounted, inject } from "vue"
  11. import { useRoute, useRouter } from "vue-router"
  12. import { useStore } from "vuex"
  13. import IframeWrap from '@/components/IframeWrap.vue'
  14. const route = useRoute()
  15. const router = useRouter()
  16. const store = useStore()
  17. const $env = inject('$env')
  18. // 运营埋点
  19. store.dispatch('recordPageVisitIfNeeded', {
  20. pageId: 5,
  21. })
  22. const url = ref(`${$env.VUE_APP_DEPLOY_ORIGIN}/pc/index.html?platform=h5&name=${store.state.userInfo.userName}&scene=1`)
  23. </script>
  24. <style lang="less" scoped>
  25. .charity-hall{
  26. }
  27. </style>