SquareView.vue 718 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <IframeWrap
  3. class="square-view"
  4. :url="url"
  5. :need-back-btn="false"
  6. @back="onClickBack"
  7. />
  8. </template>
  9. <script setup>
  10. import { ref, computed, watch, onMounted } 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. // 运营埋点
  18. store.dispatch('recordPageVisitIfNeeded', {
  19. pageId: 3,
  20. })
  21. const url = ref(`http://app.4dage.com/projects/wxcs/pc/web/index.html?platform=h5&name=${store.state.userInfo.userName}&scene=2`)
  22. </script>
  23. <style lang="less" scoped>
  24. .square-view{
  25. }
  26. </style>