udxcms 1.0.34 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/h5/axios.js +8 -7
- package/dist/api/index.js +7 -12
- package/dist/components/basicComponents/BaseMenu.vue +2 -2
- package/dist/components/basicComponents/PortfolioMenu.vue +2 -2
- package/dist/components/basicComponents/TokenAmountSelect.vue +1 -1
- package/dist/components/basicComponents/UserMenu.vue +3 -3
- package/dist/components/basicComponents/WalletConnected.vue +4 -4
- package/dist/components/businessComponents/About.vue +3 -3
- package/dist/components/businessComponents/ChainNetWork.vue +5 -4
- package/dist/components/businessComponents/Currency.vue +7 -3
- package/dist/components/businessComponents/Header.vue +1 -1
- package/dist/components/businessComponents/HeaderNetworkSelect.vue +1 -1
- package/dist/components/businessComponents/Language.vue +7 -3
- package/dist/components/businessComponents/NetworkSelect.vue +2 -2
- package/dist/components/businessComponents/Networklist.vue +4 -4
- package/dist/components/businessComponents/SignaturePopup.vue +2 -2
- package/dist/components/businessComponents/userPanel.vue +8 -7
- package/dist/components/businessComponents/walletPanel.vue +5 -4
- package/dist/components/cmsComponents/help/Index.vue +5 -4
- package/dist/components/cmsComponents/wiki/Wiki.vue +3 -4
- package/dist/components/h5Components/ChainNetH5Work.vue +4 -4
- package/dist/components/h5Components/Menu.vue +2 -2
- package/dist/components/h5Components/NavCenter.vue +1 -1
- package/dist/components/h5Components/Top.vue +3 -3
- package/dist/components/h5Components/walletconnectBottom.vue +10 -6
- package/dist/components/pageComponents/academy/academy_mobi.vue +2 -3
- package/dist/components/pageComponents/h5/IndexCommon.vue +3 -3
- package/dist/components/pageComponents/header/header_2mr.vue +4 -3
- package/dist/components/pageComponents/header/header_a.vue +8 -4
- package/dist/components/pageComponents/header/header_auction.vue +12 -8
- package/dist/components/pageComponents/header/header_b.vue +5 -5
- package/dist/components/pageComponents/header/header_b1.vue +14 -10
- package/dist/components/pageComponents/header/header_bridge.vue +5 -5
- package/dist/components/pageComponents/header/header_c.vue +15 -11
- package/dist/components/pageComponents/header/header_dex.vue +17 -13
- package/dist/components/pageComponents/header/header_dtx.vue +14 -10
- package/dist/components/pageComponents/header/header_dtx2.vue +8 -4
- package/dist/components/pageComponents/header/header_insure.vue +13 -9
- package/dist/components/pageComponents/header/header_lending.vue +12 -8
- package/dist/components/pageComponents/header/header_morse.vue +6 -6
- package/dist/components/pageComponents/header/header_morse_wallet.vue +4 -4
- package/dist/components/pageComponents/header/header_paragen.vue +9 -5
- package/dist/components/pageComponents/header/header_pointx.vue +5 -5
- package/dist/components/pageComponents/header/header_vortex.vue +5 -5
- package/dist/index.js +3 -3
- package/dist/utils/connect.js +4 -3
- package/dist/utils/http.js +6 -4
- package/dist/utils/index.js +1 -1
- package/dist/utils/storeBridge.d.ts +10 -0
- package/dist/utils/storeBridge.js +55 -0
- package/dist/views/customService/help/helpDetail.vue +0 -1
- package/dist/views/customService/help/index.vue +1 -2
- package/dist/views/login/login_wallet.vue +3 -3
- package/package.json +1 -1
package/dist/api/h5/axios.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: Sneed
|
|
3
3
|
* @Date: 2020-12-27 22:43:10
|
|
4
|
-
* @LastEditTime: 2025-
|
|
4
|
+
* @LastEditTime: 2025-10-24 11:47:08
|
|
5
5
|
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
@@ -23,20 +23,19 @@ class HttpRequest {
|
|
|
23
23
|
this.queue = {};
|
|
24
24
|
}
|
|
25
25
|
getInsideConfig() {
|
|
26
|
+
var _a, _b, _c;
|
|
26
27
|
// let baseURL = process.env.NODE_ENV=='development' ? '' : i18n.t('site_common_api_url');
|
|
27
28
|
const { store } = getEventCenter();
|
|
28
29
|
const config = {
|
|
29
30
|
baseURL: this.baseUrl,
|
|
30
31
|
retry: retryCount,
|
|
31
32
|
retryDelay: retryDelay,
|
|
32
|
-
// baseURL,
|
|
33
33
|
headers: {
|
|
34
|
-
// 请求头信息
|
|
35
34
|
client_id: 'h5',
|
|
36
35
|
'x-auth-token': Storage.get('TOKEN'),
|
|
37
|
-
|
|
38
|
-
timezone: store.state.timezone,
|
|
39
|
-
country: store.state.country,
|
|
36
|
+
language: (_a = store === null || store === void 0 ? void 0 : store.state) === null || _a === void 0 ? void 0 : _a.language,
|
|
37
|
+
timezone: (_b = store === null || store === void 0 ? void 0 : store.state) === null || _b === void 0 ? void 0 : _b.timezone,
|
|
38
|
+
country: (_c = store === null || store === void 0 ? void 0 : store.state) === null || _c === void 0 ? void 0 : _c.country,
|
|
40
39
|
code: getAreaCode()
|
|
41
40
|
}
|
|
42
41
|
};
|
|
@@ -77,7 +76,9 @@ class HttpRequest {
|
|
|
77
76
|
if (!ignoreExpired && data.code.endsWith('2-023')) {
|
|
78
77
|
// Store.commit('setLandExpiration',true);
|
|
79
78
|
// Store.commit('setLoginSourceInfo',window.$Vue.$route);
|
|
80
|
-
store.dispatch
|
|
79
|
+
if (store === null || store === void 0 ? void 0 : store.dispatch) {
|
|
80
|
+
store.dispatch('user/logout');
|
|
81
|
+
}
|
|
81
82
|
return Promise.reject(data);
|
|
82
83
|
}
|
|
83
84
|
;
|
package/dist/api/index.js
CHANGED
|
@@ -35,10 +35,10 @@ instance.delete = function (url, data, config) {
|
|
|
35
35
|
}));
|
|
36
36
|
};
|
|
37
37
|
instance.interceptors.request.use(function (config) {
|
|
38
|
+
var _a, _b;
|
|
38
39
|
const { store } = getEventCenter();
|
|
39
40
|
let base_url = getBaseUrl(0);
|
|
40
41
|
let base_url_market = (site_config && getMarketApi(getChainId())) || "";
|
|
41
|
-
// console.log('base_url_market:', base_url_market);
|
|
42
42
|
let hostname = window.location.hostname;
|
|
43
43
|
if (base_url.length) {
|
|
44
44
|
config.baseURL = base_url;
|
|
@@ -53,20 +53,15 @@ instance.interceptors.request.use(function (config) {
|
|
|
53
53
|
config.headers["x-auth-token"] = Storage.get("TOKEN");
|
|
54
54
|
config.headers["client_id"] = "WEB";
|
|
55
55
|
config.headers["language"] = localStorage.getItem("language");
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"";
|
|
60
|
-
config.headers["country"] =
|
|
61
|
-
(store.state.user && store.state.user.userInfo && store.state.user.userInfo.country) ||
|
|
62
|
-
"";
|
|
56
|
+
const userInfo = ((_b = (_a = store === null || store === void 0 ? void 0 : store.state) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.userInfo) || {};
|
|
57
|
+
config.headers["timezone"] = userInfo.timezone || getTimeZone() || "";
|
|
58
|
+
config.headers["country"] = userInfo.country || "";
|
|
63
59
|
if (!config.headers["signature"])
|
|
64
60
|
delete config.headers["signature"];
|
|
65
61
|
if (config["x-submit-token"]) {
|
|
66
62
|
config.headers["x-submit-token"] = config["x-submit-token"];
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
|
-
// console.log('config:', config);
|
|
70
65
|
return config;
|
|
71
66
|
}, function (error) {
|
|
72
67
|
return Promise.reject(error);
|
|
@@ -85,15 +80,15 @@ instance.interceptors.response.use(function (response) {
|
|
|
85
80
|
let codeStr = resCode[2] + "-" + resCode[3];
|
|
86
81
|
if (codeStr === "2-023") {
|
|
87
82
|
if (!isNotGoToLogin) {
|
|
88
|
-
store.commit("user/logoutWallet");
|
|
83
|
+
(store === null || store === void 0 ? void 0 : store.commit) && store.commit("user/logoutWallet");
|
|
89
84
|
response.data.showError = true;
|
|
90
|
-
router.push({
|
|
85
|
+
(router === null || router === void 0 ? void 0 : router.push) && router.push({
|
|
91
86
|
name: "login_wallet",
|
|
92
87
|
});
|
|
93
88
|
return Promise.reject(response.data);
|
|
94
89
|
}
|
|
95
90
|
else {
|
|
96
|
-
store.commit("user/logoutWallet");
|
|
91
|
+
(store === null || store === void 0 ? void 0 : store.commit) && store.commit("user/logoutWallet");
|
|
97
92
|
return Promise.resolve(response.data);
|
|
98
93
|
}
|
|
99
94
|
}
|
|
@@ -40,14 +40,14 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
computed: {
|
|
42
42
|
account() {
|
|
43
|
-
return this.$store.getters
|
|
43
|
+
return this.$store.getters["wallet/account"] || "";
|
|
44
44
|
},
|
|
45
45
|
token() {
|
|
46
46
|
return this.$store.state.user.token;
|
|
47
47
|
},
|
|
48
48
|
|
|
49
49
|
accountIsCustody() {
|
|
50
|
-
return this.$store.getters
|
|
50
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
51
51
|
},
|
|
52
52
|
allMenus() {
|
|
53
53
|
return this.$store.state.navigation[this.menuType];
|
|
@@ -56,10 +56,10 @@ export default {
|
|
|
56
56
|
},
|
|
57
57
|
computed: {
|
|
58
58
|
account() {
|
|
59
|
-
return this.$store.getters
|
|
59
|
+
return this.$store.getters["wallet/account"] || "";
|
|
60
60
|
},
|
|
61
61
|
accountIsCustody() {
|
|
62
|
-
return this.$store.getters
|
|
62
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
63
63
|
},
|
|
64
64
|
allMenus() {
|
|
65
65
|
return this.menuType == 'user' ? this.$store.state.navigation[this.menuType].filter(v => v.client == 'WEB') : this.$store.state.navigation[this.menuType];
|
|
@@ -75,7 +75,7 @@ export default {
|
|
|
75
75
|
},
|
|
76
76
|
computed: {
|
|
77
77
|
account() {
|
|
78
|
-
return this.$store.getters
|
|
78
|
+
return this.$store.getters["wallet/account"] || "";
|
|
79
79
|
},
|
|
80
80
|
token() {
|
|
81
81
|
return (
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
);
|
|
84
84
|
},
|
|
85
85
|
accountIsCustody() {
|
|
86
|
-
return this.$store.getters
|
|
86
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
87
87
|
},
|
|
88
88
|
userMenus() {
|
|
89
89
|
return this.$store.state.navigation.user.filter(
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
return Object.keys(ethWallet).length > 0;
|
|
116
116
|
},
|
|
117
117
|
isLocked() {
|
|
118
|
-
return this.$store.getters
|
|
118
|
+
return this.$store.getters["wallet/isLocked"];
|
|
119
119
|
},
|
|
120
120
|
walletLocked() {
|
|
121
121
|
if (this.accountIsCustody) {
|
|
@@ -80,18 +80,18 @@ export default {
|
|
|
80
80
|
return this.$store.state.wallet.btcWallet || {}
|
|
81
81
|
},
|
|
82
82
|
account() {
|
|
83
|
-
return this.btcWallet?.btcAccoount || this.$store.getters
|
|
83
|
+
return this.btcWallet?.btcAccoount || this.$store.getters["wallet/account"];
|
|
84
84
|
},
|
|
85
85
|
accountIsCustody() {
|
|
86
|
-
return this.$store.getters
|
|
86
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
87
87
|
},
|
|
88
88
|
isLocked() {
|
|
89
|
-
return this.$store.getters
|
|
89
|
+
return this.$store.getters["wallet/isLocked"];
|
|
90
90
|
},
|
|
91
91
|
|
|
92
92
|
walletIcon() {
|
|
93
93
|
return window.localStorage.getItem("selectedIcon") || "";
|
|
94
|
-
// return this.$store.getters
|
|
94
|
+
// return this.$store.getters["wallet/walletIcon"] || '';
|
|
95
95
|
},
|
|
96
96
|
connetcedWalletAccount() {
|
|
97
97
|
return this.formatAccount(
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-08-10 16:45:41
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-24 10:53:42
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class='cms-about'>
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
}).catch(e => e)
|
|
229
229
|
},
|
|
230
230
|
dealOverview() {
|
|
231
|
-
let symbolCoins = this.$store.getters['commonTokenDetail'](this.tokenSymbol, '0')
|
|
231
|
+
let symbolCoins = this.$store.getters['wallet/commonTokenDetail'](this.tokenSymbol, '0')
|
|
232
232
|
if (Object.keys(symbolCoins).length) {
|
|
233
233
|
this.getBlocksOverview()
|
|
234
234
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-10-26 16:50:22
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-24 11:03:49
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<!-- <div class='networklist' v-if="type == 'chainNetWork' || !multiChain && tradeChainShow">
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
computed: {
|
|
65
65
|
layer1NetworkList() {
|
|
66
|
-
return this.$store.getters
|
|
66
|
+
return this.$store.getters['coin/layer1NetworkList'];
|
|
67
67
|
},
|
|
68
68
|
supportChains() {
|
|
69
69
|
return this.symbolConfig.support_chains || ''
|
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
})
|
|
118
118
|
},
|
|
119
|
+
|
|
119
120
|
layer1NetworkList() {
|
|
120
121
|
console.log('change')
|
|
121
122
|
},
|
|
@@ -177,7 +178,7 @@
|
|
|
177
178
|
},
|
|
178
179
|
async setChainArrLists() {
|
|
179
180
|
if (!this.layer1NetworkList.length) {
|
|
180
|
-
await this.$store.dispatch('fetchNetworkList')
|
|
181
|
+
await this.$store.dispatch('coin/fetchNetworkList')
|
|
181
182
|
}
|
|
182
183
|
try {
|
|
183
184
|
this.chainInitId = this.chainId = this.$store.state.chainId + ''
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author:
|
|
3
3
|
* @Date: 2020-11-19 12:38:02
|
|
4
|
-
* @LastEditTime: 2025-10-
|
|
4
|
+
* @LastEditTime: 2025-10-30 21:49:14
|
|
5
5
|
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<script>
|
|
31
|
-
import { mapState } from 'vuex'
|
|
32
31
|
import { getCurrency, setCurrency, setLanguage, getLanguages } from '../../api/common'
|
|
33
32
|
import { refreshEvents } from '../../utils/index'
|
|
34
33
|
// import { getLanguagesPk, updateSiteIcon } from '@/lang'
|
|
@@ -77,7 +76,12 @@
|
|
|
77
76
|
}
|
|
78
77
|
},
|
|
79
78
|
computed: {
|
|
80
|
-
|
|
79
|
+
currency() {
|
|
80
|
+
return this.$store.state.user.currency || {}
|
|
81
|
+
},
|
|
82
|
+
userInfo() {
|
|
83
|
+
return this.$store.state.user.userInfo || {}
|
|
84
|
+
},
|
|
81
85
|
currencyList() {
|
|
82
86
|
return this.$store.state.cmsstore.currencyList || []
|
|
83
87
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author:
|
|
3
3
|
* @Date: 2020-11-19 12:38:02
|
|
4
|
-
* @LastEditTime: 2025-
|
|
4
|
+
* @LastEditTime: 2025-10-30 21:49:33
|
|
5
5
|
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
|
-
import { mapState } from 'vuex'
|
|
23
22
|
import { getCurrency, setCurrency, setLanguage, getLanguages } from '../../api/common'
|
|
24
23
|
import { refreshEvents } from '../../utils/index'
|
|
25
24
|
import { getEventCenter } from '../../index'
|
|
@@ -58,7 +57,12 @@
|
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
59
|
computed: {
|
|
61
|
-
|
|
60
|
+
currency() {
|
|
61
|
+
return this.$store.state.user.currency || {}
|
|
62
|
+
},
|
|
63
|
+
userInfo() {
|
|
64
|
+
return this.$store.state.user.userInfo || {}
|
|
65
|
+
},
|
|
62
66
|
currencyList() {
|
|
63
67
|
return this.$store.state.cmsstore.currencyList || []
|
|
64
68
|
}
|
|
@@ -135,11 +135,11 @@ export default {
|
|
|
135
135
|
if (checkNetworkChainId) {
|
|
136
136
|
let wallets = []
|
|
137
137
|
|
|
138
|
-
const networkDetail = this.$store.getters
|
|
138
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
139
139
|
checkNetworkChainId,
|
|
140
140
|
"L1"
|
|
141
141
|
) || {};
|
|
142
|
-
const currentNetwork = this.$store.getters
|
|
142
|
+
const currentNetwork = this.$store.getters["coin/filterNetworkItem"](
|
|
143
143
|
currentChainId,
|
|
144
144
|
"L1"
|
|
145
145
|
) || {}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-10-26 16:50:22
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-24 11:08:09
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class='network-box' :style="{visibility: chainShow ? 'visible': 'hidden'}">
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
computed: {
|
|
45
45
|
layer1NetworkList() {
|
|
46
|
-
return this.$store.getters
|
|
46
|
+
return this.$store.getters['coin/layer1NetworkList'];
|
|
47
47
|
},
|
|
48
48
|
networkNeedChange() {
|
|
49
49
|
return this.$route.name + this.$store.state.wallet.walletChainId
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
},
|
|
151
151
|
async setChainArrLists() {
|
|
152
152
|
if (!this.layer1NetworkList.length) {
|
|
153
|
-
await this.$store.dispatch('fetchNetworkList')
|
|
153
|
+
await this.$store.dispatch('coin/fetchNetworkList')
|
|
154
154
|
}
|
|
155
155
|
try {
|
|
156
156
|
// 网络配置
|
|
@@ -71,7 +71,7 @@ the content and trust the requesting site.</div>
|
|
|
71
71
|
},
|
|
72
72
|
computed: {
|
|
73
73
|
walletNetworks() {
|
|
74
|
-
return this.$store.getters
|
|
74
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
75
75
|
},
|
|
76
76
|
curChain() {
|
|
77
77
|
let chainId = this.signatureConfig.chainId
|
|
@@ -83,7 +83,7 @@ the content and trust the requesting site.</div>
|
|
|
83
83
|
},
|
|
84
84
|
walletLogo() {
|
|
85
85
|
let address = this.userInfo.uid || 'wallet-signature'
|
|
86
|
-
let logoUrl = address && this.$store.getters
|
|
86
|
+
let logoUrl = address && this.$store.getters["wallet/getWalletAddressImg"](address) || ''
|
|
87
87
|
return logoUrl
|
|
88
88
|
},
|
|
89
89
|
uid() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author:
|
|
3
3
|
* @Date: 2020-11-17 10:20:07
|
|
4
|
-
* @LastEditTime:
|
|
5
|
-
* @LastEditors:
|
|
4
|
+
* @LastEditTime: 2025-10-30 21:49:47
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -103,7 +103,6 @@
|
|
|
103
103
|
|
|
104
104
|
<script>
|
|
105
105
|
import { logOut } from '../../api/common'
|
|
106
|
-
import { mapState } from 'vuex'
|
|
107
106
|
import { isUserCenter, emitEvents, onEvents} from '../../utils/index'
|
|
108
107
|
import conf from '../../config/index'
|
|
109
108
|
let closeFn
|
|
@@ -140,9 +139,11 @@
|
|
|
140
139
|
}
|
|
141
140
|
},
|
|
142
141
|
computed: {
|
|
143
|
-
|
|
142
|
+
userInfo() {
|
|
143
|
+
return this.$store.state.user?.userInfo || {}
|
|
144
|
+
},
|
|
144
145
|
accountIsCustody() {
|
|
145
|
-
return this.$store.getters
|
|
146
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
146
147
|
},
|
|
147
148
|
userCenter() {
|
|
148
149
|
return isUserCenter()
|
|
@@ -157,10 +158,10 @@
|
|
|
157
158
|
return this.$store.getters.supportLayer2;
|
|
158
159
|
},
|
|
159
160
|
supportBridge() {
|
|
160
|
-
return this.$store.getters
|
|
161
|
+
return this.$store.getters["wallet/supportBridge"];
|
|
161
162
|
},
|
|
162
163
|
supportNFT() {
|
|
163
|
-
return this.$store.getters
|
|
164
|
+
return this.$store.getters["wallet/supportNFT"];
|
|
164
165
|
},
|
|
165
166
|
isEthWallet() {
|
|
166
167
|
let ethWallet = this.$store.state.wallet.ethWallet || {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author:
|
|
3
3
|
* @Date: 2020-11-17 10:20:07
|
|
4
|
-
* @LastEditTime:
|
|
5
|
-
* @LastEditors:
|
|
4
|
+
* @LastEditTime: 2025-10-30 21:50:09
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
|
|
47
47
|
<script>
|
|
48
48
|
import { logOut } from '../../api/common'
|
|
49
|
-
import { mapState } from 'vuex'
|
|
50
49
|
import { isUserCenter, emitEvents, onEvents} from '../../utils/index'
|
|
51
50
|
import conf from '../../config/index'
|
|
52
51
|
let closeFn
|
|
@@ -83,7 +82,9 @@
|
|
|
83
82
|
}
|
|
84
83
|
},
|
|
85
84
|
computed: {
|
|
86
|
-
|
|
85
|
+
userInfo() {
|
|
86
|
+
return this.$store.state.user?.userInfo || {}
|
|
87
|
+
},
|
|
87
88
|
userCenter() {
|
|
88
89
|
return isUserCenter()
|
|
89
90
|
},
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
|
|
59
59
|
<script>
|
|
60
|
-
import { mapState } from "vuex";
|
|
61
60
|
import _ from 'lodash';
|
|
62
61
|
|
|
63
62
|
function getScrollTop() {
|
|
@@ -92,9 +91,11 @@ export default {
|
|
|
92
91
|
|
|
93
92
|
components: {},
|
|
94
93
|
|
|
95
|
-
computed:
|
|
96
|
-
lang
|
|
97
|
-
|
|
94
|
+
computed: {
|
|
95
|
+
lang() {
|
|
96
|
+
return this.$store.state.language
|
|
97
|
+
}
|
|
98
|
+
},
|
|
98
99
|
|
|
99
100
|
mounted() {
|
|
100
101
|
window.addEventListener('scroll', this.scrollFn)
|
|
@@ -171,7 +171,6 @@ import NavBread from "./NavBread";
|
|
|
171
171
|
|
|
172
172
|
import Vue from "vue";
|
|
173
173
|
import { Icon, Drawer, Menu } from "ant-design-vue";
|
|
174
|
-
import { mapState } from "vuex";
|
|
175
174
|
|
|
176
175
|
|
|
177
176
|
import hljs from "./lib/highlight/lib/index.js"; // 引入 highlight.js
|
|
@@ -266,9 +265,9 @@ export default {
|
|
|
266
265
|
};
|
|
267
266
|
},
|
|
268
267
|
computed: {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
268
|
+
lang() {
|
|
269
|
+
return this.$store.state.language
|
|
270
|
+
}
|
|
272
271
|
},
|
|
273
272
|
watch: {
|
|
274
273
|
list: {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2022-02-10 14:24:36
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-24 11:10:28
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class='rinkeby-box'>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
computed: {
|
|
43
43
|
layer1NetworkList() {
|
|
44
|
-
return this.$store.getters
|
|
44
|
+
return this.$store.getters['wallet/walletNetworks'];
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
watch: {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
async setChainArrLists() {
|
|
123
123
|
if (!this.layer1NetworkList.length) {
|
|
124
|
-
await this.$store.dispatch('fetchNetworkList')
|
|
124
|
+
await this.$store.dispatch('coin/fetchNetworkList')
|
|
125
125
|
}
|
|
126
126
|
try {
|
|
127
127
|
this.chainInitId = this.chainId = this.$store.state.chainId + ''
|
|
@@ -121,7 +121,7 @@ export default {
|
|
|
121
121
|
}).sort((a, b) => a.sort - b.sort < 0 ? -1 : 1);
|
|
122
122
|
},
|
|
123
123
|
accountIsCustody() {
|
|
124
|
-
return this.$store.getters
|
|
124
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
125
125
|
},
|
|
126
126
|
userList() {
|
|
127
127
|
let menuIds = []
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
return result.sort((a, b) => a.sort - b.sort);
|
|
155
155
|
},
|
|
156
156
|
account() {
|
|
157
|
-
return this.$store.getters
|
|
157
|
+
return this.$store.getters["wallet/account"] || "";
|
|
158
158
|
},
|
|
159
159
|
allMenus() {
|
|
160
160
|
let menuType = 'portfolio'
|
|
@@ -186,16 +186,16 @@ export default {
|
|
|
186
186
|
return this.$store.state.trade && this.$store.state.trade.tradeChainId;
|
|
187
187
|
},
|
|
188
188
|
account() {
|
|
189
|
-
return this.$store.getters
|
|
189
|
+
return this.$store.getters["wallet/account"] || '';
|
|
190
190
|
},
|
|
191
191
|
walletIcon() {
|
|
192
|
-
return this.$store.getters
|
|
192
|
+
return this.$store.getters["wallet/walletIcon"] || window.localStorage.getItem("selectedIcon") || '';
|
|
193
193
|
},
|
|
194
194
|
walletTypes() {
|
|
195
195
|
return this.$store.state.siteConfig.walletTypes;
|
|
196
196
|
},
|
|
197
197
|
accountIsCustody() {
|
|
198
|
-
return this.$store.getters
|
|
198
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
199
199
|
},
|
|
200
200
|
|
|
201
201
|
chainSelectVisible() {
|
|
@@ -129,7 +129,6 @@
|
|
|
129
129
|
<script>
|
|
130
130
|
import { copyText } from '../../utils/index'
|
|
131
131
|
import { logOut, breakdown } from '../../api/common'
|
|
132
|
-
import { mapState } from 'vuex';
|
|
133
132
|
import { toDataUrl } from '../../utils/blockies'
|
|
134
133
|
export default {
|
|
135
134
|
data() {
|
|
@@ -147,7 +146,12 @@ export default {
|
|
|
147
146
|
}
|
|
148
147
|
},
|
|
149
148
|
computed:{
|
|
150
|
-
|
|
149
|
+
userInfo() {
|
|
150
|
+
return this.$store.state.user.userInfo || {}
|
|
151
|
+
},
|
|
152
|
+
currency() {
|
|
153
|
+
return this.$store.state.user.currency || {}
|
|
154
|
+
},
|
|
151
155
|
wallet() {
|
|
152
156
|
return this.$store.state.wallet.wallet
|
|
153
157
|
},
|
|
@@ -158,7 +162,7 @@ export default {
|
|
|
158
162
|
return this.$store.state.chainId;
|
|
159
163
|
},
|
|
160
164
|
chainIcon() {
|
|
161
|
-
const networkDetail = this.$store.getters
|
|
165
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
162
166
|
this.chainId,
|
|
163
167
|
"L1"
|
|
164
168
|
);
|
|
@@ -171,13 +175,13 @@ export default {
|
|
|
171
175
|
return this.$store.state.siteConfig.walletType
|
|
172
176
|
},
|
|
173
177
|
account() {
|
|
174
|
-
return this.$store.getters
|
|
178
|
+
return this.$store.getters["wallet/account"] || '';
|
|
175
179
|
},
|
|
176
180
|
accountIsCustody() {
|
|
177
|
-
return this.$store.getters
|
|
181
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
178
182
|
},
|
|
179
183
|
isLocked() {
|
|
180
|
-
return this.$store.getters
|
|
184
|
+
return this.$store.getters["wallet/isLocked"];
|
|
181
185
|
},
|
|
182
186
|
avatar() {
|
|
183
187
|
return this.formartUserIcon(this.userInfo?.profile?.avatar) || '';
|