transactions.vue 814 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <!-- 公共组件 -->
  3. <div class="info">
  4. <v-head :title="'Transactions'" :show_more="false" :back_url="back_url" @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 '@/view/popup/components/head.vue'
  10. import PopupTransactions from "@/view/components/popup-transactions";
  11. import {ref, onMounted} from 'vue';
  12. import router from "@/router/popup.js";
  13. let back_url = ref('/');
  14. onMounted(() => {
  15. let {params = '{}'} = router.currentRoute.value.query;
  16. let {backUrl = '/'} = JSON.parse(params);
  17. if(backUrl == 'back') {
  18. back_url.value = '';
  19. }
  20. })
  21. </script>
  22. <style lang='scss' scoped>
  23. .info{
  24. height: 100%;
  25. overflow: hidden;
  26. }
  27. </style>