| | |
| | | _getContractBySymbolType |
| | | } from "@/service/etf.api"; |
| | | import { SET_CURRENCY } from "@/store/const.store"; |
| | | import { _getassets } from "@/service/user.api.js"; |
| | | import { _getassets,_customer } from "@/service/user.api.js"; |
| | | import { _getAllWallet } from '@/service/fund.api'; |
| | | import { HOST_URL } from '@/config'; |
| | | |
| | |
| | | const { t } = useI18n() |
| | | const activeNames = ref(['1']) |
| | | const { dispatch } = useStore(); |
| | | const customer_service_url = ref(null) |
| | | |
| | | const tabList = [ |
| | | { key: 1, name: t('充值'), icon: new URL('@/assets/imgs/assets/chonbi.png', import.meta.url), path: '/cryptos/recharge/rechargeList?isForeign=true' }, |
| | |
| | | getContractBySymbolType() |
| | | }) |
| | | } |
| | | |
| | | const getcustomer = () => { |
| | | _customer().then((data) => { |
| | | customer_service_url.value = data.customer_service_url |
| | | console.log(customer_service_url); |
| | | }).catch(error => { |
| | | console.error('Error fetching data:', error); |
| | | }); |
| | | }; |
| | | // 跳转页面 |
| | | const toPage = (path) => { |
| | | if(path=='/cryptos/recharge/rechargeList?isForeign=true'){ |
| | | window.open(customer_service_url.value) |
| | | return |
| | | } |
| | | if (!path) return |
| | | router.push(path) |
| | | } |
| | |
| | | getList() |
| | | getassets() |
| | | getCurrency() |
| | | getcustomer() |
| | | getContractBySymbolType() |
| | | </script> |
| | | |