1
jhzh
2025-10-22 7d3ca5dd947ad70aaca52c52051f85fcbb7b340d
src/views/my/assets.vue
@@ -23,7 +23,7 @@
        <div class="tabbers flex justify-between mt-20 pl-1 pr-1">
            <div class="item" v-for="item in tabList" :key="item.key" @click="toPage(item.path)">
                <img :src="item.icon" alt="">
                <img style="width: 100px;" :src="item.icon" alt="">
                <div class="mt-3 text-center">{{ item.name }}</div>
            </div>
        </div>
@@ -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,10 +107,11 @@
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' },
    { key: 2, name: t('提现'), icon: new URL('@/assets/imgs/assets/tibi.png', import.meta.url), path: '/exchange/withdraw-usdt' },
    { key: 2, name: t('提现'), icon: new URL('@/assets/imgs/assets/tibi.png', import.meta.url), path: '/cryptos/Withdraw/withdrawPage' },
    { key: 3, name: t('划转'), icon: new URL('@/assets/imgs/assets/huazhuan.png', import.meta.url), path: '/my/transfer' },
    { key: 4, name: t('账单'), icon: new URL('@/assets/imgs/assets/zd.png', import.meta.url), path: '/cryptos/accountChange' },
]
@@ -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>