index.vue 644 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div class="purchaseContractBox">
  3. <iframe v-if="iframeSrc" :src="iframeSrc"></iframe>
  4. </div>
  5. </template>
  6. <script setup lang="ts">
  7. const iframeSrc = ref<string>('')
  8. const _routeMap = JSON.parse(localStorage.getItem('_routeMap'))
  9. if (_routeMap && _routeMap['processCenter']) {
  10. iframeSrc.value = _routeMap['processCenter']
  11. }
  12. </script>
  13. <style lang="scss" scoped>
  14. .purchaseContractBox {
  15. margin-top: 20px;
  16. height: calc(100% - 20px);
  17. background-color: #fff;
  18. border-radius: 20px;
  19. padding: 20px;
  20. position: relative;
  21. text-align: center;
  22. > iframe {
  23. width: 100%;
  24. height: 100%;
  25. border: 0px;
  26. }
  27. }
  28. </style>