udxcms 1.0.34 → 1.0.35
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/Header.vue +1 -1
- package/dist/components/businessComponents/HeaderNetworkSelect.vue +1 -1
- 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 +5 -5
- 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 +4 -4
- 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_auction.vue +6 -6
- package/dist/components/pageComponents/header/header_b.vue +5 -5
- package/dist/components/pageComponents/header/header_b1.vue +8 -8
- package/dist/components/pageComponents/header/header_bridge.vue +5 -5
- package/dist/components/pageComponents/header/header_c.vue +9 -9
- package/dist/components/pageComponents/header/header_dex.vue +11 -11
- package/dist/components/pageComponents/header/header_dtx.vue +8 -8
- package/dist/components/pageComponents/header/header_dtx2.vue +1 -1
- package/dist/components/pageComponents/header/header_insure.vue +7 -7
- package/dist/components/pageComponents/header/header_lending.vue +6 -6
- 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 +1 -1
- 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/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 + ''
|
|
@@ -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-24 11:40:28
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description:
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
computed: {
|
|
143
143
|
...mapState('user', ['userInfo']),
|
|
144
144
|
accountIsCustody() {
|
|
145
|
-
return this.$store.getters
|
|
145
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
146
146
|
},
|
|
147
147
|
userCenter() {
|
|
148
148
|
return isUserCenter()
|
|
@@ -157,10 +157,10 @@
|
|
|
157
157
|
return this.$store.getters.supportLayer2;
|
|
158
158
|
},
|
|
159
159
|
supportBridge() {
|
|
160
|
-
return this.$store.getters
|
|
160
|
+
return this.$store.getters["wallet/supportBridge"];
|
|
161
161
|
},
|
|
162
162
|
supportNFT() {
|
|
163
|
-
return this.$store.getters
|
|
163
|
+
return this.$store.getters["wallet/supportNFT"];
|
|
164
164
|
},
|
|
165
165
|
isEthWallet() {
|
|
166
166
|
let ethWallet = this.$store.state.wallet.ethWallet || {}
|
|
@@ -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() {
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
158
158
|
return this.$store.state.chainId;
|
|
159
159
|
},
|
|
160
160
|
chainIcon() {
|
|
161
|
-
const networkDetail = this.$store.getters
|
|
161
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
162
162
|
this.chainId,
|
|
163
163
|
"L1"
|
|
164
164
|
);
|
|
@@ -171,13 +171,13 @@ export default {
|
|
|
171
171
|
return this.$store.state.siteConfig.walletType
|
|
172
172
|
},
|
|
173
173
|
account() {
|
|
174
|
-
return this.$store.getters
|
|
174
|
+
return this.$store.getters["wallet/account"] || '';
|
|
175
175
|
},
|
|
176
176
|
accountIsCustody() {
|
|
177
|
-
return this.$store.getters
|
|
177
|
+
return this.$store.getters["wallet/accountIsCustody"];
|
|
178
178
|
},
|
|
179
179
|
isLocked() {
|
|
180
|
-
return this.$store.getters
|
|
180
|
+
return this.$store.getters["wallet/isLocked"];
|
|
181
181
|
},
|
|
182
182
|
avatar() {
|
|
183
183
|
return this.formartUserIcon(this.userInfo?.profile?.avatar) || '';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-05-29 16:04:29
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-24 10:53:49
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class='first-page'>
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
window.open(url, '_target')
|
|
268
268
|
},
|
|
269
269
|
dealOverview() {
|
|
270
|
-
let dealCoin = this.$store.getters['commonTokenDetail']('MOBI')
|
|
270
|
+
let dealCoin = this.$store.getters['wallet/commonTokenDetail']('MOBI')
|
|
271
271
|
if (Object.keys(dealCoin).length) this.getBlocksOverview()
|
|
272
272
|
},
|
|
273
273
|
getBlocksOverview() {
|
|
@@ -245,14 +245,14 @@ export default {
|
|
|
245
245
|
return this.$store.state.chainId;
|
|
246
246
|
},
|
|
247
247
|
walletNetworks() {
|
|
248
|
-
return this.$store.getters
|
|
248
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
249
249
|
},
|
|
250
250
|
currency() {
|
|
251
251
|
return this.$store.state.user.currency;
|
|
252
252
|
},
|
|
253
253
|
|
|
254
254
|
chainIcon() {
|
|
255
|
-
const networkDetail = this.$store.getters
|
|
255
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
256
256
|
this.chainId,
|
|
257
257
|
"L1"
|
|
258
258
|
);
|
|
@@ -270,8 +270,9 @@ export default {
|
|
|
270
270
|
},
|
|
271
271
|
created() {
|
|
272
272
|
window.addEventListener("scroll", this.scrollFn());
|
|
273
|
-
this.$store.dispatch('fetchNetworkList');
|
|
273
|
+
this.$store.dispatch('coin/fetchNetworkList');
|
|
274
274
|
},
|
|
275
|
+
|
|
275
276
|
mounted() {
|
|
276
277
|
// refresh event
|
|
277
278
|
this.$nextTick(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: Sneed
|
|
3
3
|
* @Date: 2020-11-16 14:38:46
|
|
4
|
-
* @LastEditTime:
|
|
5
|
-
* @LastEditors:
|
|
4
|
+
* @LastEditTime: 2025-10-24 10:54:00
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -590,7 +590,7 @@ export default {
|
|
|
590
590
|
return walletList.length > 0;
|
|
591
591
|
},
|
|
592
592
|
account() {
|
|
593
|
-
return this.$store.getters
|
|
593
|
+
return this.$store.getters["wallet/account"] || '';
|
|
594
594
|
},
|
|
595
595
|
},
|
|
596
596
|
watch: {
|
|
@@ -933,14 +933,14 @@ export default {
|
|
|
933
933
|
}).then((res) => {
|
|
934
934
|
this.info = res.data;
|
|
935
935
|
this.$store
|
|
936
|
-
.dispatch("getCommonTokenList")
|
|
936
|
+
.dispatch("coin/getCommonTokenList")
|
|
937
937
|
.then((result) => {
|
|
938
938
|
let mbopSymbolCoins = this.$store.getters[
|
|
939
|
-
"commonTokenDetail"
|
|
939
|
+
"wallet/commonTokenDetail"
|
|
940
940
|
](res.data.platform_coin_symbol);
|
|
941
941
|
this.mbopSrc = mbopSymbolCoins.icon_url || "";
|
|
942
942
|
let mobiSymbolCoins = this.$store.getters[
|
|
943
|
-
"commonTokenDetail"
|
|
943
|
+
"wallet/commonTokenDetail"
|
|
944
944
|
](res.data.dividend_coin_symbol);
|
|
945
945
|
this.mobiSrc = mobiSymbolCoins.icon_url || "";
|
|
946
946
|
}).catch(e => e);
|
|
@@ -221,10 +221,10 @@ export default {
|
|
|
221
221
|
return this.$store.state.wallet.btcWallet || {}
|
|
222
222
|
},
|
|
223
223
|
account() {
|
|
224
|
-
return this.btcWallet?.btcAccoount || this.$store.getters
|
|
224
|
+
return this.btcWallet?.btcAccoount || this.$store.getters["wallet/account"] || "";
|
|
225
225
|
},
|
|
226
226
|
isLocked() {
|
|
227
|
-
return this.$store.getters
|
|
227
|
+
return this.$store.getters["wallet/isLocked"];
|
|
228
228
|
},
|
|
229
229
|
walletAccount() {
|
|
230
230
|
return this.walletData && this.walletData.getAddress();
|
|
@@ -233,13 +233,13 @@ export default {
|
|
|
233
233
|
return this.$store.state.chainId;
|
|
234
234
|
},
|
|
235
235
|
walletNetworks() {
|
|
236
|
-
return this.$store.getters
|
|
236
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
237
237
|
},
|
|
238
238
|
currency() {
|
|
239
239
|
return this.$store.state.user.currency;
|
|
240
240
|
},
|
|
241
241
|
chainIcon() {
|
|
242
|
-
const networkDetail = this.$store.getters
|
|
242
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
243
243
|
this.chainId,
|
|
244
244
|
"L1"
|
|
245
245
|
);
|
|
@@ -250,7 +250,7 @@ export default {
|
|
|
250
250
|
return this.$store.state.navigation.user;
|
|
251
251
|
},
|
|
252
252
|
walletIcon() {
|
|
253
|
-
return this.$store.getters
|
|
253
|
+
return this.$store.getters["wallet/walletIcon"] || '';
|
|
254
254
|
},
|
|
255
255
|
isBasic() {
|
|
256
256
|
return this.$store.state.siteConfig.tradeMoel == 'Basic';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: Sneed
|
|
3
3
|
* @Date: 2020-11-16 14:38:46
|
|
4
|
-
* @LastEditTime:
|
|
5
|
-
* @LastEditors:
|
|
4
|
+
* @LastEditTime: 2025-10-24 10:54:06
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -607,11 +607,11 @@ export default {
|
|
|
607
607
|
return this.$store.state.wallet.walletChainId;
|
|
608
608
|
},
|
|
609
609
|
walletIcon() {
|
|
610
|
-
const networkDetail = this.$store.getters
|
|
610
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](this.chainId, 'L1');
|
|
611
611
|
return networkDetail.networkLogo;
|
|
612
612
|
},
|
|
613
613
|
account() {
|
|
614
|
-
return this.$store.getters
|
|
614
|
+
return this.$store.getters["wallet/account"] || '';
|
|
615
615
|
},
|
|
616
616
|
},
|
|
617
617
|
watch: {
|
|
@@ -773,8 +773,8 @@ export default {
|
|
|
773
773
|
} else {
|
|
774
774
|
this.walletName = "";
|
|
775
775
|
}
|
|
776
|
-
this.$store.dispatch("getCommonTokenList").then((result) => {
|
|
777
|
-
let symbolCoins = this.$store.getters["commonTokenDetail"](
|
|
776
|
+
this.$store.dispatch("coin/getCommonTokenList").then((result) => {
|
|
777
|
+
let symbolCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
778
778
|
"MOBI"
|
|
779
779
|
);
|
|
780
780
|
if (Object.keys(symbolCoins).length) {
|
|
@@ -957,11 +957,11 @@ export default {
|
|
|
957
957
|
'USD',
|
|
958
958
|
}).then((res) => {
|
|
959
959
|
this.info = res.data;
|
|
960
|
-
let mbopCoins = this.$store.getters["commonTokenDetail"](
|
|
960
|
+
let mbopCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
961
961
|
res.data.platform_coin_symbol
|
|
962
962
|
);
|
|
963
963
|
this.mbopSrc = mbopCoins.icon_url || "";
|
|
964
|
-
let mobiCoins = this.$store.getters["commonTokenDetail"](
|
|
964
|
+
let mobiCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
965
965
|
res.data.dividend_coin_symbol
|
|
966
966
|
);
|
|
967
967
|
this.mobiSrc = mobiCoins.icon_url || "";
|