| | |
| | | import { useRouter } from 'vue-router'; |
| | | import ListQuatation from "@/components/Transform/list-quotation/index.vue"; |
| | | import { _getHomeList } from '@/service/cryptos.api' |
| | | import { _getNewsList1, _getPopupNews } from '@/service/user.api' |
| | | import { _getNewsList1, _getPopupNews,_customer } from '@/service/user.api' |
| | | import { useStore } from "vuex"; |
| | | import { TIME_OUT } from "@/config"; |
| | | import { useUserStore } from '@/store/user'; |
| | |
| | | if(!catchSymbol){ |
| | | setStorage('symbol', 'btcusdt'); |
| | | } |
| | | |
| | | const userStore = useUserStore() |
| | | const { t } = useI18n() |
| | | const router = useRouter() |
| | | const store = useStore(); |
| | | |
| | | const customer_service_url = ref(null) |
| | | const tabbers = [ |
| | | // { key: 1, name: t('跟单'), icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url) }, |
| | | // { key: 3, name: `C2C ${t('交易')}`, icon: new URL('@/assets/imgs/home/home_3.png', import.meta.url) }, |
| | |
| | | _getNewsList1({ |
| | | language: useI18n().locale.value, |
| | | }).then(res => { |
| | | getcustomer() |
| | | announceList.value = res |
| | | }) |
| | | |
| | | // onMounted(() => { |
| | | // getcustomer() |
| | | // }) |
| | | 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 toAnnounceDetail = (announceId) => { |
| | | if (announceId) { |
| | |
| | | |
| | | // 跳转页面 |
| | | const toPage = (path) => { |
| | | if(path=='/cryptos/recharge/rechargeList?isForeign=true'){ |
| | | window.open(customer_service_url.value) |
| | | return |
| | | } |
| | | if (!path) return |
| | | router.push(path) |
| | | } |