CityOfXishan.vue 851 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <IframeWrap
  3. class="city-of-xishan"
  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: 2,
  20. })
  21. const url = computed(() => {
  22. let temp = `http://app.4dage.com/projects/wxcs/pc/web/index.html?platform=h5&name=${store.state.userInfo.userName}`
  23. if (route.query.scene !== undefined) {
  24. temp += `&scene=${route.query.scene}`
  25. }
  26. return temp
  27. })
  28. </script>
  29. <style lang="less" scoped>
  30. .city-of-xishan{
  31. }
  32. </style>