home.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <!-- 公共组件 -->
  3. <div class="info">
  4. <v-head :title="'TopUp'" :show_more="true" :show_help="true" :back_url="'/'"></v-head>
  5. <currency-list style="height: calc(100% - 48px);" @selectCurrency="selectCurrency" :page="'top-up'"></currency-list>
  6. </div>
  7. </template>
  8. <script setup>
  9. import VHead from '@/view/popup/components/head.vue'
  10. import CurrencyList from "@/view/components/currency-list.vue";
  11. import { inject, onMounted } from 'vue'
  12. import router from "@/router/popup.js";
  13. import Report from "@/log-center/log";
  14. let top_up_info = inject('top_up_info')
  15. function selectCurrency(_params) {
  16. top_up_info.token = _params.currencyName || ''
  17. top_up_info.token_chain = _params.tokenChain
  18. // top_up_info.token_chain = 'BNB Smart Chain (BEP20)'
  19. top_up_info.token_symbol = _params.tokenSymbol || ''
  20. top_up_info.currency_code = _params.currencyCode
  21. top_up_info.icon_token = _params.iconPath || ''
  22. top_up_info.icon_net = require('@/assets/svg/icon-BNB.svg')
  23. router.push({ path: '/top-up/info'});
  24. }
  25. onMounted(() => {
  26. Report.reportLog({
  27. pageSource: Report.pageSource.denetTopupSelector,
  28. businessType: Report.businessType.pageView,
  29. });
  30. })
  31. </script>
  32. <style lang='scss' scoped>
  33. .info {
  34. height: 100%;
  35. overflow: hidden;
  36. }
  37. </style>