1
jhzh
2025-09-20 5d1ae078a9dfab807704b8187ac68f2b4ff52fa2
src/views/my/assets.vue
@@ -99,7 +99,7 @@
    _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';
@@ -107,6 +107,7 @@
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' },
@@ -131,9 +132,20 @@
        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)
}
@@ -178,6 +190,7 @@
getList()
getassets()
getCurrency()
getcustomer()
getContractBySymbolType()
</script>