transactions.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <!-- 公共组件 -->
  3. <div class="info">
  4. <v-head :title="'Transactions'" :show_more="false" @onBack="clickBack"></v-head>
  5. <popup-transactions style="height: calc(100% - 48px);"></popup-transactions>
  6. </div>
  7. </template>
  8. <script setup>
  9. import VHead from '@/components/v-head.vue';
  10. import PopupTransactions from "@/components/popup-transactions";
  11. import messageCenter from "@/uilts/messageCenter";
  12. import MESSAGE_ENUM from "@/uilts/messageCenter/messageEnum";
  13. import { ref, onMounted } from 'vue';
  14. import { useRouter } from "vue-router";
  15. let back_url = ref('/');
  16. let router = useRouter();
  17. onMounted(() => {
  18. let { params = '{}' } = router.currentRoute.value.query;
  19. let { backUrl = '/' } = JSON.parse(params);
  20. if (backUrl == 'back') {
  21. back_url.value = '';
  22. }
  23. })
  24. const clickBack = () => {
  25. messageCenter.send({
  26. actionType: MESSAGE_ENUM.IFRAME_SHOW_FOOTER_MENU,
  27. data: {
  28. showMenu: true,
  29. }
  30. })
  31. }
  32. </script>
  33. <style lang='scss' scoped>
  34. .info {
  35. height: 100%;
  36. overflow: hidden;
  37. }
  38. </style>