<template>
  <div class="purchaseContractBox">
    <iframe v-if="iframeSrc" :src="iframeSrc"></iframe>
  </div>
</template>

<script setup lang="ts">
const iframeSrc = ref<string>('')
const _routeMap = JSON.parse(localStorage.getItem('_routeMap'))
if (_routeMap && _routeMap['processCenter']) {
  iframeSrc.value = _routeMap['processCenter']
}
</script>

<style lang="scss" scoped>
.purchaseContractBox {
  margin-top: 20px;
  height: calc(100% - 20px);
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  text-align: center;
  > iframe {
    width: 100%;
    height: 100%;
    border: 0px;
  }
}
</style>
