<template>
  <IframeWrap
    class="city-of-xishan"
    :url="url"
    :need-back-btn="false"
    @back="onClickBack"
  />
</template>

<script setup>
import { ref, computed, watch, onMounted } from "vue"
import { useRoute, useRouter } from "vue-router"
import { useStore } from "vuex"
import IframeWrap from '@/components/IframeWrap.vue'

const route = useRoute()
const router = useRouter()
const store = useStore()

// 运营埋点
store.dispatch('recordPageVisitIfNeeded', {
  pageId: 2,
})

const url = computed(() => {
  let temp = `http://app.4dage.com/projects/wxcs/pc/web/index.html?platform=h5&name=${store.state.userInfo.userName}`
  if (route.query.scene !== undefined) {
    temp += `&scene=${route.query.scene}`
  }
  return temp
})

</script>

<style lang="less" scoped>
.city-of-xishan{

}
</style>