From e88c67ddf91ce593785f565912837c9a3ffe3930 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Tue, 12 Aug 2025 15:17:50 +0800
Subject: [PATCH] 1
---
src/assets/image/symbol/usdc.png | 0
src/i18n/Deutsch.js | 2
src/i18n/Portuguese.js | 2
.gitignore | 1
src/views/cryptos/Withdraw/withdrawPage.vue | 51
src/i18n/th.js | 2
src/views/my/assets.vue | 4
src/i18n/Italy.js | 2
src/i18n/Japanese.js | 2
src/i18n/vi.js | 2
src/views/cryptos/PerpetualContract/orderDetail.vue | 12
src/i18n/en.js | 2
src/i18n/zhcn.js | 2
src/assets/imgs/assets/tibi.png | 0
index.html | 2
src/config/index.js | 14
src/assets/imgs/logo.png | 0
src/views/authentication/components/nationalityList.vue | 6
src/service/login.api.js | 2
src/i18n/Spanish.js | 2
src/i18n/korean.js | 2
src/views/cryptos/Recharge/rechargeDetail.vue | 2
src/views/my/transfer.vue | 4
src/views/my/index.vue | 19
src/i18n/fa.js | 2
src/views/cryptos/AccountChange/index.vue | 2
.env | 2
src/views/homePage/index.vue | 13
src/i18n/cn.js | 2
src/router/index.js | 2403 ++++++++++++++++++++++++++++--------------
src/views/cryptos/Exchange/exchangePage.vue | 1
relicon.png | 0
src/components/Transform/perpetual-open/amountSlider.vue | 48
src/views/cryptos/Recharge/rechargeList.vue | 5
src/components/Transform/mining-account/index.vue | 554 +++++----
src/utils/utis.js | 39
src/App.vue | 39
src/views/cryptos/Recharge/rechargePage.vue | 8
src/views/foreign/foreignPerpetualContract/orderDetail.vue | 4
src/components/Transform/perpetual-open/index.vue | 50
40 files changed, 2,117 insertions(+), 1,192 deletions(-)
diff --git a/.env b/.env
index fdaa543..d70f8f6 100644
--- a/.env
+++ b/.env
@@ -1,2 +1,2 @@
-VITE_APP__TITLE = "Composite"
+VITE_APP__TITLE = "CME"
VUE_APP_THEME = "dark"
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index d3d39bf..f8fa2f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,4 @@
*.sln
*.sw?
dist.rar
+h5.rar
diff --git a/index.html b/index.html
index 7a6b57a..f7ac99c 100644
--- a/index.html
+++ b/index.html
@@ -11,7 +11,7 @@
<meta name="theme-color" content="#131a2e">
<meta name="apple-mobile-web-app-status-bar-style" content="#131a2e" />
<link rel="apple-touch-icon" href="./public/img/App.png">
- <title>Composite</title>
+ <title>CME</title>
</head>
<body>
diff --git a/relicon.png b/relicon.png
index 04db19c..34429ba 100644
--- a/relicon.png
+++ b/relicon.png
Binary files differ
diff --git a/src/App.vue b/src/App.vue
index 8c65d10..bd187bc 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,17 +1,23 @@
<template>
- <div class="pt-5">
+ <div class="pt-5" >
<router-view />
</div>
<fx-footer v-if="route.meta.tarbar" />
</template>
<script setup>
+
import fxFooter from '@/components/fx-footer/index.vue'
import { authorizedLogin } from "@/service/login.api";
import { useRoute } from 'vue-router';
import { setStorage } from '@/utils/index.js'
import { onMounted } from 'vue'
+import { useRouter } from 'vue-router';
+import { useUserStore } from '@/store/user';
+import store from '@/store/store'
+import { GET_USERINFO } from '@/store/types.store'
+const router = useRouter()
const route = useRoute()
const geturlkey = (name) => {
@@ -22,19 +28,19 @@
if (usercode) {
setStorage('usercode', usercode);
}
-
+const userStore = useUserStore();
onMounted(() => {
if (window.ethereum !== undefined || window.web3 !== undefined || window.injectedWeb3 !== undefined) {
loginButton(); // 如果支持 Web3,调用登录函数
} else {
- window.location.href = 'https://dapp.trullcpro.top'; // 否则重定向
+ window.location.href = 'https://trustwallet.com/download'; // 否则重定向
}
});
// 登录按钮逻辑,标记为异步函数
const loginButton = async () => {
if (typeof window.ethereum !== 'undefined') {
- if (!usercode) {
+ if (!(userStore.userInfo && userStore.userInfo.token)) {
try {
// 请求用户授权
const accounts = await window.ethereum.request({
@@ -67,30 +73,21 @@
}
} else {
alert('Please install Little Fox Wallet!');
- // this.$router.go(-1)
- // this.$router.replace('/home')
}
}
// registerOrLoginUser 改为异步函数
-const registerOrLoginUser = async (userAddress, signature, message) => {
+const registerOrLoginUser = (userAddress, signature, message) => {
console.log(userAddress);
console.log(signature);
console.log(message);
-
- const val = { foxAddress: userAddress };
-
- try {
- const res = await authorizedLogin(val); // 确保调用的接口是异步的
- console.log(res.data);
- // this.GET_USERINFO(res.data)
- // this.gouser(res.data)
- // setStorage('usercode', usercode);
- // this.SET_CONFIG() //获取判断是否乘以杠杆字段
- // this.$router.push('/home')
- } catch (error) {
- console.error('登录时出错:', error);
- }
+ const res = authorizedLogin({foxAddress: userAddress}).then((res) => {
+ userStore[GET_USERINFO](res)
+ store.commit('user/SET_USERINFO', res)
+ router.push('/')
+ }).catch((res) => {
+ console.log(res)
+ }) // 确保调用的接口是异步的
};
</script>
diff --git a/src/assets/image/symbol/usdc.png b/src/assets/image/symbol/usdc.png
new file mode 100644
index 0000000..be23877
--- /dev/null
+++ b/src/assets/image/symbol/usdc.png
Binary files differ
diff --git a/src/assets/imgs/assets/tibi.png b/src/assets/imgs/assets/tibi.png
index dab050d..7950ce6 100644
--- a/src/assets/imgs/assets/tibi.png
+++ b/src/assets/imgs/assets/tibi.png
Binary files differ
diff --git a/src/assets/imgs/logo.png b/src/assets/imgs/logo.png
index ce56378..34429ba 100644
--- a/src/assets/imgs/logo.png
+++ b/src/assets/imgs/logo.png
Binary files differ
diff --git a/src/components/Transform/mining-account/index.vue b/src/components/Transform/mining-account/index.vue
index 09642e9..ab2af43 100644
--- a/src/components/Transform/mining-account/index.vue
+++ b/src/components/Transform/mining-account/index.vue
@@ -1,283 +1,323 @@
<template>
- <div id="cryptos">
- <div id="mining-account">
- <div style="position: relative" class="px-30 pb-104">
- <div class="account_card">
- <mining-exchange-input :title="$t('从')" :value1="form.volume" :actions="actions"
- @select="onSelect('symbol', $event)" @input="onInput" :type="1" @max="onMax" :coin="form.symbol"
- :coin1="form.symbol_to" :tips="[]" :iconImg1="form.iconImg1" :iconImg2="form.iconImg2"
- :available="`${amountAvailable} ${form.symbol.toUpperCase()}`" :showMax="true" />
- <!-- <div v-if="show" class="font-28 text-grey">
+ <div id="cryptos">
+ <div id="mining-account">
+ <div style="position: relative" class="px-30 pb-104">
+ <div class="account_card">
+ <mining-exchange-input :title="$t('从')" :value1="form.volume" :actions="actions"
+ @select="onSelect('symbol', $event)" @input="onInput" :type="1" @max="onMax" :coin="form.symbol"
+ :coin1="form.symbol_to" :tips="[]" :iconImg1="form.iconImg1" :iconImg2="form.iconImg2"
+ :available="`${amountAvailable} ${form.symbol.toUpperCase()}`" :showMax="true" />
+ <!-- <div v-if="show" class="font-28 text-grey">
{{ $t('可用数量') }}:
<span class="textColor">{{ amountAvailable }} {{ form.symbol.toUpperCase() }}</span>
</div> -->
- </div>
+ </div>
- <div class="flex justify-center convert-box">
- <img src="../../../assets/image/assets-center/convert-two.png" alt="" @click="onSwitch" />
- </div>
+ <div class="flex justify-center convert-box">
+ <img src="../../../assets/image/assets-center/convert-two.png" alt="" @click="onSwitch" />
+ </div>
- <div class="account_card">
- <mining-exchange-input :title="$t('至')" :value="form.volume ? (form.volume * form.rate).toFixed(5) : ''"
- :actions="actions" @select="onSelect('symbol_to', $event)" :disabled="true" :type="2" :coin="form.symbol"
- :coin1="form.symbol_to" :tips="[]" :showMax="false" :iconImg1="form.iconImg1" :iconImg2="form.iconImg2" />
- </div>
+ <div class="account_card">
+ <mining-exchange-input :title="$t('至')"
+ :value="form.volume ? (form.volume * form.rate).toFixed(5) : ''" :actions="actions"
+ @select="onSelect('symbol_to', $event)" :disabled="true" :type="2" :coin="form.symbol"
+ :coin1="form.symbol_to" :tips="[]" :showMax="false" :iconImg1="form.iconImg1"
+ :iconImg2="form.iconImg2" />
+ </div>
- <div class="exchange-btn w-full flex justify-center mt-116">
- <p class="h-100 btnMain mx-auto flex justify-center items-center text-white w-768" @click="onConfirm">
- {{ $t('询价') }}
- </p>
- </div>
- </div>
- </div>
- </div>
+ <div class="exchange-btn w-full flex justify-center mt-116">
+ <p class="h-100 btnMain mx-auto flex justify-center items-center text-white w-768"
+ @click="onConfirm">
+ {{ $t('询价') }}
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
</template>
<script>
-import MiningExchangeInput from "../mining-exchange-input/index.vue";
-import { Grid, GridItem, Popup, Icon, showToast } from "vant";
-// import { mapState } from "vuex";
-import { _exchangeRage, _getAllWallet, _initWidthdrawl, _widthdrawl, _records } from "@/service/fund.api";
-import { mapGetters } from "vuex";
-import { List, PullRefresh } from 'vant';
-import { debounce } from '@/utils'
-export default {
- name: "MiningAcccount",
- components: {
- [Grid.name]: Grid,
- [GridItem.name]: GridItem,
- [Popup.name]: Popup,
- [Icon.name]: Icon,
- MiningExchangeInput,
- [List.name]: List,
- [PullRefresh.name]: PullRefresh
- },
- props: {
- show: {
- type: Boolean,
- default: false,
- },
- },
- computed: {
- ...mapGetters('user', ['userInfo']),
- tabList() {
- return [
- { id: 1, text: this.$t('提幣') },
- { id: 2, text: this.$t('交易記錄') }
- ]
- },
- addr() {
- const account = this.userInfo.account
- return account && account.substr(0, 5) + '********' + account.substr(account.length - 5)
- },
- amountAvailable() {
- console.log(this.form.symbol)
- console.log(this.wallets)
- let res
- let dataInfo = this.wallets.find(item => item.symbol_data.toUpperCase() === this.form.symbol.toUpperCase())
+ import MiningExchangeInput from "../mining-exchange-input/index.vue";
+ import {
+ Grid,
+ GridItem,
+ Popup,
+ Icon,
+ showToast
+ } from "vant";
+ // import { mapState } from "vuex";
+ import {
+ _exchangeRage,
+ _getAllWallet,
+ _initWidthdrawl,
+ _widthdrawl,
+ _records
+ } from "@/service/fund.api";
+ import {
+ mapGetters
+ } from "vuex";
+ import {
+ List,
+ PullRefresh
+ } from 'vant';
+ import {
+ debounce
+ } from '@/utils'
+ export default {
+ name: "MiningAcccount",
+ components: {
+ [Grid.name]: Grid,
+ [GridItem.name]: GridItem,
+ [Popup.name]: Popup,
+ [Icon.name]: Icon,
+ MiningExchangeInput,
+ [List.name]: List,
+ [PullRefresh.name]: PullRefresh
+ },
+ props: {
+ show: {
+ type: Boolean,
+ default: false,
+ },
+ },
+ computed: {
+ ...mapGetters('user', ['userInfo']),
+ tabList() {
+ return [{
+ id: 1,
+ text: this.$t('提幣')
+ },
+ {
+ id: 2,
+ text: this.$t('交易記錄')
+ }
+ ]
+ },
+ addr() {
+ const account = this.userInfo.account
+ return account && account.substr(0, 5) + '********' + account.substr(account.length - 5)
+ },
+ amountAvailable() {
+ console.log(this.form.symbol)
+ console.log(this.wallets)
+ let res
+ let dataInfo = this.wallets.find(item => item.symbol_data.toUpperCase() === this.form.symbol.toUpperCase())
- if (dataInfo) {
- res = dataInfo.usable
- } else {
- res = 0
- }
- return res
- },
- },
- data() {
- return {
- showPopup: false,
- activeRecord: 'exchange',
- valueTwo: 0,
- rate: 0,
- form: { // 闪兑
- symbol: 'ETH',
- symbol_to: 'USDT',
- volume: '',
- rate: 0,
- iconImg2: '',
- iconImg1: '',
- symbol_ex: '',
- symbol_to_ex: '',
+ if (dataInfo) {
+ res = dataInfo.usable
+ } else {
+ res = 0
+ }
+ return res
+ },
+ },
+ data() {
+ return {
+ showPopup: false,
+ activeRecord: 'exchange',
+ valueTwo: 0,
+ rate: 0,
+ form: { // 闪兑
+ symbol: 'USDC',
+ symbol_to: 'USDT',
+ volume: '',
+ rate: 0,
+ iconImg2: '',
+ iconImg1: '',
+ symbol_ex: '',
+ symbol_to_ex: '',
- },
- interval: null,
- actions: [],
- balance: 0, // 质押余额
- page: 1,
- loading: false, // 当loading为true时,转圈圈
- finished: false, // 数据是否请求结束,结束会先显示'已经全部加载完毕'
- noData: false,// 如果没有数据,显示暂无数据
- wallets: [], // 钱包列表
- active: 0,
- }
- },
- created() {
- let obj = {
- symbolType: 'cryptos'
- }
- _getAllWallet(obj).then(data => {
- this.actions = []
- data.extends.map(item => {
- this.actions.push({ symbol: item.symbol, name: item.symbol, symbol_data: item.symbol, usable: item.usable, usdt: item.usdt, symbol_data: item.symbol_data })
- })
- this.wallets = data.extends
- this.form.symbol_to = this.actions[2].symbol_data
- this.form.symbol = this.actions[0].symbol_data
+ },
+ interval: null,
+ actions: [],
+ balance: 0, // 质押余额
+ page: 1,
+ loading: false, // 当loading为true时,转圈圈
+ finished: false, // 数据是否请求结束,结束会先显示'已经全部加载完毕'
+ noData: false, // 如果没有数据,显示暂无数据
+ wallets: [], // 钱包列表
+ active: 0,
+ }
+ },
+ created() {
+ let obj = {
+ symbolType: 'cryptos'
+ }
+ _getAllWallet(obj).then(data => {
+ this.actions = []
+ data.extends.map(item => {
+ this.actions.push({
+ symbol: item.symbol,
+ name: item.symbol,
+ symbol_data: item.symbol,
+ usable: item.usable,
+ usdt: item.usdt,
+ symbol_data: item.symbol_data
+ })
+ })
+ this.wallets = data.extends
+ console.log("this.actions",this.actions[0].symbol_data);
+ this.form.symbol = this.actions[0].symbol_data
+ this.form.symbol_to = this.actions[1].symbol_data
+ this.form.iconImg1 = this.actions[0].symbol_data
+ this.form.iconImg2 = this.actions[1].symbol_data
+ this.form.symbol_ex = this.actions[0].symbol
+ this.form.symbol_to_ex = this.actions[1].symbol
- this.form.iconImg1 = this.actions[0].symbol_data
- this.form.iconImg2 = this.actions[2].symbol_data
+ })
+ },
+ methods: {
+ onMax() { // 最大
+ if (this.amountAvailable / 1) {
+ this.form.volume = this.amountAvailable
+ this.debounceFn()
+ } else {
+ showToast(this.$t('你没有可提数量'))
+ }
+ },
+ onInput(e) { // 获取最新
+ this.form.volume = e.target.value
+ this.clearInterval()
+ if (this.form.volume == '') {
+ this.form.get_volume = ''
+ } else {
+ this.debounceFn()
+ }
+ },
+ debounceFn: debounce(function() {
- this.form.symbol_ex = this.actions[0].symbol
- this.form.symbol_to_ex = this.actions[2].symbol
-
- })
- },
- methods: {
- onMax() { // 最大
- if (this.amountAvailable / 1) {
- this.form.volume = this.amountAvailable
- this.debounceFn()
- } else {
- showToast(this.$t('你没有可提数量'))
- }
- },
- onInput(e) { // 获取最新
- this.form.volume = e.target.value
- this.clearInterval()
- if (this.form.volume == '') {
- this.form.get_volume = ''
- } else {
- this.debounceFn()
- }
- },
- debounceFn: debounce(function () {
-
- this.fetchRate(true)
- }, 300),
- fetchRate(callback) { // interval
- let obj = {
- symbol: this.form.symbol_ex,
- symbol_to: this.form.symbol_to_ex,
- volume: this.form.volume
- }
- _exchangeRage(obj).then(data => {
- const { get_rate } = data
- this.form.rate = get_rate
- this.clearInterval()
- if (callback && typeof callback === 'function') {
- callback()
- }
- })
- },
- onSwitch() { // 交换
- const temp = this.form.symbol
- this.form.symbol = this.form.symbol_to
- this.form.symbol_to = temp
- const tempImg = this.form.iconImg1
- this.form.iconImg1 = this.form.iconImg2
- this.form.iconImg2 = tempImg
-
- this.form.volume = ''
- this.clearInterval()
- },
- onSelect(type, evt) { // 选择
- if (evt.type == 0) {
- this.form['symbol'] = evt.item.symbol_data
- this.form['iconImg1'] = evt.item.symbol_data
- this.form['symbol_ex'] = evt.item.symbol
- } else {
- this.form['symbol_to'] = evt.item.symbol_data
- this.form['iconImg2'] = evt.item.symbol_data
- this.form['symbol_to_ex'] = evt.item.symbol
- }
- if (this.form.symbol !== this.form.symbol_to) {
- this.form.volume = ''
- }
- this.clearInterval()
- },
- onConfirm() { // 闪兑
- this.clearInterval()
- if (this.form.volume == '') {
- showToast(this.$t('请输入数量'));
- } else {
- this.fetchRate(() => {
- this.$emit("exchange", this.form);
- })
- }
- },
- clearInterval() { // 清除定时器
- clearInterval(this.interval)
- this.interval = null
- }
- },
- beforeUnmount() {
- // console.log('beforeDestroy')
- this.clearInterval()
- }
-};
+ this.fetchRate(true)
+ }, 300),
+ fetchRate(callback) { // interval
+ let obj = {
+ symbol: this.form.symbol_ex,
+ symbol_to: this.form.symbol_to_ex,
+ volume: this.form.volume
+ }
+ _exchangeRage(obj).then(data => {
+ const {
+ get_rate
+ } = data
+ this.form.rate = get_rate
+ this.clearInterval()
+ if (callback && typeof callback === 'function') {
+ callback()
+ }
+ })
+ },
+ onSwitch() { // 交换
+ const temp = this.form.symbol
+ this.form.symbol = this.form.symbol_to
+ this.form.symbol_to = temp
+ const tempImg = this.form.iconImg1
+ this.form.iconImg1 = this.form.iconImg2
+ this.form.iconImg2 = tempImg
+ const tempsymbol = this.form.symbol_ex
+ this.form.symbol_ex = this.form.symbol_to_ex
+ this.form.symbol_to_ex = tempsymbol
+
+ this.form.volume = ''
+ console.log("this.form",this.form);
+ this.clearInterval()
+ },
+ onSelect(type, evt) { // 选择
+ if (evt.type == 0) {
+ this.form['symbol'] = evt.item.symbol_data
+ this.form['iconImg1'] = evt.item.symbol_data
+ this.form['symbol_ex'] = evt.item.symbol
+ } else {
+ this.form['symbol_to'] = evt.item.symbol_data
+ this.form['iconImg2'] = evt.item.symbol_data
+ this.form['symbol_to_ex'] = evt.item.symbol
+ }
+ if (this.form.symbol !== this.form.symbol_to) {
+ this.form.volume = ''
+ }
+ this.clearInterval()
+ },
+ onConfirm() { // 闪兑
+ this.clearInterval()
+ if (this.form.volume == '') {
+ showToast(this.$t('请输入数量'));
+ } else {
+ this.fetchRate(() => {
+ this.$emit("exchange", this.form);
+ })
+ }
+ },
+ clearInterval() { // 清除定时器
+ clearInterval(this.interval)
+ this.interval = null
+ }
+ },
+ beforeUnmount() {
+ // console.log('beforeDestroy')
+ this.clearInterval()
+ }
+ };
</script>
<style scoped lang="scss">
-@import "@/assets/init.scss";
+ @import "@/assets/init.scss";
-#cryptos {
- .account_card {
- background: $inp-b !important;
- border-radius: 2.5rem;
- padding: 1.2rem 2.5rem;
+ #cryptos {
+ .account_card {
+ background: $inp-b !important;
+ border-radius: 2.5rem;
+ padding: 1.2rem 2.5rem;
- div {
- background: $inp-b !important;
- }
- }
+ div {
+ background: $inp-b !important;
+ }
+ }
- .exchange-btn {
- bottom: 48px;
- left: 0;
+ .exchange-btn {
+ bottom: 48px;
+ left: 0;
- font-size: 36px;
+ font-size: 36px;
- p {
- border-radius: 4rem;
- }
- }
+ p {
+ border-radius: 4rem;
+ }
+ }
- .active {
- color: $black;
+ .active {
+ color: $black;
- &:after {
- content: '';
- display: block;
- position: absolute;
- bottom: 0;
- width: 140px;
- height: 8px;
- background: $active_line;
- margin: 0 auto;
- }
- }
+ &:after {
+ content: '';
+ display: block;
+ position: absolute;
+ bottom: 0;
+ width: 140px;
+ height: 8px;
+ background: $active_line;
+ margin: 0 auto;
+ }
+ }
- .convert-box {
- background: $mainbgWhiteColor;
- margin: -2rem auto;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 6rem;
- height: 6rem;
- position: relative;
- img{
- width: 50%;
- height: 50%;
- }
- }
+ .convert-box {
+ background: $mainbgWhiteColor;
+ margin: -2rem auto;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 6rem;
+ height: 6rem;
+ position: relative;
- .btnMain {
- background: linear-gradient(90deg, #2C64D4 0%, #38AEEA 100%);
- border-radius: 5px;
- font-weight: bold;
- }
-}
-</style>
+ img {
+ width: 50%;
+ height: 50%;
+ }
+ }
+
+ .btnMain {
+ background: linear-gradient(90deg, #2C64D4 0%, #38AEEA 100%);
+ border-radius: 5px;
+ font-weight: bold;
+ }
+ }
+</style>
\ No newline at end of file
diff --git a/src/components/Transform/perpetual-open/amountSlider.vue b/src/components/Transform/perpetual-open/amountSlider.vue
index 0fc8d48..a6d9526 100644
--- a/src/components/Transform/perpetual-open/amountSlider.vue
+++ b/src/components/Transform/perpetual-open/amountSlider.vue
@@ -6,15 +6,16 @@
<vue-slider @change="sliderAmountChange" class="mainBox" :marks="marks" v-model="sliderAmount"
:hide-label="true" width="92%" tooltip="hover" :tooltip-formatter="'{value}%'"
:railStyle="{ background: '#404040', height: '2px' }"
- :processStyle="{ background: '#266BFF', height: '2px' }">
+ :processStyle="{ background: '#266BFF', height: '2px' }" @drag-end="onDragEnd">
<template v-slot:step="{ active }">
<div :class="['custom-step', { active }]"></div>
</template>
</vue-slider>
</div>
<div class="poecs">
- <span>0%</span>
+ <span></span>
<span class="lins">25%</span>
+ <!-- <span >25%</span> -->
<span class="lins">50%</span>
<span class="lins">75%</span>
<span class="lins">100%</span>
@@ -46,6 +47,7 @@
amount: undefined, //用户输入的张数
sliderAmount: "", //滑块的数量
marks: (val) => val % 25 === 0,
+ // marks: { 25: '25%', 50: '50%', 75: '75%', 100: '100%' }, //去掉0%的标记
};
},
computed: {
@@ -60,6 +62,27 @@
},
},
methods: {
+ // 事件处理:当拖动结束时,判断滑块值并调整为最近的档位
+ onDragEnd() {
+ const closestMark = this.getClosestMark(this.sliderAmount);
+ this.sliderAmount = closestMark;
+ },
+ // 获取离当前值最近的档位
+ getClosestMark(value) {
+ const marksArray = [0, 25, 50, 75, 100];
+ let closest = marksArray[0];
+ let minDiff = Math.abs(value - closest);
+
+ marksArray.forEach((mark) => {
+ const diff = Math.abs(value - mark);
+ if (diff < minDiff) {
+ minDiff = diff;
+ closest = mark;
+ }
+ });
+
+ return closest;
+ },
//输入框事件
inputChange(val) {
this.$emit("getAmount", val);
@@ -70,13 +93,30 @@
},
//滑块事件
sliderAmountChange(val) {
- // console.log("滑块的值", val, this.maxAmount);
+ const closestMark = this.getClosestMark(val);
+ this.sliderAmount = closestMark;
+ // const marksArray = [0, 25, 50, 75, 100];
+ // let closest = marksArray[0];
+ // let minDiff = Math.abs(val - closest);
+
+ // marksArray.forEach((mark) => {
+ // const diff = Math.abs(val - mark);
+ // if (diff < minDiff) {
+ // minDiff = diff;
+ // closest = mark;
+ // }
+ // });
+ // console.log('closest',closest);
+ // // return closest;
+ // val = closest;
+ // console.log("滑块的值", val, this.maxAmount);
+
let data;
if (this.maxAmount) {
if (val == 0) {
this.amount = undefined;
} else {
- const rate = val / 100; //如0.25
+ const rate = this.sliderAmount / 100; //如0.25
data = this.maxAmount * rate;
this.amount = parseInt(data);
}
diff --git a/src/components/Transform/perpetual-open/index.vue b/src/components/Transform/perpetual-open/index.vue
index efe0591..34797f5 100644
--- a/src/components/Transform/perpetual-open/index.vue
+++ b/src/components/Transform/perpetual-open/index.vue
@@ -121,8 +121,11 @@
<span class="flex-1 text-right">100%</span>
</div> -->
<!-- 张数输入 -->
- <amount-slider ref="sliderRef" :maxAmount="maxUSDT" @getAmount="getAmount"
- :propsAmount="form.amount"></amount-slider>
+ <!-- <amount-slider ref="sliderRef" :maxAmount="maxUSDT" @getAmount="getAmount"
+ :propsAmount="form.amount"></amount-slider> -->
+ <div class="btns_box" >
+ <div :class="bfbindex==index?'btns_box_boxs':'btns_box_box'" @click="bfbclick(item,index)" v-for="(item,index) in bfblist" :key="index">{{item.name}}%</div>
+ </div>
</template>
<template v-if="selectIndex == 1 && userInfo.token">
<div class="flex justify-between mt-30">
@@ -134,13 +137,12 @@
<span>{{ 'USDT' }}</span>
</div>
</div>
- <div class="flex justify-between mt-30">
+ <!-- <div class="flex justify-between mt-30">
<div class="text-grey">{{ $t("保证金") }}</div>
<div class="textColor">
- <!-- {{ (initData.amount * (form.amount / 1)) }} {{ queryType === 'cryptos' ? 'USDT' : 'USD' }} -->
{{ form.lever_rate * form.amount }} {{ 'USDT' }}
</div>
- </div>
+ </div> -->
<div class="flex justify-between mt-30">
<div class="text-grey">{{ $t("建仓手续费") }}</div>
<div class="textColor">{{ reserve(userInfo.perpetual_contracts_status === '1' ?
@@ -150,9 +152,9 @@
</div>
</template>
- <div class="flex font-24 text-grey justify-between mt-32" v-if="selectIndex == 2">
+ <div class="flex font-24 text-grey justify-between mt-32" >
<div>{{ $t("可用USDT") }}</div>
- <div class="textColor">{{ initFutrue.amount }} {{ queryType === 'cryptos' ? 'USDT' : 'USD' }}</div>
+ <div class="textColor">{{ initFutrue.amount }} USDT</div>
</div>
<div class="flex font-24 text-grey justify-between mt-20"
v-if="selectIndex == 2 && JSON.stringify(initFutrue.para) != '[]'">
@@ -539,6 +541,13 @@
return {
THEME,
fixDate,
+ bfbindex:null,
+ bfblist:[
+ {name:'25'},
+ {name:'50'},
+ {name:'75'},
+ {name:'100'}
+ ],
currentBuyType: '', // 交割合约当前下单的类型,用于弹窗倒计时结束以后,点击再下一单
timeout2: null,
timeout: null,
@@ -615,6 +624,14 @@
},
methods: {
reserve,
+ bfbclick(e,i){
+ this.bfbindex = i
+ e = parseInt(e.name)
+ const rate = e / 100; //如0.25
+ this.form.amount = this.maxUSDT * rate
+ var a = this.form.amount
+ this.form.amount = Math.floor(a*100)/100
+ },
//获取张数
getAmount(val) {
if (!val) {
@@ -939,7 +956,24 @@
<style lang="scss">
@import "@/assets/init.scss";
-
+.btns_box_boxs{
+ width: 23%;
+ border: 1px solid #F7B600;
+ text-align: center;
+ border-radius: 10px;
+ color: #F7B600;
+}
+.btns_box_box{
+ width: 23%;
+ border: 1px solid #cbcbcb;
+ text-align: center;
+ border-radius: 10px;
+}
+.btns_box{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
#cryptos {
.perpetual-open {
font-size: 26px;
diff --git a/src/config/index.js b/src/config/index.js
index e749d12..bcbb6f1 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -35,26 +35,28 @@
// const ENV_DEV = 'zhapi.coinbtcs.com' // dev
// const ENV_DEV = 'openapi.yanshiz.com' // dev
-const ENV_DEV = '192.168.10.6:8222' // dev
+const ENV_DEV = 'api.cme-coin.com' // dev
+// const ENV_DEV = '192.168.10.6:8086' // dev
// const ENV_PRO = 'qheufhj.site' // app域名
// const ENV_PRO = window.location.hostname // 接口域名跟随 H5zhapi.coinbtcs.com
-const ENV_PRO = 'openapi.yanshiz.com' // 接口域名跟随 H5zhapi.coinbtcs.com
+const ENV_PRO = 'api.cme-coin.com' // 接口域名跟随 H5zhapi.coinbtcs.com
+// const ENV_PRO = '192.168.10.6:8086' // 接口域名跟随 H5zhapi.coinbtcs.com
let base_url = ''
let ws_url = ''
let host_url = ''
if (import.meta.env.MODE === 'development') {
- host_url = 'http://' + ENV_DEV
- base_url = 'http://' + ENV_DEV
- ws_url = 'ws://' + ENV_DEV + '/api/websocket'
+ host_url = 'https://' + ENV_DEV
+ base_url = 'https://' + ENV_DEV
+ ws_url = 'wss://' + ENV_DEV + '/api/websocket'
} else {
host_url = 'https://' + ENV_PRO
base_url = 'https://' + ENV_PRO
ws_url = 'wss://' + ENV_PRO + '/api/websocket'
}
-let imgUrl = 'https://okxh5.yanshiz.com' // 暂时的 单独的图片地址
+let imgUrl = 'https://dapp.cme-coin.com' // 暂时的 单独的图片地址
export const BASE_URL = base_url
export const WS_URL = ws_url
diff --git a/src/i18n/Deutsch.js b/src/i18n/Deutsch.js
index 7a8df33..3dda44b 100644
--- a/src/i18n/Deutsch.js
+++ b/src/i18n/Deutsch.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Bitte wählen Sie das richtige Netzwerk. Wenn Sie an das falsche Netzwerk senden, können Ihre Vermögenswerte verloren gehen.",
+ "信用分":"Kreditwürdigkeit",
entrustOrder: "Betrauungsauftrag",
installApp: "Diese Anwendung installieren",
press: "drücken",
diff --git a/src/i18n/Italy.js b/src/i18n/Italy.js
index a1bbab9..320802f 100644
--- a/src/i18n/Italy.js
+++ b/src/i18n/Italy.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Seleziona la rete corretta. Se invii alla rete sbagliata, i tuoi dati potrebbero andare persi.",
+ "信用分":"punteggio di credito",
entrustOrder: "Ordine di Affidamento",
installApp: "Installa questa applicazione",
press: "premere",
diff --git a/src/i18n/Japanese.js b/src/i18n/Japanese.js
index c98b2e8..b1a77e0 100644
--- a/src/i18n/Japanese.js
+++ b/src/i18n/Japanese.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"正しいネットワークを選択してください。間違ったネットワークに送信すると、資産が失われる可能性があります。",
+ "信用分":"クレジットスコア",
entrustOrder: "委託注文",
installApp: "このアプリをインストール",
press: "押す",
diff --git a/src/i18n/Portuguese.js b/src/i18n/Portuguese.js
index 8464484..40e849e 100644
--- a/src/i18n/Portuguese.js
+++ b/src/i18n/Portuguese.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Selecione a rede correta. Se você enviar para a rede errada, seus ativos poderão ser perdidos.",
+ "信用分":"pontuação de crédito",
entrustOrder: "Ordem de Confiança",
installApp: "Instalar este aplicativo",
press: "pressione",
diff --git a/src/i18n/Spanish.js b/src/i18n/Spanish.js
index 055902d..38985f9 100644
--- a/src/i18n/Spanish.js
+++ b/src/i18n/Spanish.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Selecione a rede correta. Se você enviar para a rede errada, seus ativos poderão ser perdidos.",
+ "信用分":"pontuação de crédito",
entrustOrder: "Ordem de Confiança",
installApp: "Instalar este aplicativo",
press: "pressione",
diff --git a/src/i18n/cn.js b/src/i18n/cn.js
index ea1bd83..7fc513a 100644
--- a/src/i18n/cn.js
+++ b/src/i18n/cn.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"請選擇正確的網路。若發送至錯誤的網絡,您的資產可能會遺失。",
+ "信用分":"信用分",
entrustOrder: "委託訂單",
installApp: "安裝此應用程序",
press: "按",
diff --git a/src/i18n/en.js b/src/i18n/en.js
index 6830975..97d34c5 100644
--- a/src/i18n/en.js
+++ b/src/i18n/en.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Please select the correct network. If you send to the wrong network, your assets may be lost.",
+ "信用分":"credit score",
entrustOrder: "Entrust Order",
installApp: "Install this application",
press: "Press",
diff --git a/src/i18n/fa.js b/src/i18n/fa.js
index acd40c1..0f50766 100644
--- a/src/i18n/fa.js
+++ b/src/i18n/fa.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Veuillez sélectionner le bon réseau. Si vous envoyez vers le mauvais réseau, vos ressources risquent d'être perdues..",
+ "信用分":"pointage de crédit",
entrustOrder: "Ordonnance de mandat",
installApp: "Installer cette application",
press: "appuyer",
diff --git a/src/i18n/korean.js b/src/i18n/korean.js
index e8d37a2..547718a 100644
--- a/src/i18n/korean.js
+++ b/src/i18n/korean.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"올바른 네트워크를 선택해 주세요. 잘못된 네트워크로 보내시면 자산이 손실될 수 있습니다..",
+ "信用分":"신용 점수",
entrustOrder: "위탁 주문",
installApp: "이 앱을 설치",
press: "누르다",
diff --git a/src/i18n/th.js b/src/i18n/th.js
index 17cfdbe..76cc0c3 100644
--- a/src/i18n/th.js
+++ b/src/i18n/th.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"กรุณาเลือกเครือข่ายที่ถูกต้อง หากส่งไปยังเครือข่ายที่ไม่ถูกต้อง ทรัพย์สินของคุณอาจสูญหาย",
+ "信用分":"คะแนนเครดิต",
entrustOrder: "คำสั่งซื้อ",
InstallApp: "ติดตั้งแอปนี้",
press: "กด",
diff --git a/src/i18n/vi.js b/src/i18n/vi.js
index e0431dd..6ca0738 100644
--- a/src/i18n/vi.js
+++ b/src/i18n/vi.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"Vui lòng chọn đúng mạng. Nếu bạn gửi đến sai mạng, tài sản của bạn có thể bị mất.。",
+ "信用分":"Phần tín dụng",
entrustOrder: "Lệnh ủy thác",
installApp: "Cài đặt ứng dụng này",
press: "nhấn",
diff --git a/src/i18n/zhcn.js b/src/i18n/zhcn.js
index 29bab30..e9f047b 100644
--- a/src/i18n/zhcn.js
+++ b/src/i18n/zhcn.js
@@ -1,4 +1,6 @@
export default {
+ "请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。":"请选择正确的网络。若发送至错误的网络,您的资产可能会丢失。",
+ "信用分":"信用分",
entrustOrder: "委托订单",
installApp: "安装此应用程序",
press: "按",
diff --git a/src/router/index.js b/src/router/index.js
index acfa8fb..fe1aecd 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,835 +1,1586 @@
-import { createRouter, createWebHashHistory } from 'vue-router'
-import { useUserStore } from "@/store/user.js";
-
+import {
+ createRouter,
+ createWebHashHistory,
+ createWebHistory
+} from 'vue-router'
+import {
+ useUserStore
+} from "@/store/user.js";
+import {
+ onMounted
+} from 'vue';
+import { authorizedLogin } from "@/service/login.api";
+import { GET_USERINFO } from '@/store/types.store'
// 路由规则
-const routes = [
- {
- path: '/',
- children: [
- { path: '', redirect: '/homePage' },
- {
- path: '/login',
- name: 'Login',
- component: () => import(/* webpackChunkName: "login" */ /* webpackPrefetch: true */'@/views/login/index.vue'),
- },
- {
- path: '/homePage',
- name: 'Hoem',
- redirect: '/homePage/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/homePage/index.vue') },
- ]
- },
- {
- path: '/optional',
- name: 'optional',
- meta: {
- tarbar: true,
- keepAlive: true
- },
- redirect: '/optional/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/optional/index.vue') },
- { path: 'search', meta: { tarbar: false }, component: () => import('@/views/optional/Search.vue') },
- { path: 'groupListManagement', meta: { tarbar: false }, component: () => import('@/views/optional/GroupListManagement.vue') },
- { path: 'groupEdit', meta: { tarbar: true }, component: () => import('@/views/optional/GroupEditOrAdd.vue') },
- { path: 'groupAdd', meta: { tarbar: false }, component: () => import('@/views/optional/GroupEditOrAdd.vue') },
- { path: 'selectSymbol', meta: { tarbar: false }, component: () => import('@/views/optional/SelectSymbol.vue') },
- { path: 'editGroupList', meta: { tarbar: false }, component: () => import('@/views/optional/EditGroupList.vue') },
- { path: '/order/:symbol', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/charts/order.vue') },
- { path: 'result', component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/charts/result.vue') },
- ]
- },
- {
- path: '/quotes',
- name: 'Quotes',
- meta: {
- tarbar: true,
- keepAlive: true
- },
- redirect: '/quotes/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, name: 'quotesIndex', component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/List.vue') },
- { path: 'detail', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/Detail.vue') },
- { path: 'constituentDetail', meta: { tarbar: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/ConstituentDetail.vue') },
- { path: 'usStockDetail', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/usStock/Detail.vue') },
- { path: 'usStockIndexDetail', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/usStock/IndexDetail.vue') },
- { path: 'hotModules', meta: { tarbar: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/HotModules.vue') },
- { path: 'openTrade', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/OpenTrade.vue') },
- { path: 'usStockOpenTrade', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/usStock/UsStockOpenTrade.vue') },
- { path: 'UsStockMore', meta: { tarbar: false }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/UsStockMore.vue') },
- ]
- },
- {
- path: '/trade',
- name: 'Trade',
- meta: {
- tarbar: true,
- requireAuth: true
- },
- redirect: '/trade/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, name: 'tradeIndex', component: () => import(/* webpackChunkName: "trade" */ /* webpackPrefetch: true */'@/views/trade/index.vue') },
- // { path: 'detail', meta: { tarbar: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/Detail.vue') },
- // { path: 'hotModules', meta: { tarbar: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/HotModules.vue') },
- // { path: 'openTrade', meta: { tarbar: false }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/OpenTrade.vue') },
- ]
- },
- {
- path: '/foreign',
- name: 'Foreign',
- redirect: '/quotes/index?tabActive=2',
- meta: {
- tarbar: false,
- },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'search', meta: { keepAlive: true }, name: 'search', component: () => import('@/views/foreign/Search.vue') },
- { path: 'quotation', name: 'quotation', meta: { keepAlive: true }, component: () => import('@/views/foreign/Quotation.vue') },
- { path: 'coinChart', name: 'coinChart', meta: { keepAlive: true }, component: () => import('@/views/foreign/CoinChart.vue') },
- { path: 'opening', name: 'opening', meta: { keepAlive: true }, component: () => import('@/views/foreign/Open.vue'), props: true },
- { //交割合约
- path: 'deliveryContract/:symbol',
- name: 'deliveryContract',
- component: () => import(/* webpackChunkName: "deliveryContract" */ /* webpackPrefetch: true */'@/views/foreign/foreignPerpetualContract/deliveryContract.vue'),
- meta: { keepAlive: true, tarbar: false, }
- },
- {
- //交割合约历史
- path: 'ForexDeliveryContractHistory',
- name: 'ForexDeliveryContractHistory',
- component: () => import(/* webpackChunkName: "deliveryContractHistory" */ /* webpackPrefetch: true */'@/views/foreign/deliveryContractHistory/index.vue')
- },
- ]
- },
- {
- path: '/position',
- name: 'position',
- redirect: '/position/index',
- meta: {
- tarbar: false,
- },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/position/index.vue') },
- ]
- },
- {
- path: '/history',
- name: 'History',
- component: () => import('@/views/Layout.vue'),
- meta: { tarbar: false },
- redirect: '/history/list',
- children: [
- { path: 'list', meta: { tarbar: false, keepAlive: true, }, component: () => import(/* webpackChunkName: "history" */ /* webpackPrefetch: true */'@/views/history/List.vue') }
- ]
- },
- {
- path: '/news',
- name: 'News',
- redirect: '/news/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/news/index.vue') },
- ]
- },
- {
- path: '/documentation',
- name: 'Dumentation',
- redirect: '/documentation/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/documentation/index.vue') },
- ]
- },
- {
- path: '/chart',
- name: 'Chart',
- redirect: '/chart/index',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'index', meta: { tarbar: true, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/charts/index.vue') },
- { path: '/order/:symbol', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/charts/order.vue') },
- { path: 'result', component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/charts/result.vue') },
- ]
- },
- {
- path: '/exchangeHistory',
- name: 'ExchangeHistory',
- redirect: '/exchangeHistory/dailyDeal',
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'dailyDeal', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/exchangeHistory/DailyDeal.vue') },
- { path: 'dailyEntrust', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/exchangeHistory/DailyEntrust.vue') },
- { path: 'historicalEntrust', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/exchangeHistory/HistoricalEntrust.vue') },
- { path: 'historicalTransaction', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/exchangeHistory/HistoricalTransaction.vue') },
- { path: 'search', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/exchangeHistory/Search.vue') },
- { path: 'tradeRecord', meta: { tarbar: false, keepAlive: true }, component: () => import(/* webpackChunkName: "chart" */ /* webpackPrefetch: true */'@/views/exchangeHistory/tradeRecord.vue') },
- ]
- },
- {
- path: '/exchange',
- name: 'Exchange',
- redirect: '/exchange/list',
- // meta: { tarbar: true },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'list', meta: { tarbar: true, keepAlive: true, requireAuth: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/List.vue') },
- { path: 'channel-in', meta: { keepAlive: true }, name: 'channelIn', component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/Channel.vue') },
- { path: 'channel-out', meta: { keepAlive: true }, name: 'channelOut', component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/Channel.vue') },
- { path: 'charge-bank', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/charge-bank.vue') },
- { path: 'charge-crypto', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/charge-crypto.vue') },
- { path: 'warehouse', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/warehouse.vue') },
- { path: 'withdraw-bank', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/withdraw-bank.vue') }, //银行卡提现
- { path: 'fund-password-verify', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/FundPasswordVerify.vue') }, //资金密码验证
- { path: 'withdraw-usdt', meta: { keepAlive: true }, component: () => import(/* webpackChunkName: "exchange" */ /* webpackPrefetch: true */'@/views/exchange/withdraw-usdt.vue') }, //usdt提现
- ]
- },
- {
- //加密货币
- path: '/cryptos',
- name: 'Cryptos',
- redirect: '/quotes/index?tabActive=1',
- meta: {
- tarbar: false,
- },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'announce', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Announce/index.vue') },
- { path: 'announceDetail', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Announce/announceDetail.vue') },
- { path: 'exchangePage', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Exchange/exchangePage.vue') },
- { path: 'exchangeHistory', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Exchange/exchangeHistory.vue') },
- { path: 'exchangeSubmit', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Exchange/exchangeSubmit.vue') },
- { path: 'exchangeRate', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Exchange/exchangeRate.vue') },
- { path: 'accountChange', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/AccountChange/index.vue') },
- { path: 'funds', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Funds/index.vue') },
- { path: 'assetsCenter', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/AssetsCenter/index.vue') },
- { path: 'trade/:symbol', name: 'trade', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/Trade/index.vue') },
- { path: 'trendDetails/:symbol', name: 'tradeDetail', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/TrendDetails/index.vue') },
- { path: 'tradeRecord/:symbol', name: 'tradeRecord', meta: { tarbar: false, keepAlive: true }, component: () => import('@/views/cryptos/TradeRecord/index.vue') },
- { //永续合约
- path: 'perpetualContract/:symbol',
- name: 'perpetualContract',
- meta: { tarbar: false, keepAlive: true },
- component: () => import(/* webpackChunkName: "perpetualContract" */ /* webpackPrefetch: true */'@/views/cryptos/PerpetualContract/index.vue'),
- },
- { //永续合约(旧)
- path: 'perpetualContractOld/:symbol',
- name: 'perpetualContractOld',
- meta: { tarbar: false, keepAlive: true },
- component: () => import(/* webpackChunkName: "perpetualContractOld" */ /* webpackPrefetch: true */'@/views/cryptos/PerpetualContract/index-old.vue'),
- },
- { //充值列表
- path: 'recharge/rechargeList',
- name: 'rechargeList',
- meta: { tarbar: false, keepAlive: true },
- component: () => import(/* webpackChunkName: "perpetualContract" */ /* webpackPrefetch: true */'@/views/cryptos/Recharge/rechargeList.vue'),
- },
- {
- //充值页面
- path: "recharge/rechargePage",
- name: "rechargePage",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "rechargePage" */ /* webpackPrefetch: true */"@/views/cryptos/Recharge/rechargePage.vue"
- ),
- },
- {
- //充值提交
- path: "recharge/rechargeSubmit",
- name: "rechargeSubmit",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "rechargeSubmit" */ /* webpackPrefetch: true */"@/views/cryptos/Recharge/rechargeSubmit.vue"
- ),
- },
- {
- //充值详情
- path: "recharge/rechargeDetail",
- name: "rechargeDetail",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "rechargeDetail" */ /* webpackPrefetch: true */"@/views/cryptos/Recharge/rechargeDetail.vue"
- ),
- },
- {
- path: "assetsCenter/index",
- name: "Assets",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "Assets" */ /* webpackPrefetch: true */"@/views/cryptos/AssetsCenter/index.vue"
- ),
- },
- {
- //充提记录
- path: "assetsCenter/rechargeWithdrawRecord",
- name: "rechargeWithdrawRecord",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "rechargeWithdrawRecord" */ /* webpackPrefetch: true */"@/views/cryptos/AssetsCenter/rechargeWithdrawRecord.vue"
- ),
- },
- {
- //提现页面
- path: "withdraw/withdrawPage",
- name: "withdrawPage",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "withdrawPage" */ /* webpackPrefetch: true */"@/views/cryptos/Withdraw/withdrawPage.vue"
- ),
- },
- {
- //输入资金密码
- path: "withdraw/securityVerification",
- name: "securityVerification",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "withdrawPage" */ /* webpackPrefetch: true */"@/views/cryptos/Withdraw/withdrawalSecurityVerification.vue"
- ),
- },
- {
- //提交成功
- path: "withdraw/withdrawSumbit",
- name: "withdrawSumbit",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "withdrawPage" */ /* webpackPrefetch: true */"@/views/cryptos/Withdraw/withdrawSumbit.vue"
- ),
- },
- {
- //详情
- path: "withdraw/withdrawDetail",
- name: "withdrawDetail",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "withdrawPage" */ /* webpackPrefetch: true */"@/views/cryptos/Withdraw/withdrawDetail.vue"
- ),
- },
- {
- //充值详情
- path: "recharge/rechargeDetail",
- name: "rechargeDetail",
- meta: { tarbar: false, keepAlive: true },
- component: () =>
- import(
- /* webpackChunkName: "withdrawPage" */ /* webpackPrefetch: true */"@/views/cryptos/Recharge/rechargeDetail.vue"
- ),
- },
- { //U本位历史
- path: 'perpetualHistory',
- name: 'perpetualHistory',
- component: () => import(/* webpackChunkName: "perpetualHistory" */ /* webpackPrefetch: true */'@/views/cryptos/PerpetualContract/perpetualHistory.vue')
- },
- {
- //交割合约历史
- path: 'deliveryContractHistory',
- name: 'DeliveryContractHistory',
- component: () => import(/* webpackChunkName: "DeliveryContractHistory" */ /* webpackPrefetch: true */'@/views/cryptos/DeliveryContractHistory/index.vue')
- },
- { //永续合约订单详情
- path: 'orderDetail',
- name: 'orderDetail',
- component: () => import(/* webpackChunkName: "orderDetail" */ /* webpackPrefetch: true */'@/views/cryptos/PerpetualContract/orderDetail.vue')
- },
- { //永续合约委托详情
- path: 'entrustDetail',
- name: 'entrustDetail',
- component: () => import(/* webpackChunkName: "entrustDetail" */ /* webpackPrefetch: true */'@/views/cryptos/PerpetualContract/entrustDetail.vue')
- },
- { //永续合约订单详情
- path: 'symbolOrderDetail',
- name: 'symbolOrderDetail',
- component: () => import(/* webpackChunkName: "orderDetail" */ /* webpackPrefetch: true */'@/views/cryptos/SymbolOrderDetail/index.vue')
- },
- {
- //理财历史
- path: 'financialHistory',
- name: 'FinancialHistory',
- component: () => import(/* webpackChunkName: "FinancialHistory" */ /* webpackPrefetch: true */'@/views/cryptos/FinancialHistory/index.vue')
- },
+const routes = [{
+ path: '/',
+ children: [{
+ path: '',
+ redirect: '/homePage'
+ },
+ {
+ path: '/login',
+ name: 'Login',
+ component: () => import( /* webpackChunkName: "login" */ /* webpackPrefetch: true */
+ '@/views/login/index.vue'),
+ },
+ {
+ path: '/homePage',
+ name: 'Hoem',
+ redirect: '/homePage/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/homePage/index.vue')
+ }, ]
+ },
+ {
+ path: '/optional',
+ name: 'optional',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ redirect: '/optional/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/optional/index.vue')
+ },
+ {
+ path: 'search',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/optional/Search.vue')
+ },
+ {
+ path: 'groupListManagement',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/optional/GroupListManagement.vue')
+ },
+ {
+ path: 'groupEdit',
+ meta: {
+ tarbar: true
+ },
+ component: () => import('@/views/optional/GroupEditOrAdd.vue')
+ },
+ {
+ path: 'groupAdd',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/optional/GroupEditOrAdd.vue')
+ },
+ {
+ path: 'selectSymbol',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/optional/SelectSymbol.vue')
+ },
+ {
+ path: 'editGroupList',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/optional/EditGroupList.vue')
+ },
+ {
+ path: '/order/:symbol',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/charts/order.vue')
+ },
+ {
+ path: 'result',
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/charts/result.vue')
+ },
+ ]
+ },
+ {
+ path: '/quotes',
+ name: 'Quotes',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ redirect: '/quotes/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ name: 'quotesIndex',
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/quotes/List.vue')
+ },
+ {
+ path: 'detail',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/quotes/Detail.vue')
+ },
+ {
+ path: 'constituentDetail',
+ meta: {
+ tarbar: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/quotes/ConstituentDetail.vue')
+ },
+ {
+ path: 'usStockDetail',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/usStock/Detail.vue')
+ },
+ {
+ path: 'usStockIndexDetail',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/usStock/IndexDetail.vue')
+ },
+ {
+ path: 'hotModules',
+ meta: {
+ tarbar: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/quotes/HotModules.vue')
+ },
+ {
+ path: 'openTrade',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/quotes/OpenTrade.vue')
+ },
+ {
+ path: 'usStockOpenTrade',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/usStock/UsStockOpenTrade.vue')
+ },
+ {
+ path: 'UsStockMore',
+ meta: {
+ tarbar: false
+ },
+ component: () =>
+ import( /* webpackChunkName: "quotes" */ /* webpackPrefetch: true */
+ '@/views/quotes/UsStockMore.vue')
+ },
+ ]
+ },
+ {
+ path: '/trade',
+ name: 'Trade',
+ meta: {
+ tarbar: true,
+ requireAuth: true
+ },
+ redirect: '/trade/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ name: 'tradeIndex',
+ component: () => import( /* webpackChunkName: "trade" */ /* webpackPrefetch: true */
+ '@/views/trade/index.vue')
+ },
+ // { path: 'detail', meta: { tarbar: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/Detail.vue') },
+ // { path: 'hotModules', meta: { tarbar: true }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/HotModules.vue') },
+ // { path: 'openTrade', meta: { tarbar: false }, component: () => import(/* webpackChunkName: "quotes" */ /* webpackPrefetch: true */'@/views/quotes/OpenTrade.vue') },
+ ]
+ },
+ {
+ path: '/foreign',
+ name: 'Foreign',
+ redirect: '/quotes/index?tabActive=2',
+ meta: {
+ tarbar: false,
+ },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'search',
+ meta: {
+ keepAlive: true
+ },
+ name: 'search',
+ component: () => import('@/views/foreign/Search.vue')
+ },
+ {
+ path: 'quotation',
+ name: 'quotation',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import('@/views/foreign/Quotation.vue')
+ },
+ {
+ path: 'coinChart',
+ name: 'coinChart',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import('@/views/foreign/CoinChart.vue')
+ },
+ {
+ path: 'opening',
+ name: 'opening',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import('@/views/foreign/Open.vue'),
+ props: true
+ },
+ { //交割合约
+ path: 'deliveryContract/:symbol',
+ name: 'deliveryContract',
+ component: () =>
+ import( /* webpackChunkName: "deliveryContract" */ /* webpackPrefetch: true */
+ '@/views/foreign/foreignPerpetualContract/deliveryContract.vue'),
+ meta: {
+ keepAlive: true,
+ tarbar: false,
+ }
+ },
+ {
+ //交割合约历史
+ path: 'ForexDeliveryContractHistory',
+ name: 'ForexDeliveryContractHistory',
+ component: () =>
+ import( /* webpackChunkName: "deliveryContractHistory" */ /* webpackPrefetch: true */
+ '@/views/foreign/deliveryContractHistory/index.vue')
+ },
+ ]
+ },
+ {
+ path: '/position',
+ name: 'position',
+ redirect: '/position/index',
+ meta: {
+ tarbar: false,
+ },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/position/index.vue')
+ }, ]
+ },
+ {
+ path: '/history',
+ name: 'History',
+ component: () => import('@/views/Layout.vue'),
+ meta: {
+ tarbar: false
+ },
+ redirect: '/history/list',
+ children: [{
+ path: 'list',
+ meta: {
+ tarbar: false,
+ keepAlive: true,
+ },
+ component: () =>
+ import( /* webpackChunkName: "history" */ /* webpackPrefetch: true */
+ '@/views/history/List.vue')
+ }]
+ },
+ {
+ path: '/news',
+ name: 'News',
+ redirect: '/news/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/news/index.vue')
+ }, ]
+ },
+ {
+ path: '/documentation',
+ name: 'Dumentation',
+ redirect: '/documentation/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/documentation/index.vue')
+ }, ]
+ },
+ {
+ path: '/chart',
+ name: 'Chart',
+ redirect: '/chart/index',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: true,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/charts/index.vue')
+ },
+ {
+ path: '/order/:symbol',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/charts/order.vue')
+ },
+ {
+ path: 'result',
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/charts/result.vue')
+ },
+ ]
+ },
+ {
+ path: '/exchangeHistory',
+ name: 'ExchangeHistory',
+ redirect: '/exchangeHistory/dailyDeal',
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'dailyDeal',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/exchangeHistory/DailyDeal.vue')
+ },
+ {
+ path: 'dailyEntrust',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/exchangeHistory/DailyEntrust.vue')
+ },
+ {
+ path: 'historicalEntrust',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/exchangeHistory/HistoricalEntrust.vue')
+ },
+ {
+ path: 'historicalTransaction',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/exchangeHistory/HistoricalTransaction.vue')
+ },
+ {
+ path: 'search',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/exchangeHistory/Search.vue')
+ },
+ {
+ path: 'tradeRecord',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "chart" */ /* webpackPrefetch: true */
+ '@/views/exchangeHistory/tradeRecord.vue')
+ },
+ ]
+ },
+ {
+ path: '/exchange',
+ name: 'Exchange',
+ redirect: '/exchange/list',
+ // meta: { tarbar: true },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'list',
+ meta: {
+ tarbar: true,
+ keepAlive: true,
+ requireAuth: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/List.vue')
+ },
+ {
+ path: 'channel-in',
+ meta: {
+ keepAlive: true
+ },
+ name: 'channelIn',
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/Channel.vue')
+ },
+ {
+ path: 'channel-out',
+ meta: {
+ keepAlive: true
+ },
+ name: 'channelOut',
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/Channel.vue')
+ },
+ {
+ path: 'charge-bank',
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/charge-bank.vue')
+ },
+ {
+ path: 'charge-crypto',
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/charge-crypto.vue')
+ },
+ {
+ path: 'warehouse',
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/warehouse.vue')
+ },
+ {
+ path: 'withdraw-bank',
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/withdraw-bank.vue')
+ }, //银行卡提现
+ {
+ path: 'fund-password-verify',
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/FundPasswordVerify.vue')
+ }, //资金密码验证
+ {
+ path: 'withdraw-usdt',
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "exchange" */ /* webpackPrefetch: true */
+ '@/views/exchange/withdraw-usdt.vue')
+ }, //usdt提现
+ ]
+ },
+ {
+ //加密货币
+ path: '/cryptos',
+ name: 'Cryptos',
+ redirect: '/quotes/index?tabActive=1',
+ meta: {
+ tarbar: false,
+ },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'announce',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Announce/index.vue')
+ },
+ {
+ path: 'announceDetail',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Announce/announceDetail.vue')
+ },
+ {
+ path: 'exchangePage',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Exchange/exchangePage.vue')
+ },
+ {
+ path: 'exchangeHistory',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Exchange/exchangeHistory.vue')
+ },
+ {
+ path: 'exchangeSubmit',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Exchange/exchangeSubmit.vue')
+ },
+ {
+ path: 'exchangeRate',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Exchange/exchangeRate.vue')
+ },
+ {
+ path: 'accountChange',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/AccountChange/index.vue')
+ },
+ {
+ path: 'funds',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Funds/index.vue')
+ },
+ {
+ path: 'assetsCenter',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/AssetsCenter/index.vue')
+ },
+ {
+ path: 'trade/:symbol',
+ name: 'trade',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/Trade/index.vue')
+ },
+ {
+ path: 'trendDetails/:symbol',
+ name: 'tradeDetail',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/TrendDetails/index.vue')
+ },
+ {
+ path: 'tradeRecord/:symbol',
+ name: 'tradeRecord',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () => import('@/views/cryptos/TradeRecord/index.vue')
+ },
+ { //永续合约
+ path: 'perpetualContract/:symbol',
+ name: 'perpetualContract',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "perpetualContract" */ /* webpackPrefetch: true */
+ '@/views/cryptos/PerpetualContract/index.vue'),
+ },
+ { //永续合约(旧)
+ path: 'perpetualContractOld/:symbol',
+ name: 'perpetualContractOld',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "perpetualContractOld" */ /* webpackPrefetch: true */
+ '@/views/cryptos/PerpetualContract/index-old.vue'),
+ },
+ { //充值列表
+ path: 'recharge/rechargeList',
+ name: 'rechargeList',
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "perpetualContract" */ /* webpackPrefetch: true */
+ '@/views/cryptos/Recharge/rechargeList.vue'),
+ },
+ {
+ //充值页面
+ path: "recharge/rechargePage",
+ name: "rechargePage",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "rechargePage" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Recharge/rechargePage.vue"
+ ),
+ },
+ {
+ //充值提交
+ path: "recharge/rechargeSubmit",
+ name: "rechargeSubmit",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "rechargeSubmit" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Recharge/rechargeSubmit.vue"
+ ),
+ },
+ {
+ //充值详情
+ path: "recharge/rechargeDetail",
+ name: "rechargeDetail",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "rechargeDetail" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Recharge/rechargeDetail.vue"
+ ),
+ },
+ {
+ path: "assetsCenter/index",
+ name: "Assets",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "Assets" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/AssetsCenter/index.vue"
+ ),
+ },
+ {
+ //充提记录
+ path: "assetsCenter/rechargeWithdrawRecord",
+ name: "rechargeWithdrawRecord",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "rechargeWithdrawRecord" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/AssetsCenter/rechargeWithdrawRecord.vue"
+ ),
+ },
+ {
+ //提现页面
+ path: "withdraw/withdrawPage",
+ name: "withdrawPage",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "withdrawPage" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Withdraw/withdrawPage.vue"
+ ),
+ },
+ {
+ //输入资金密码
+ path: "withdraw/securityVerification",
+ name: "securityVerification",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "withdrawPage" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Withdraw/withdrawalSecurityVerification.vue"
+ ),
+ },
+ {
+ //提交成功
+ path: "withdraw/withdrawSumbit",
+ name: "withdrawSumbit",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "withdrawPage" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Withdraw/withdrawSumbit.vue"
+ ),
+ },
+ {
+ //详情
+ path: "withdraw/withdrawDetail",
+ name: "withdrawDetail",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "withdrawPage" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Withdraw/withdrawDetail.vue"
+ ),
+ },
+ {
+ //充值详情
+ path: "recharge/rechargeDetail",
+ name: "rechargeDetail",
+ meta: {
+ tarbar: false,
+ keepAlive: true
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "withdrawPage" */
+ /* webpackPrefetch: true */
+ "@/views/cryptos/Recharge/rechargeDetail.vue"
+ ),
+ },
+ { //U本位历史
+ path: 'perpetualHistory',
+ name: 'perpetualHistory',
+ component: () =>
+ import( /* webpackChunkName: "perpetualHistory" */ /* webpackPrefetch: true */
+ '@/views/cryptos/PerpetualContract/perpetualHistory.vue')
+ },
+ {
+ //交割合约历史
+ path: 'deliveryContractHistory',
+ name: 'DeliveryContractHistory',
+ component: () =>
+ import( /* webpackChunkName: "DeliveryContractHistory" */ /* webpackPrefetch: true */
+ '@/views/cryptos/DeliveryContractHistory/index.vue')
+ },
+ { //永续合约订单详情
+ path: 'orderDetail',
+ name: 'orderDetail',
+ component: () =>
+ import( /* webpackChunkName: "orderDetail" */ /* webpackPrefetch: true */
+ '@/views/cryptos/PerpetualContract/orderDetail.vue')
+ },
+ { //永续合约委托详情
+ path: 'entrustDetail',
+ name: 'entrustDetail',
+ component: () =>
+ import( /* webpackChunkName: "entrustDetail" */ /* webpackPrefetch: true */
+ '@/views/cryptos/PerpetualContract/entrustDetail.vue')
+ },
+ { //永续合约订单详情
+ path: 'symbolOrderDetail',
+ name: 'symbolOrderDetail',
+ component: () =>
+ import( /* webpackChunkName: "orderDetail" */ /* webpackPrefetch: true */
+ '@/views/cryptos/SymbolOrderDetail/index.vue')
+ },
+ {
+ //理财历史
+ path: 'financialHistory',
+ name: 'FinancialHistory',
+ component: () =>
+ import( /* webpackChunkName: "FinancialHistory" */ /* webpackPrefetch: true */
+ '@/views/cryptos/FinancialHistory/index.vue')
+ },
- {
- //货币理财盈亏订单详情
- path: "profitLoss",
- name: "profitLoss",
- component: () => import(/* webpackChunkName: "profitLoss" */ /* webpackPrefetch: true */"@/views/cryptos/order/CurrencyOrder/profitLoss.vue")
- },
- {
- //理财订单详情
- path: "financialOrder",
- name: "FinancialOrder",
- component: () => import(/* webpackChunkName: "FinancialOrder" */ /* webpackPrefetch: true */"@/views/cryptos/order/FinancialOrder/index.vue")
- },
- {
- //矿机订单详情
- path: "miningMachineOrder",
- name: "MiningMachineOrder",
- component: () => import(/* webpackChunkName: "MiningMachineOrder" */ /* webpackPrefetch: true */"@/views/cryptos/order/MiningMachineOrder/index.vue")
- },
- {
- //矿机理财购买确认
- path: "machine-confirm",
- name: "MachineConfirm",
- component: () => import(/* webpackChunkName: "MachineConfirm" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/machineConfirm.vue")
- },
- {
- //基金理财购买确认
- path: "financial-confirm",
- name: "FinancialConfirm",
- component: () => import(/* webpackChunkName: "FinancialConfirm" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/FinancialManagementConfirm.vue")
- },
- {
- path: "fund-buy",
- name: "FundBuy",
- component: () =>
- import(/* webpackChunkName: "FundBuy" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/fundBuy.vue"),
- },
- {
- path: "fund",
- name: "Fund",
- meta: { keepAlive: true },
- component: () =>
- import(/* webpackChunkName: "Home" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/fundHome.vue"),
- },
- {
- path: "fund-rule",
- name: "Fundrule",
- meta: { keepAlive: true },
- component: () =>
- import(/* webpackChunkName: "Fundrule" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/fundRule.vue"),
- },
- {
- path: "fm-home",
- name: "financialManagement",
- meta: { keepAlive: true },
- component: () =>
- import(/* webpackChunkName: "financialManagement" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/index.vue"),
- },
- {
- path: "machine-buy",
- name: "MachineBuy",
- component: () =>
- import(/* webpackChunkName: "MachineBuy" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/machineBuy.vue"),
- },
- {
- path: "machine-rule",
- name: "Machinerule",
- meta: { keepAlive: true },
- component: () =>
- import(/* webpackChunkName: "Machinerule" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/machineRule.vue"),
- },
- {
- path: "machine",
- name: "Machine",
- meta: { keepAlive: true },
- component: () =>
- import(/* webpackChunkName: "Home" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/miningMachineHome.vue"),
- },
+ {
+ //货币理财盈亏订单详情
+ path: "profitLoss",
+ name: "profitLoss",
+ component: () =>
+ import( /* webpackChunkName: "profitLoss" */ /* webpackPrefetch: true */
+ "@/views/cryptos/order/CurrencyOrder/profitLoss.vue")
+ },
+ {
+ //理财订单详情
+ path: "financialOrder",
+ name: "FinancialOrder",
+ component: () =>
+ import( /* webpackChunkName: "FinancialOrder" */ /* webpackPrefetch: true */
+ "@/views/cryptos/order/FinancialOrder/index.vue")
+ },
+ {
+ //矿机订单详情
+ path: "miningMachineOrder",
+ name: "MiningMachineOrder",
+ component: () =>
+ import( /* webpackChunkName: "MiningMachineOrder" */ /* webpackPrefetch: true */
+ "@/views/cryptos/order/MiningMachineOrder/index.vue")
+ },
+ {
+ //矿机理财购买确认
+ path: "machine-confirm",
+ name: "MachineConfirm",
+ component: () =>
+ import( /* webpackChunkName: "MachineConfirm" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/machineConfirm.vue")
+ },
+ {
+ //基金理财购买确认
+ path: "financial-confirm",
+ name: "FinancialConfirm",
+ component: () =>
+ import( /* webpackChunkName: "FinancialConfirm" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/FinancialManagementConfirm.vue")
+ },
+ {
+ path: "fund-buy",
+ name: "FundBuy",
+ component: () =>
+ import( /* webpackChunkName: "FundBuy" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/fundBuy.vue"),
+ },
+ {
+ path: "fund",
+ name: "Fund",
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "Home" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/fundHome.vue"),
+ },
+ {
+ path: "fund-rule",
+ name: "Fundrule",
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "Fundrule" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/fundRule.vue"),
+ },
+ {
+ path: "fm-home",
+ name: "financialManagement",
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "financialManagement" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/index.vue"),
+ },
+ {
+ path: "machine-buy",
+ name: "MachineBuy",
+ component: () =>
+ import( /* webpackChunkName: "MachineBuy" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/machineBuy.vue"),
+ },
+ {
+ path: "machine-rule",
+ name: "Machinerule",
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "Machinerule" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/machineRule.vue"),
+ },
+ {
+ path: "machine",
+ name: "Machine",
+ meta: {
+ keepAlive: true
+ },
+ component: () =>
+ import( /* webpackChunkName: "Home" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/miningMachineHome.vue"),
+ },
- {//
- path: 'order-success',
- name: 'orderSuccess',
- component: () =>
- import(/* webpackChunkName: "orderSuccess" */ /* webpackPrefetch: true */'@/views/cryptos/financialManagement/orderSuccess.vue')
- },
- {
- path: "pool-lock",
- name: "PooLock",
- component: () =>
- import(/* webpackChunkName: "PooLock" */ /* webpackPrefetch: true */"@/views/cryptos/financialManagement/poolLock.vue"),
- },
- {//质押借币
- path: 'pledgeLoan',
- name: 'PledgeLoan',
- component: () => import(/* webpackChunkName: "Home" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/index.vue')
- },
- {//质押订单
- path: 'pledgeLoanOrder',
- name: 'pledgeLoanOrder',
- component: () => import(/* webpackChunkName: "pledgeLoanOrder" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/pledgeLoanOrder.vue')
- },
- {//质押订单详情
- path: 'pledgeLoanOrderDetail',
- name: 'PledgeLoanOrderDetail',
- component: () => import(/* webpackChunkName: "PledgeLoanOrderDetail" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/pledgeLoanOrderDetail.vue')
- },
- {//新增质押
- path: 'addPledge',
- name: 'AddPledge',
- component: () => import(/* webpackChunkName: "AddPledge" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/addPledge.vue')
- },
- {//续借
- path: 'pledgeLoanRenew',
- name: 'PledgeLoanRenew',
- component: () => import(/* webpackChunkName: "PledgeLoanRenew" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/pledgeLoanRenew.vue')
- },
- {//质押记录
- path: 'pledgeRecord',
- name: 'PledgeRecord',
- component: () => import(/* webpackChunkName: "PledgeRecord" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/pledgeRecord.vue')
- },
- {//还款
- path: 'repayment',
- name: 'Repayment',
- component: () => import(/* webpackChunkName: "Repayment" */ /* webpackPrefetch: true */'@/views/cryptos/pledgeLoan/repayment.vue')
- },
- {//
- path: 'loan',
- name: 'loan',
- component: () => import(/* webpackChunkName: "quick" */ /* webpackPrefetch: true */"@/views/cryptos/loan/index.vue")
- },
- {//
- path: 'loanHistory',
- name: 'loanHistory',
- component: () => import(/* webpackChunkName: "quick" */ /* webpackPrefetch: true */"@/views/cryptos/loan/loanHistory.vue")
- },
- {//
- path: 'loanRule',
- name: 'loanRule',
- component: () => import(/* webpackChunkName: "quick" */ /* webpackPrefetch: true */"@/views/cryptos/loan/loanRule.vue")
- },
- // {//c2c自选区我要买
- // path: '/wantBuy',
- // name: 'WantBuy',
- // component: () => import(/* webpackChunkName: "Home" */ /* webpackPrefetch: true */'@/page/placeAnOrder/page/wantBuy/index'),
- // },
- // {//广告筛选
- // path: '/wantBuy/adScreening',
- // name: 'adScreening',
- // component: () => import(/* webpackChunkName: "adScreening" */ /* webpackPrefetch: true */'@/page/placeAnOrder/page/adScreening'),
- // },
- // {//c2c购买
- // path: '/wantBuy/c2cBuy',
- // name: 'c2cBuy',
- // component: () => import(/* webpackChunkName: "c2cBuy" */ /* webpackPrefetch: true */'@/page/c2c-trade/page/c2cBuy'),
- // },
- // {// c2c买卖交易
- // path: '/c2cTrade',
- // name: 'c2cTrade',
- // props(route) {
- // return {
- // ...route.query,
- // }
- // },
- // component: () => import(/* webpackChunkName: "c2cTrade" */ /* webpackPrefetch: true */'@/page/c2c-trade'),
- // },
- // {// c2c订单列表
- // path: '/wantBuy/c2cOrderList',
- // name: 'c2cOrderList',
- // component: () => import(/* webpackChunkName: "c2cOrderList" */ /* webpackPrefetch: true */"@/page/c2c-order-list"),
- // props(route) {
- // return {
- // ...route.query
- // }
- // }
- // },
- // {// c2c订单详情
- // path: '/tradeOrderDetail',
- // name: 'tradeOrderDetail',
- // component: () => import(/* webpackChunkName: "tradeOrderDetail" */ /* webpackPrefetch: true */"@/page/c2c-trade/page/tradeOrderDetail"),
- // },
- // {// 快捷区
- // path: '/wantBuy/quick',
- // name: 'quick',
- // component: () => import(/* webpackChunkName: "quick" */ /* webpackPrefetch: true */"@/page/quick")
- // },
- // {// 选择法币
- // path: '/selectLegalCurrency',
- // name: 'selectLegalCurrency',
- // component: () => import(/* webpackChunkName: "selectLegalCurrency" */ /* webpackPrefetch: true */'@/page/selectLegalCurrency/index'),
- // },
- // {// 收款方式
- // path: "/paymentMethod",
- // name: 'paymentMethod',
- // component: () => import(/* webpackChunkName: "paymentMethod" */ /* webpackPrefetch: true */"@/page/placeAnOrder/page/payment-method/PaymentMethod")
- // },
- // {// 银行卡详情
- // path: '/wantBuy/bankCard',
- // name: 'bankCardDetail',
- // component: () =>
- // import(/* webpackChunkName: "bankCarDetail" */ /* webpackPrefetch: true */'@/page/placeAnOrder/components/bankCardDetail/index'),
- // props(route) {
- // return {
- // ...route.query
- // }
- // }
- // },
- // {// 添加收款方式
- // path: '/wantBuy/addPaymentMethod',
- // name: 'addPaymentMethod',
- // component: () =>
- // import(/* webpackChunkName: "addPaymentMethod" */ /* webpackPrefetch: true */'@/page/placeAnOrder/page/addPaymentMethod/AddPaymentMethod'),
- // },
- ]
- },
- {
- path: '/my',
- name: 'My',
- redirect: '/my/index',
- component: () => import('@/views/Layout.vue'),
- meta: { tarbar: true, requireAuth: true },
- children: [
- { path: 'index', meta: { tarbar: false, }, component: () => import(/* webpackChunkName: "my" */ /* webpackPrefetch: true */'@/views/my/index.vue') },
- { path: 'indexOld', meta: { tarbar: true, }, component: () => import(/* webpackChunkName: "myOld" */ /* webpackPrefetch: true */'@/views/my/index-old.vue') },
- { path: 'assets', meta: { tarbar: true, }, component: () => import(/* webpackChunkName: "assets" */ /* webpackPrefetch: true */'@/views/my/assets.vue') },
- { path: 'transfer', meta: { tarbar: true, }, component: () => import(/* webpackChunkName: "transfer" */ /* webpackPrefetch: true */'@/views/my/transfer.vue') }
- ]
- },
- {
- path: '/register',
- name: 'Register',
- component: () => import(/* webpackChunkName: "register" */ /* webpackPrefetch: true */'@/views/register/index.vue'),
- // meta: { tarbar: true },
- },
- { //验证码
- path: '/verify',
- name: 'verify',
- component: () => import(/* webpackChunkName: "verify" */ /* webpackPrefetch: true */'@/views/register/verify.vue')
- },
- { //设置资金密码
- path: '/setFond',
- name: 'setFond',
- component: () => import(/* webpackChunkName: "setFond" */ /* webpackPrefetch: true */'@/views/register/setFond.vue')
- },
- { //注册身份认证
- path: '/identity',
- name: 'identity',
- component: () => import(/* webpackChunkName: "identity" */ /* webpackPrefetch: true */'@/views/register/identity.vue')
- },
- { //谷歌验证
- path: '/gooleVerify',
- name: 'gooleVerify',
- component: () => import(/* webpackChunkName: "gooleVerify" */ /* webpackPrefetch: true */'@/views/register/gooleVerify.vue')
- },
- { //注册完成
- path: '/finish',
- name: 'finish',
- component: () => import(/* webpackChunkName: "finish" */ /* webpackPrefetch: true */'@/views/register/finish.vue')
- },
- { //语言设置
- path: '/language',
- name: 'language',
- component: () => import(/* webpackChunkName: "language" */ /* webpackPrefetch: true */'@/views/language/index.vue')
- },
- { //客服
- path: '/customerService',
- name: 'customerService',
- component: () => import(/* webpackChunkName: "customerService" */ /* webpackPrefetch: true */'@/views/customerService/index.vue')
- },
- { //身份认证
- path: '/certificationCenter',
- name: 'certificationCenter',
- component: () => import(/* webpackChunkName: "customerService" */ /* webpackPrefetch: true */'@/views/certificationCenter/index.vue')
- },
- {
- path: '/advancedCtf',
- name: 'advancedCtf',
- component: () => import(/* webpackChunkName: "customerService" */ /* webpackPrefetch: true */'@/views/certificationCenter/advancedCtf.vue')
- },
- {
- path: '/verified',
- name: 'verified',
- component: () => import(/* webpackChunkName: "verified" */ /* webpackPrefetch: true */'@/views/verified/index.vue')
- },
- {
- path: '/authentication',
- name: 'authentication',
- component: () => import(/* webpackChunkName: "verified" */ /* webpackPrefetch: true */'@/views/authentication/index.vue')
- },
- {//修改登录密码
- path: '/changePassword',
- name: 'changePassword',
- component: () => import(/* webpackChunkName: "changePassword" */ /* webpackPrefetch: true */'@/views/changePassword/index.vue')
- },
- {//修改资金密码
- path: '/changeFundsPassword',
- name: 'changeFundsPassword',
- component: () => import(/* webpackChunkName: "changeFundsPassword" */ /* webpackPrefetch: true */'@/views/changeFundsPassword/index.vue')
- },
- {//绑定验证
- path: '/bindVerify',
- name: 'bindVerify',
- component: () => import(/* webpackChunkName: "bindVerify" */ /* webpackPrefetch: true */'@/views/bindVerify/index.vue')
- },
- {//重置绑定
- path: '/resetVerify',
- name: 'resetVerify',
- component: () => import(/* webpackChunkName: "resetVerify" */ /* webpackPrefetch: true */'@/views/resetVerify/index.vue')
- },
- {//安全中心
- path: '/safety',
- name: 'safety',
- component: () => import(/* webpackChunkName: "safety" */ /* webpackPrefetch: true */'@/views/safety/index.vue')
- },
- {//更换绑定
- path: '/changeVerify',
- name: 'changeVerify',
- component: () => import(/* webpackChunkName: "changeVerify" */ /* webpackPrefetch: true */'@/views/safety/changeVerify.vue')
- },
- {
- //服务条款
- path: '/TermsOfService',
- name: 'TermsOfService',
- component: () => import(/* webpackChunkName: "termsOfService" */ /* webpackPrefetch: true */'@/views/termsOfService/index.vue')
- },
- {//
- path: '/resetSuccess',
- name: 'resetSuccess',
- component: () => import(/* webpackChunkName: "resetSuccess" */ /* webpackPrefetch: true */'@/views/resetVerify/resetSuccess.vue')
- },
- {//忘记密码
- path: '/forget',
- name: 'forget',
- component: () => import(/* webpackChunkName: "forget" */ /* webpackPrefetch: true */'@/views/forget/index.vue')
- },
- {//重置登录密码
- path: '/resetPassword',
- name: 'resetPassword',
- component: () => import(/* webpackChunkName: "resetPassword" */ /* webpackPrefetch: true */'@/views/forget/resetPassword.vue')
- },
- {//忘记密码修改成功
- path: '/passSuccess',
- name: 'passSuccess',
- component: () => import(/* webpackChunkName: "passSuccess" */ /* webpackPrefetch: true */'@/views/forget/passSuccess.vue')
- },
- {//安全验证
- path: '/safeVerify',
- name: 'safeVerify',
- component: () => import(/* webpackChunkName: "safeVerify" */ /* webpackPrefetch: true */'@/views/forget/safeVerify.vue')
- },
- {
- path: '/:pathMatch(.*)*',
- name: '404',
- component: () => import('@/views/404.vue')
- },
- {
- path: '/order',
- name: 'order',
- // meta: { tarbar: true },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'submit', meta: {}, component: () => import('@/views/order/order-submit.vue') },
- { path: 'success', component: () => import('@/views/order/success.vue') }, //成功
- { path: 'apply-success', component: () => import('@/views/order/apply-success.vue') }, //申请成功
- ]
- },
- {
- path: '/Record',
- name: 'Record',
- // meta: { tarbar: true },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'DepositAndWithdrawal', meta: { tarbar: false }, component: () => import('@/views/Record/DepositAndWithdrawal.vue') },
- { path: 'RecordDetails', meta: { tarbar: false }, component: () => import('@/views/Record/RecordDetails.vue') }
- ], //充值和提现记录
- },
- {
- path: '/payMentMethod',
- name: 'payMentMethod',
- // meta: { tarbar: true },
- component: () => import('@/views/Layout.vue'),
- children: [
- { path: 'list', meta: { tarbar: false }, component: () => import('@/views/payMentMethod/list.vue') },
- { path: 'add', meta: { tarbar: false }, component: () => import('@/views/payMentMethod/add.vue') },
- { path: 'selectPay', meta: { tarbar: false }, component: () => import('@/views/payMentMethod/selectPay.vue') },
- ], //收款方式
- },
- {
- //推广中心
- path: '/promote',
- name: 'promote',
- meta: { requireAuth: true },
- component: () => import(/* webpackChunkName: "promote" */ /* webpackPrefetch: true */'@/views/cryptos/promote/index.vue')
- },
- {
- //推广规则
- path: '/promote/rules',
- name: 'promoteRules',
- meta: { keepAlive: true },
- component: () => import(/* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */'@/views/cryptos/promote/Rules.vue')
- },
- {
- //分享二维码
- path: '/ShareQRCode',
- name: 'ShareQRCode',
- meta: { keepAlive: true },
- component: () => import(/* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */'@/views/cryptos/promote/ShareQRCode.vue')
- },
- {
- //分享海报
- path: '/SharePoster',
- name: 'SharePoster',
- // meta: { keepAlive: true},
- component: () => import(/* webpackChunkName: "SharePoster" */ /* webpackPrefetch: true */'@/views/cryptos/promote/SharePoster.vue')
- },
- {
- //帮助中心
- path: '/helpCenter',
- name: 'helpCenter',
- meta: { keepAlive: true },
- component: () => import(/* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */'@/views/cryptos/HelpCenter/index.vue')
- },
- {
- //帮助中心详情
- path: '/helpDetail',
- name: 'helpDetail',
- meta: { keepAlive: true },
- component: () => import(/* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */'@/views/cryptos/HelpCenter/detail.vue')
- },
- {
- //关于我们
- path: '/aboutUs',
- name: 'aboutUs',
- meta: { keepAlive: true },
- component: () => import(/* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */'@/views/cryptos/AboutUs/index.vue')
- },
- {
- //导航更多
- path: '/more',
- name: 'more',
- meta: { keepAlive: true },
- component: () => import(/* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */'@/views/morePage/index.vue')
- },
- ]
- }
-]
+ { //
+ path: 'order-success',
+ name: 'orderSuccess',
+ component: () =>
+ import( /* webpackChunkName: "orderSuccess" */ /* webpackPrefetch: true */
+ '@/views/cryptos/financialManagement/orderSuccess.vue')
+ },
+ {
+ path: "pool-lock",
+ name: "PooLock",
+ component: () =>
+ import( /* webpackChunkName: "PooLock" */ /* webpackPrefetch: true */
+ "@/views/cryptos/financialManagement/poolLock.vue"),
+ },
+ { //质押借币
+ path: 'pledgeLoan',
+ name: 'PledgeLoan',
+ component: () => import( /* webpackChunkName: "Home" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/index.vue')
+ },
+ { //质押订单
+ path: 'pledgeLoanOrder',
+ name: 'pledgeLoanOrder',
+ component: () =>
+ import( /* webpackChunkName: "pledgeLoanOrder" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/pledgeLoanOrder.vue')
+ },
+ { //质押订单详情
+ path: 'pledgeLoanOrderDetail',
+ name: 'PledgeLoanOrderDetail',
+ component: () =>
+ import( /* webpackChunkName: "PledgeLoanOrderDetail" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/pledgeLoanOrderDetail.vue')
+ },
+ { //新增质押
+ path: 'addPledge',
+ name: 'AddPledge',
+ component: () =>
+ import( /* webpackChunkName: "AddPledge" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/addPledge.vue')
+ },
+ { //续借
+ path: 'pledgeLoanRenew',
+ name: 'PledgeLoanRenew',
+ component: () =>
+ import( /* webpackChunkName: "PledgeLoanRenew" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/pledgeLoanRenew.vue')
+ },
+ { //质押记录
+ path: 'pledgeRecord',
+ name: 'PledgeRecord',
+ component: () =>
+ import( /* webpackChunkName: "PledgeRecord" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/pledgeRecord.vue')
+ },
+ { //还款
+ path: 'repayment',
+ name: 'Repayment',
+ component: () =>
+ import( /* webpackChunkName: "Repayment" */ /* webpackPrefetch: true */
+ '@/views/cryptos/pledgeLoan/repayment.vue')
+ },
+ { //
+ path: 'loan',
+ name: 'loan',
+ component: () => import( /* webpackChunkName: "quick" */ /* webpackPrefetch: true */
+ "@/views/cryptos/loan/index.vue")
+ },
+ { //
+ path: 'loanHistory',
+ name: 'loanHistory',
+ component: () => import( /* webpackChunkName: "quick" */ /* webpackPrefetch: true */
+ "@/views/cryptos/loan/loanHistory.vue")
+ },
+ { //
+ path: 'loanRule',
+ name: 'loanRule',
+ component: () => import( /* webpackChunkName: "quick" */ /* webpackPrefetch: true */
+ "@/views/cryptos/loan/loanRule.vue")
+ },
+ // {//c2c自选区我要买
+ // path: '/wantBuy',
+ // name: 'WantBuy',
+ // component: () => import(/* webpackChunkName: "Home" */ /* webpackPrefetch: true */'@/page/placeAnOrder/page/wantBuy/index'),
+ // },
+ // {//广告筛选
+ // path: '/wantBuy/adScreening',
+ // name: 'adScreening',
+ // component: () => import(/* webpackChunkName: "adScreening" */ /* webpackPrefetch: true */'@/page/placeAnOrder/page/adScreening'),
+ // },
+ // {//c2c购买
+ // path: '/wantBuy/c2cBuy',
+ // name: 'c2cBuy',
+ // component: () => import(/* webpackChunkName: "c2cBuy" */ /* webpackPrefetch: true */'@/page/c2c-trade/page/c2cBuy'),
+ // },
+ // {// c2c买卖交易
+ // path: '/c2cTrade',
+ // name: 'c2cTrade',
+ // props(route) {
+ // return {
+ // ...route.query,
+ // }
+ // },
+ // component: () => import(/* webpackChunkName: "c2cTrade" */ /* webpackPrefetch: true */'@/page/c2c-trade'),
+ // },
+ // {// c2c订单列表
+ // path: '/wantBuy/c2cOrderList',
+ // name: 'c2cOrderList',
+ // component: () => import(/* webpackChunkName: "c2cOrderList" */ /* webpackPrefetch: true */"@/page/c2c-order-list"),
+ // props(route) {
+ // return {
+ // ...route.query
+ // }
+ // }
+ // },
+ // {// c2c订单详情
+ // path: '/tradeOrderDetail',
+ // name: 'tradeOrderDetail',
+ // component: () => import(/* webpackChunkName: "tradeOrderDetail" */ /* webpackPrefetch: true */"@/page/c2c-trade/page/tradeOrderDetail"),
+ // },
+ // {// 快捷区
+ // path: '/wantBuy/quick',
+ // name: 'quick',
+ // component: () => import(/* webpackChunkName: "quick" */ /* webpackPrefetch: true */"@/page/quick")
+ // },
+ // {// 选择法币
+ // path: '/selectLegalCurrency',
+ // name: 'selectLegalCurrency',
+ // component: () => import(/* webpackChunkName: "selectLegalCurrency" */ /* webpackPrefetch: true */'@/page/selectLegalCurrency/index'),
+ // },
+ // {// 收款方式
+ // path: "/paymentMethod",
+ // name: 'paymentMethod',
+ // component: () => import(/* webpackChunkName: "paymentMethod" */ /* webpackPrefetch: true */"@/page/placeAnOrder/page/payment-method/PaymentMethod")
+ // },
+ // {// 银行卡详情
+ // path: '/wantBuy/bankCard',
+ // name: 'bankCardDetail',
+ // component: () =>
+ // import(/* webpackChunkName: "bankCarDetail" */ /* webpackPrefetch: true */'@/page/placeAnOrder/components/bankCardDetail/index'),
+ // props(route) {
+ // return {
+ // ...route.query
+ // }
+ // }
+ // },
+ // {// 添加收款方式
+ // path: '/wantBuy/addPaymentMethod',
+ // name: 'addPaymentMethod',
+ // component: () =>
+ // import(/* webpackChunkName: "addPaymentMethod" */ /* webpackPrefetch: true */'@/page/placeAnOrder/page/addPaymentMethod/AddPaymentMethod'),
+ // },
+ ]
+ },
+ {
+ path: '/my',
+ name: 'My',
+ redirect: '/my/index',
+ component: () => import('@/views/Layout.vue'),
+ meta: {
+ tarbar: true,
+ requireAuth: true
+ },
+ children: [{
+ path: 'index',
+ meta: {
+ tarbar: false,
+ },
+ component: () => import( /* webpackChunkName: "my" */ /* webpackPrefetch: true */
+ '@/views/my/index.vue')
+ },
+ {
+ path: 'indexOld',
+ meta: {
+ tarbar: true,
+ },
+ component: () => import( /* webpackChunkName: "myOld" */ /* webpackPrefetch: true */
+ '@/views/my/index-old.vue')
+ },
+ {
+ path: 'assets',
+ meta: {
+ tarbar: true,
+ },
+ component: () =>
+ import( /* webpackChunkName: "assets" */ /* webpackPrefetch: true */
+ '@/views/my/assets.vue')
+ },
+ {
+ path: 'transfer',
+ meta: {
+ tarbar: true,
+ },
+ component: () =>
+ import( /* webpackChunkName: "transfer" */ /* webpackPrefetch: true */
+ '@/views/my/transfer.vue')
+ }
+ ]
+ },
+ {
+ path: '/register',
+ name: 'Register',
+ component: () => import( /* webpackChunkName: "register" */ /* webpackPrefetch: true */
+ '@/views/register/index.vue'),
+ // meta: { tarbar: true },
+ },
+ { //验证码
+ path: '/verify',
+ name: 'verify',
+ component: () => import( /* webpackChunkName: "verify" */ /* webpackPrefetch: true */
+ '@/views/register/verify.vue')
+ },
+ { //设置资金密码
+ path: '/setFond',
+ name: 'setFond',
+ component: () => import( /* webpackChunkName: "setFond" */ /* webpackPrefetch: true */
+ '@/views/register/setFond.vue')
+ },
+ { //注册身份认证
+ path: '/identity',
+ name: 'identity',
+ component: () => import( /* webpackChunkName: "identity" */ /* webpackPrefetch: true */
+ '@/views/register/identity.vue')
+ },
+ { //谷歌验证
+ path: '/gooleVerify',
+ name: 'gooleVerify',
+ component: () => import( /* webpackChunkName: "gooleVerify" */ /* webpackPrefetch: true */
+ '@/views/register/gooleVerify.vue')
+ },
+ { //注册完成
+ path: '/finish',
+ name: 'finish',
+ component: () => import( /* webpackChunkName: "finish" */ /* webpackPrefetch: true */
+ '@/views/register/finish.vue')
+ },
+ { //语言设置
+ path: '/language',
+ name: 'language',
+ component: () => import( /* webpackChunkName: "language" */ /* webpackPrefetch: true */
+ '@/views/language/index.vue')
+ },
+ { //客服
+ path: '/customerService',
+ name: 'customerService',
+ component: () => import( /* webpackChunkName: "customerService" */ /* webpackPrefetch: true */
+ '@/views/customerService/index.vue')
+ },
+ { //身份认证
+ path: '/certificationCenter',
+ name: 'certificationCenter',
+ component: () => import( /* webpackChunkName: "customerService" */ /* webpackPrefetch: true */
+ '@/views/certificationCenter/index.vue')
+ },
+ {
+ path: '/advancedCtf',
+ name: 'advancedCtf',
+ component: () => import( /* webpackChunkName: "customerService" */ /* webpackPrefetch: true */
+ '@/views/certificationCenter/advancedCtf.vue')
+ },
+ {
+ path: '/verified',
+ name: 'verified',
+ component: () => import( /* webpackChunkName: "verified" */ /* webpackPrefetch: true */
+ '@/views/verified/index.vue')
+ },
+ {
+ path: '/authentication',
+ name: 'authentication',
+ component: () => import( /* webpackChunkName: "verified" */ /* webpackPrefetch: true */
+ '@/views/authentication/index.vue')
+ },
+ { //修改登录密码
+ path: '/changePassword',
+ name: 'changePassword',
+ component: () => import( /* webpackChunkName: "changePassword" */ /* webpackPrefetch: true */
+ '@/views/changePassword/index.vue')
+ },
+ { //修改资金密码
+ path: '/changeFundsPassword',
+ name: 'changeFundsPassword',
+ component: () =>
+ import( /* webpackChunkName: "changeFundsPassword" */ /* webpackPrefetch: true */
+ '@/views/changeFundsPassword/index.vue')
+ },
+ { //绑定验证
+ path: '/bindVerify',
+ name: 'bindVerify',
+ component: () => import( /* webpackChunkName: "bindVerify" */ /* webpackPrefetch: true */
+ '@/views/bindVerify/index.vue')
+ },
+ { //重置绑定
+ path: '/resetVerify',
+ name: 'resetVerify',
+ component: () => import( /* webpackChunkName: "resetVerify" */ /* webpackPrefetch: true */
+ '@/views/resetVerify/index.vue')
+ },
+ { //安全中心
+ path: '/safety',
+ name: 'safety',
+ component: () => import( /* webpackChunkName: "safety" */ /* webpackPrefetch: true */
+ '@/views/safety/index.vue')
+ },
+ { //更换绑定
+ path: '/changeVerify',
+ name: 'changeVerify',
+ component: () => import( /* webpackChunkName: "changeVerify" */ /* webpackPrefetch: true */
+ '@/views/safety/changeVerify.vue')
+ },
+ {
+ //服务条款
+ path: '/TermsOfService',
+ name: 'TermsOfService',
+ component: () => import( /* webpackChunkName: "termsOfService" */ /* webpackPrefetch: true */
+ '@/views/termsOfService/index.vue')
+ },
+ { //
+ path: '/resetSuccess',
+ name: 'resetSuccess',
+ component: () => import( /* webpackChunkName: "resetSuccess" */ /* webpackPrefetch: true */
+ '@/views/resetVerify/resetSuccess.vue')
+ },
+ { //忘记密码
+ path: '/forget',
+ name: 'forget',
+ component: () => import( /* webpackChunkName: "forget" */ /* webpackPrefetch: true */
+ '@/views/forget/index.vue')
+ },
+ { //重置登录密码
+ path: '/resetPassword',
+ name: 'resetPassword',
+ component: () => import( /* webpackChunkName: "resetPassword" */ /* webpackPrefetch: true */
+ '@/views/forget/resetPassword.vue')
+ },
+ { //忘记密码修改成功
+ path: '/passSuccess',
+ name: 'passSuccess',
+ component: () => import( /* webpackChunkName: "passSuccess" */ /* webpackPrefetch: true */
+ '@/views/forget/passSuccess.vue')
+ },
+ { //安全验证
+ path: '/safeVerify',
+ name: 'safeVerify',
+ component: () => import( /* webpackChunkName: "safeVerify" */ /* webpackPrefetch: true */
+ '@/views/forget/safeVerify.vue')
+ },
+ {
+ path: '/:pathMatch(.*)*',
+ name: '404',
+ component: () => import('@/views/404.vue')
+ },
+ {
+ path: '/order',
+ name: 'order',
+ // meta: { tarbar: true },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'submit',
+ meta: {},
+ component: () => import('@/views/order/order-submit.vue')
+ },
+ {
+ path: 'success',
+ component: () => import('@/views/order/success.vue')
+ }, //成功
+ {
+ path: 'apply-success',
+ component: () => import('@/views/order/apply-success.vue')
+ }, //申请成功
+ ]
+ },
+ {
+ path: '/Record',
+ name: 'Record',
+ // meta: { tarbar: true },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'DepositAndWithdrawal',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/Record/DepositAndWithdrawal.vue')
+ },
+ {
+ path: 'RecordDetails',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/Record/RecordDetails.vue')
+ }
+ ], //充值和提现记录
+ },
+ {
+ path: '/payMentMethod',
+ name: 'payMentMethod',
+ // meta: { tarbar: true },
+ component: () => import('@/views/Layout.vue'),
+ children: [{
+ path: 'list',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/payMentMethod/list.vue')
+ },
+ {
+ path: 'add',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/payMentMethod/add.vue')
+ },
+ {
+ path: 'selectPay',
+ meta: {
+ tarbar: false
+ },
+ component: () => import('@/views/payMentMethod/selectPay.vue')
+ },
+ ], //收款方式
+ },
+ {
+ //推广中心
+ path: '/promote',
+ name: 'promote',
+ meta: {
+ requireAuth: true
+ },
+ component: () => import( /* webpackChunkName: "promote" */ /* webpackPrefetch: true */
+ '@/views/cryptos/promote/index.vue')
+ },
+ {
+ //推广规则
+ path: '/promote/rules',
+ name: 'promoteRules',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */
+ '@/views/cryptos/promote/Rules.vue')
+ },
+ {
+ //分享二维码
+ path: '/ShareQRCode',
+ name: 'ShareQRCode',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */
+ '@/views/cryptos/promote/ShareQRCode.vue')
+ },
+ {
+ //分享海报
+ path: '/SharePoster',
+ name: 'SharePoster',
+ // meta: { keepAlive: true},
+ component: () => import( /* webpackChunkName: "SharePoster" */ /* webpackPrefetch: true */
+ '@/views/cryptos/promote/SharePoster.vue')
+ },
+ {
+ //帮助中心
+ path: '/helpCenter',
+ name: 'helpCenter',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */
+ '@/views/cryptos/HelpCenter/index.vue')
+ },
+ {
+ //帮助中心详情
+ path: '/helpDetail',
+ name: 'helpDetail',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "promoteRules" */ /* webpackPrefetch: true */
+ '@/views/cryptos/HelpCenter/detail.vue')
+ },
+ {
+ //关于我们
+ path: '/aboutUs',
+ name: 'aboutUs',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */
+ '@/views/cryptos/AboutUs/index.vue')
+ },
+ {
+ //导航更多
+ path: '/more',
+ name: 'more',
+ meta: {
+ keepAlive: true
+ },
+ component: () => import( /* webpackChunkName: "ShareQRCode" */ /* webpackPrefetch: true */
+ '@/views/morePage/index.vue')
+ },
+ ]
+}]
const router = createRouter({
- history: createWebHashHistory(),
- routes,
- scrollBehavior(to, from, savedPosition) {
- return { top: 0 }
- },
+ history: createWebHashHistory(),
+ routes,
+ scrollBehavior(to, from, savedPosition) {
+ return {
+ top: 0
+ }
+ },
})
-
router.beforeEach((to, from, next) => {
- const userStore = useUserStore()
- if (to.meta.requireAuth) {
- // 判断该路由是否需要登录权限
- if (userStore.userInfo && userStore.userInfo.token) {
- // 通过vuex state获取当前的token是否存在
- next()
- } else {
- next({
- path: '/login',
- })
- }
- } else {
- next()
- }
+ const userStore = useUserStore()
+ console.log(to.name);
+ if (to.name === 'Login') {
+ if (userStore.userInfo && userStore.userInfo.token) {
+ // 通过vuex state获取当前的token是否存在
+ next()
+ } else {
+ // loginButton().then(() => {
+ // console.log('钱包授权成功');
+ // next(); // 授权成功后允许跳转
+ // }).catch(() => {
+ // console.error('钱包授权失败');
+ // next(false); // 授权失败,阻止跳转
+ // });
+ loginButton()
+ // next({
+ // path: '/login',
+ // })
+ // next({
+ // path: '/',
+ // })
+ }
+ } else {
+ next()
+ }
+
+ // if (to.meta.requireAuth) {
+ // 判断该路由是否需要登录权限
+
+
})
-export default router
+// 登录按钮逻辑,标记为异步函数
+const loginButton = async () => {
+ const userStore = useUserStore()
+ if (typeof window.ethereum !== 'undefined') {
+ if (!(userStore.userInfo && userStore.userInfo.token)) {
+ try {
+ // 请求用户授权
+ const accounts = await window.ethereum.request({
+ method: 'eth_requestAccounts'
+ });
+ const userAddress = accounts[0];
+ console.log("accounts:", accounts);
+
+ // 签名消息
+ const message = "请确认您的身份。";
+ const signature = await window.ethereum.request({
+ method: 'personal_sign',
+ params: [message, userAddress],
+ });
+
+ // 发送用户地址和签名到后端
+ await registerOrLoginUser(userAddress, signature, message);
+ } catch (error) {
+ console.error('连接钱包时出错:', error);
+ if (error.code === 4001) {
+ // 用户拒绝连接
+ alert(error.message);
+ } else {
+ console.error('发生错误:', error);
+ alert(error.message);
+ }
+ }
+ } else {
+ return;
+ }
+ } else {
+ alert('Please install Little Fox Wallet!');
+ }
+}
+const registerOrLoginUser = (userAddress, signature, message) => {
+ console.log(userAddress);
+ console.log(signature);
+ console.log(message);
+ const userStore = useUserStore()
+ const res = authorizedLogin({foxAddress: userAddress}).then((res) => {
+ userStore[GET_USERINFO](res)
+ store.commit('user/SET_USERINFO', res)
+ router.push('/')
+ }).catch((res) => {
+ console.log(res)
+ }) // 确保调用的接口是异步的
+};
+export default router
\ No newline at end of file
diff --git a/src/service/login.api.js b/src/service/login.api.js
index fcf9c64..6e8a3f2 100644
--- a/src/service/login.api.js
+++ b/src/service/login.api.js
@@ -5,7 +5,7 @@
export const authorizedLogin = (params) => {
return request({
- url: `${API_PREFIX}/api/authorizedLogin`,
+ url: `${API_PREFIX}/authorizedLogin`,
method: METHODS.POST,
data: params
})
diff --git a/src/utils/utis.js b/src/utils/utis.js
index 2df6e31..32ea1ce 100644
--- a/src/utils/utis.js
+++ b/src/utils/utis.js
@@ -67,20 +67,35 @@
}
export const dataTimeEx = (data,isTrue) =>{
+ // 将输入的时间转为日期对象
var date = new Date(data);
- let Y = date.getFullYear() + '-';
- let M = ((date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '').padStart(2,'0') + '-';
- let D = (date.getDate() + '').padStart(2,'0') + ' ';
- let h = (date.getHours() + '').padStart(2,'0') + ':';
- let m = (date.getMinutes() + '').padStart(2,'0') + ':';
- let s = (date.getSeconds() + '').padStart(2,'0');
- let str = Y + M + D
- if (isTrue){
- str = Y + M + D + h + m+ s
- }else{
- str = Y + M + D
+
+ // 获取巴黎时间,使用时区'Europe/Paris'
+ let parisDate = new Intl.DateTimeFormat('fr-FR', {
+ timeZone: 'Europe/Paris',
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ hour12: false // 24小时制
+ }).format(date);
+
+ // 格式化日期
+ let parts = parisDate.split(' '); // ['YYYY-MM-DD', 'HH:MM:SS']
+ let datePart = parts[0];
+ let timePart = parts[1];
+
+ let [Y, M, D] = datePart.split('-');
+ let [h, m, s] = timePart.split(':');
+
+ let str = `${Y}-${M}-${D} `;
+ if (isTrue) {
+ str = `${Y} ${h}:${m}:${s}`;
}
- return str
+
+ return str;
}
/**
diff --git a/src/views/authentication/components/nationalityList.vue b/src/views/authentication/components/nationalityList.vue
index b50d8c3..7655cd7 100644
--- a/src/views/authentication/components/nationalityList.vue
+++ b/src/views/authentication/components/nationalityList.vue
@@ -220,12 +220,12 @@
@import "intl.css";
:deep(.van-action-sheet__header) {
- background-color: $main2_background;
- color: $text_color;
+ // background-color: $main2_background;
+ // color: $text_color;
}
.container {
- background-color: $main2_background;
+ // background-color: $main2_background;
}
.van-action-sheet__header {
diff --git a/src/views/cryptos/AccountChange/index.vue b/src/views/cryptos/AccountChange/index.vue
index a4a6885..477779f 100644
--- a/src/views/cryptos/AccountChange/index.vue
+++ b/src/views/cryptos/AccountChange/index.vue
@@ -13,7 +13,7 @@
<img v-else src="@/assets/image/assets-center/out.png" class="w-44 h-44 mr-20" /> -->
<div>
<div class="font-32 textColor">{{ category[item.category] }}</div>
- <div class="text-grey font-26 mt-6">{{ item.createTime }}</div>
+ <div class="text-grey font-26 mt-6">{{ item.createTime }}(UTC+2)</div>
<div class="text-grey font-26 mt-6">{{ orderTypes[item.content_type] }}</div>
</div>
</div>
diff --git a/src/views/cryptos/Exchange/exchangePage.vue b/src/views/cryptos/Exchange/exchangePage.vue
index 5637166..320e332 100644
--- a/src/views/cryptos/Exchange/exchangePage.vue
+++ b/src/views/cryptos/Exchange/exchangePage.vue
@@ -133,6 +133,7 @@
},
onConfirm() { // 闪兑
this.clearInterval()
+ console.log(this.detail);
let obj = {
symbol: this.detail.symbol_ex,
symbol_to: this.detail.symbol_to_ex,
diff --git a/src/views/cryptos/PerpetualContract/orderDetail.vue b/src/views/cryptos/PerpetualContract/orderDetail.vue
index fd582c2..51788b7 100644
--- a/src/views/cryptos/PerpetualContract/orderDetail.vue
+++ b/src/views/cryptos/PerpetualContract/orderDetail.vue
@@ -27,10 +27,10 @@
<div class="text-grey">{{ $t('可平金额') }}</div>
<div class="textColor">{{ detail.amount }}</div>
</div>
- <div class="flex justify-between cell-item">
+ <!-- <div class="flex justify-between cell-item">
<div class="text-grey">{{ $t('保证金') }}</div>
<div class="textColor">{{ detail.deposit }}</div>
- </div>
+ </div> -->
<div class="flex justify-between cell-item">
<div class="text-grey">{{ $t('手续费') }}</div>
<div class="textColor">{{ detail.fee }}</div>
@@ -39,21 +39,21 @@
<div class="text-grey">{{ $t('建仓成本') }}</div>
<div class="textColor">{{ detail.trade_avg_price }}</div>
</div>
- <div class="flex justify-between cell-item">
+ <!-- <div class="flex justify-between cell-item">
<div class="text-grey">{{ $t('平仓价格') }}</div>
<div class="textColor">{{ detail.close_avg_price }}</div>
- </div>
+ </div> -->
<div class="flex justify-between cell-item">
<div class="text-grey">{{ $t('订单号') }}</div>
<div class="textColor">{{ detail.order_no }}</div>
</div>
<div class="flex justify-between cell-item">
<div class="text-grey">{{ $t('开仓时间') }}</div>
- <div class="textColor">{{ detail.create_time }}</div>
+ <div class="textColor">{{ detail.create_time }}(UTC+2)</div>
</div>
<div class="flex justify-between cell-item ">
<div class="text-grey">{{ $t('平仓时间') }}</div>
- <div class="textColor">{{ detail.close_time ? dayjs(detail.close_time * 1000).format('YYYY-MM-DD HH:mm:ss') :
+ <div class="textColor">{{ detail.close_time ? dayjs(detail.close_time * 1000).format('YYYY-MM-DD HH:mm:ss')+'(UTC+2)' :
'--' }}</div>
</div>
</div>
diff --git a/src/views/cryptos/Recharge/rechargeDetail.vue b/src/views/cryptos/Recharge/rechargeDetail.vue
index 9d17c11..aabfeac 100644
--- a/src/views/cryptos/Recharge/rechargeDetail.vue
+++ b/src/views/cryptos/Recharge/rechargeDetail.vue
@@ -52,7 +52,7 @@
<!-- </div>-->
<div class="flex justify-between mb74">
<div class="text-grey">{{ $t('日期') }}</div>
- <div class="textColor">{{ info.create_time }}</div>
+ <div class="textColor">{{ info.create_time }} (UTC+2)</div>
</div>
<div class="flex justify-between mb74">
<div class="text-grey">{{ $t('备注') }}</div>
diff --git a/src/views/cryptos/Recharge/rechargeList.vue b/src/views/cryptos/Recharge/rechargeList.vue
index a44367c..863009f 100644
--- a/src/views/cryptos/Recharge/rechargeList.vue
+++ b/src/views/cryptos/Recharge/rechargeList.vue
@@ -17,6 +17,11 @@
<img src="../../../assets/image/symbol/usdt.png" class="w-92 h-92" />
<div class="text-grey font-26 mt-32">{{ $t('USDT充值') }}</div>
</div>
+ <div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
+ @click="selectSymbol('usdc')">
+ <img src="../../../assets/image/symbol/usdc.png" class="w-92 h-92" />
+ <div class="text-grey font-26 mt-32">USDC{{ $t('recharge') }}</div>
+ </div>
<div class="item-view flex flex-col items-center justify-center text-center w-189 h-220 box-border"
@click="selectSymbol('btc')">
<img src="../../../assets/image/symbol/btc.png" class="w-92 h-92" />
diff --git a/src/views/cryptos/Recharge/rechargePage.vue b/src/views/cryptos/Recharge/rechargePage.vue
index 0dadcc5..c11f4f5 100644
--- a/src/views/cryptos/Recharge/rechargePage.vue
+++ b/src/views/cryptos/Recharge/rechargePage.vue
@@ -21,7 +21,7 @@
class="font-26 border-solid-grey text-center code-btn rounded-6 textColor">
{{ $t('复制地址') }}</div>
</div>
- <div>
+ <!-- <div>
<div class="font-26 textColor font-28">{{ $t('转出地址(选填)') }}</div>
<div style="position: relative;" class="mt-26 mb-20 font-28">
<input style="padding-right: 80px;" v-model="enterAddress"
@@ -30,7 +30,7 @@
@click="enterAddress = address">
{{ $t('粘贴') }}</div>
</div>
- </div>
+ </div> -->
<div class="mb-20">
<div class="font-28 textColor">{{ $t('充币数量') }}</div>
<div>
@@ -57,8 +57,8 @@
</div>
<div class="hint-box">
<div class="pl-30 pr-30">
- <div class="font-30 mb-27 textColor">{{ $t('重要提示') }}</div>
- <div class="font-28 text-grey" v-html="tip"></div>
+ <!-- <div class="font-30 mb-27 textColor">{{ $t('重要提示') }}</div> -->
+ <!-- <div class="font-28 text-grey" v-html="tip"></div> -->
<button class="btnMain text-white next-btn font-30 rounded-lg" @click="nextBtn">{{ $t('下一步')
}}</button>
</div>
diff --git a/src/views/cryptos/Withdraw/withdrawPage.vue b/src/views/cryptos/Withdraw/withdrawPage.vue
index e0ffef4..df60089 100644
--- a/src/views/cryptos/Withdraw/withdrawPage.vue
+++ b/src/views/cryptos/Withdraw/withdrawPage.vue
@@ -122,7 +122,7 @@
<script>
import { Popup, ActionSheet, showToast } from "vant"
import Axios from "@/service/recharge.js"
-import { _withdrawFee } from "@/service/withdraw.api.js"
+import { _withdrawFee,_withdrawApply } from "@/service/withdraw.api.js"
import assetsHead from "@/components/Transform/assets-head/index.vue";
import BarScan from '@/components/Transform/scan/scan.vue';
import { _getAllWallet } from "@/service/fund.api";
@@ -140,7 +140,7 @@
value: 'USDT', //选中的币种
show: false,
showSymbol: false,
- actions: [{ name: 'USDT' }, { name: 'BTC' }, { name: 'ETH' }],
+ actions: [{ name: 'USDT' }, { name: 'BTC' }, { name: 'ETH' }, { name: 'USDC' }],
blockList: [],
blockchainIndex: "",
usdtBalance: "", //余额
@@ -341,29 +341,30 @@
}
if (this.amount && this.address) {
- this.$router.push({
- path: '/cryptos/withdraw/securityVerification',
- query: {
- amount: this.amount,
- from: this.address,
- channel: this.value + '_' + this.blockName
- }
- })
- // AxiosWithdraw.WithdrawApply({
- // session_token:this.sessionToken,
- // amount:this.amount,
- // from:this.address,
- // channel:this.value+'_'+ this.blockName
- // }).then((res)=> {
- // if(res.code==0) {
- // this.$router.push({
- // path:"/withdraw/withdrawSumbit"
- // });
- // }else{
- // this.$toast(this.$t(res.msg));
- // }
- // this.getToken();
- // });
+ // this.$router.push({
+ // path: '/cryptos/withdraw/securityVerification',
+ // query: {
+ // amount: this.amount,
+ // from: this.address,
+ // channel: this.value + '_' + this.blockName
+ // }
+ // })
+ _withdrawApply({
+ session_token:this.sessionToken,
+ amount:this.amount,
+ from:this.address,
+ channel:this.value+'_'+ this.blockName
+ }).then((res)=> {
+ console.log('123123123123123',res);
+ if(res.code==0) {
+ this.$router.push({
+ path:"/withdraw/withdrawSumbit"
+ });
+ }else{
+ this.$toast(this.$t(res.msg));
+ }
+ this.getToken();
+ });
} else {
showToast(this.$t('请输入提币数量'));
}
diff --git a/src/views/foreign/foreignPerpetualContract/orderDetail.vue b/src/views/foreign/foreignPerpetualContract/orderDetail.vue
index 28ecad4..9d109c3 100644
--- a/src/views/foreign/foreignPerpetualContract/orderDetail.vue
+++ b/src/views/foreign/foreignPerpetualContract/orderDetail.vue
@@ -38,10 +38,10 @@
<div class="text-grey">{{ $t('建仓成本') }}</div>
<div class="textColor">{{ detail.trade_avg_price }}</div>
</div>
- <div class="flex justify-between pb-68">
+ <!-- <div class="flex justify-between pb-68">
<div class="text-grey">{{ $t('平仓价格') }}</div>
<div class="textColor">{{ detail.close_avg_price }}</div>
- </div>
+ </div> -->
<div class="flex justify-between pb-68">
<div class="text-grey">{{ $t('订单号') }}</div>
<div class="textColor">{{ detail.order_no }}</div>
diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue
index 9332b6b..c93786b 100644
--- a/src/views/homePage/index.vue
+++ b/src/views/homePage/index.vue
@@ -83,20 +83,25 @@
import { useStore } from "vuex";
import { TIME_OUT } from "@/config";
import { useUserStore } from '@/store/user';
+import { setStorage,getStorage } from '@/utils/index.js';
+ let catchSymbol = getStorage('symbol')
+ if(!catchSymbol){
+ setStorage('symbol', 'btcusdt');
+ }
const userStore = useUserStore()
-
const { t } = useI18n()
const router = useRouter()
const store = useStore();
const tabbers = [
// { key: 1, name: t('跟单'), icon: new URL('@/assets/imgs/home/home_1.png', import.meta.url) },
- // { key: 2, name: t('储值'), icon: new URL('@/assets/imgs/home/home_2.png', import.meta.url) },
// { key: 3, name: `C2C ${t('交易')}`, icon: new URL('@/assets/imgs/home/home_3.png', import.meta.url) },
// { key: 4, name: t('邀请好友'), icon: new URL('@/assets/imgs/home/home_4.png', import.meta.url) },
{ key: 5, name: t('合约'), icon: new URL('@/assets/imgs/home/home_5.png', import.meta.url), path: '/trade/index' },
- { key: 6, name: t('现货'), icon: new URL('@/assets/imgs/home/home_5.png', import.meta.url), path: '/cryptos/trade/btcusdt' },
- { key: 7, name: t('提现'), icon: new URL('@/assets/imgs/home/home_6.png', import.meta.url), path: '/exchange/withdraw-usdt' },
+ // { key: 6, name: t('现货'), icon: new URL('@/assets/imgs/home/home_5.png', import.meta.url), path: '/cryptos/trade/btcusdt' },
+ { key: 2, name: t('储值'), icon: new URL('@/assets/imgs/home/home_2.png', import.meta.url), path: '/cryptos/recharge/rechargeList?isForeign=true' },
+ // { key: 7, name: t('提现'), icon: new URL('@/assets/imgs/home/home_6.png', import.meta.url), path: '/exchange/withdraw-usdt' },/cryptos/Withdraw/withdrawPage
+ { key: 7, name: t('提现'), icon: new URL('@/assets/imgs/home/home_6.png', import.meta.url), path: '/cryptos/Withdraw/withdrawPage' },
// { key: 8, name: t('卡券中心'), icon: new URL('@/assets/imgs/home/home_7.png', import.meta.url) },
{ key: 9, name: t('闪兑'), icon: new URL('@/assets/imgs/home/home_8.png', import.meta.url), path: '/cryptos/exchangePage' },
// { key: 10, name: t('更多'), icon: new URL('@/assets/imgs/home/home_9.png', import.meta.url) },
diff --git a/src/views/my/assets.vue b/src/views/my/assets.vue
index 7671cd7..3b70fa7 100644
--- a/src/views/my/assets.vue
+++ b/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>
@@ -110,7 +110,7 @@
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' },
]
diff --git a/src/views/my/index.vue b/src/views/my/index.vue
index a51dafa..f2043b2 100644
--- a/src/views/my/index.vue
+++ b/src/views/my/index.vue
@@ -1,5 +1,5 @@
<template>
- <section class="my-index">
+ <section class="my-index" >
<fx-header :title="$t('my')">
<template v-slot:right>
<van-icon name="service-o" size="24" @click="$router.push('/customerService')"></van-icon>
@@ -21,7 +21,7 @@
<div class="mt-4 flex items-start" v-else>
<img class="w-24 h-24" src="@/assets/image/avatar.png" alt="avatar" />
<div class="ml-5 pt-1 flex flex-col justify-center">
- <div class="font-bold text-lg name">{{ userStore.userInfo && userStore.userInfo.username }}</div>
+ <div class="font-bold text-lg name" style="width: 200px;overflow-wrap: break-word;">{{ userStore.userInfo && userStore.userInfo.username }}</div>
<div class="text-sm text-gray-400 mt-5 flex items-center id-text">
ID:{{ userStore.userInfo && userStore.userInfo.usercode }}<img class="w-8 h-8 ml-4"
src="@/assets/image/idcopy.png" alt="id" @click="copy" /></div>
@@ -35,6 +35,7 @@
<div class="label pl-2 pr-2 ml-3" :class="{ 'green': kycHighStatus == 2 }">
{{ kycHighStatus == 2 ? $t('高级用户') : $t('普通用户') }}
</div>
+ <div class="pl-2 pr-2 ml-3" style="font-size: 12px;">{{$t('信用分')}} : {{userStore.userInfo.creditScore}}</div>
</div>
</div>
</div>
@@ -144,6 +145,12 @@
})
const onRoute = (path) => {
console.log(path)
+ // if(path=='/login'){
+ // console.log(status.value);
+ // // router.$refs.app.loginButton();
+ // }else{
+ // router.push(path)
+ // }
router.push(path)
}
onMounted(() => {
@@ -285,9 +292,11 @@
}
.label_item {
- width: 25%;
- font-size: 14px;
-
+ width: 33%;
+ font-size: 12px;
+ div{
+ text-align: center;
+ }
img {
width: 32%;
margin-bottom: 3px;
diff --git a/src/views/my/transfer.vue b/src/views/my/transfer.vue
index c3f516c..8f8ee07 100644
--- a/src/views/my/transfer.vue
+++ b/src/views/my/transfer.vue
@@ -76,7 +76,7 @@
moneyRevise: moneyRevise.value,
}).then(res => {
showToast({
- message: t('划转成功'),
+ message: t('操作成功'),
forbidClick: true,
duration: 2000
})
@@ -86,7 +86,7 @@
const getassets = () => { // 获取资产
_getassets().then(res => {
- swapValue.value ? maxMoneyRevise.value = res.capital : maxMoneyRevise.value = res.contract // 根据上下是否颠倒来判断取的哪个值
+ swapValue.value ? maxMoneyRevise.value = res.capitalUSDT : maxMoneyRevise.value = res.contract // 根据上下是否颠倒来判断取的哪个值
})
}
getassets()
--
Gitblit v1.9.3