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
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-08-12 23:35:01
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-30 21:53:33
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class="cms-home flex-v">
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
<script>
|
|
43
43
|
import conf from "../../../config/index";
|
|
44
44
|
import { loadImportScript } from "../../../utils/index";
|
|
45
|
-
import { mapState } from "vuex";
|
|
46
45
|
|
|
47
46
|
// TODO:等MOBI整体抽离后,移除组件引入
|
|
48
47
|
import CmsAcademySectionOne from "./../../cmsComponents/academy/CmsAcademySectionOne.vue";
|
|
@@ -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(() => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @version:
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-04-15 17:10:04
|
|
6
|
-
* @LastEditors:
|
|
7
|
-
* @LastEditTime:
|
|
6
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
+
* @LastEditTime: 2025-10-30 21:53:46
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class="header-wrapper">
|
|
@@ -197,7 +197,6 @@
|
|
|
197
197
|
|
|
198
198
|
<script>
|
|
199
199
|
import _ from 'lodash';
|
|
200
|
-
import { mapState } from 'vuex'
|
|
201
200
|
import { getUnreadCount, getMessage, setRead, setReadById, breakdown} from '../../../api/common'
|
|
202
201
|
import conf from '../../../config/index'
|
|
203
202
|
export default {
|
|
@@ -263,7 +262,12 @@ export default {
|
|
|
263
262
|
}
|
|
264
263
|
},
|
|
265
264
|
computed: {
|
|
266
|
-
|
|
265
|
+
userInfo() {
|
|
266
|
+
return this.$store.state.user.userInfo || {}
|
|
267
|
+
},
|
|
268
|
+
currency() {
|
|
269
|
+
return this.$store.state.user.currency || {}
|
|
270
|
+
},
|
|
267
271
|
logoSrc() {
|
|
268
272
|
let path = this.$t('site_common_logo_base_url') + (window.location.host.indexOf(conf.localHostIp) == -1 ? window.location.hostname: conf.testSite)
|
|
269
273
|
return path
|
|
@@ -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-30 21:54:31
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -492,7 +492,6 @@
|
|
|
492
492
|
<script>
|
|
493
493
|
import _ from "lodash";
|
|
494
494
|
import logo from '../../../assets/img/creator_logo_black.png'
|
|
495
|
-
import { mapState } from "vuex";
|
|
496
495
|
import {
|
|
497
496
|
getUnreadCount,
|
|
498
497
|
getMessage,
|
|
@@ -572,7 +571,12 @@ export default {
|
|
|
572
571
|
},
|
|
573
572
|
},
|
|
574
573
|
computed: {
|
|
575
|
-
|
|
574
|
+
userInfo() {
|
|
575
|
+
return this.$store.state.user.userInfo || {}
|
|
576
|
+
},
|
|
577
|
+
currency() {
|
|
578
|
+
return this.$store.state.user.currency || {}
|
|
579
|
+
},
|
|
576
580
|
logoSrc() {
|
|
577
581
|
let path =
|
|
578
582
|
this.$t("site_common_logo_base_url") +
|
|
@@ -590,7 +594,7 @@ export default {
|
|
|
590
594
|
return walletList.length > 0;
|
|
591
595
|
},
|
|
592
596
|
account() {
|
|
593
|
-
return this.$store.getters
|
|
597
|
+
return this.$store.getters["wallet/account"] || '';
|
|
594
598
|
},
|
|
595
599
|
},
|
|
596
600
|
watch: {
|
|
@@ -933,14 +937,14 @@ export default {
|
|
|
933
937
|
}).then((res) => {
|
|
934
938
|
this.info = res.data;
|
|
935
939
|
this.$store
|
|
936
|
-
.dispatch("getCommonTokenList")
|
|
940
|
+
.dispatch("coin/getCommonTokenList")
|
|
937
941
|
.then((result) => {
|
|
938
942
|
let mbopSymbolCoins = this.$store.getters[
|
|
939
|
-
"commonTokenDetail"
|
|
943
|
+
"wallet/commonTokenDetail"
|
|
940
944
|
](res.data.platform_coin_symbol);
|
|
941
945
|
this.mbopSrc = mbopSymbolCoins.icon_url || "";
|
|
942
946
|
let mobiSymbolCoins = this.$store.getters[
|
|
943
|
-
"commonTokenDetail"
|
|
947
|
+
"wallet/commonTokenDetail"
|
|
944
948
|
](res.data.dividend_coin_symbol);
|
|
945
949
|
this.mobiSrc = mobiSymbolCoins.icon_url || "";
|
|
946
950
|
}).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-30 21:54:44
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -511,7 +511,6 @@
|
|
|
511
511
|
</template>
|
|
512
512
|
<script>
|
|
513
513
|
import _ from "lodash";
|
|
514
|
-
import { mapState } from "vuex";
|
|
515
514
|
import {
|
|
516
515
|
getUnreadCount,
|
|
517
516
|
getMessage,
|
|
@@ -585,7 +584,12 @@ export default {
|
|
|
585
584
|
},
|
|
586
585
|
},
|
|
587
586
|
computed: {
|
|
588
|
-
|
|
587
|
+
userInfo() {
|
|
588
|
+
return this.$store.state.user.userInfo || {}
|
|
589
|
+
},
|
|
590
|
+
currency() {
|
|
591
|
+
return this.$store.state.user.currency || {}
|
|
592
|
+
},
|
|
589
593
|
isCentral() {
|
|
590
594
|
return this.$store.state.siteConfig.isCentral;
|
|
591
595
|
},
|
|
@@ -607,11 +611,11 @@ export default {
|
|
|
607
611
|
return this.$store.state.wallet.walletChainId;
|
|
608
612
|
},
|
|
609
613
|
walletIcon() {
|
|
610
|
-
const networkDetail = this.$store.getters
|
|
614
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](this.chainId, 'L1');
|
|
611
615
|
return networkDetail.networkLogo;
|
|
612
616
|
},
|
|
613
617
|
account() {
|
|
614
|
-
return this.$store.getters
|
|
618
|
+
return this.$store.getters["wallet/account"] || '';
|
|
615
619
|
},
|
|
616
620
|
},
|
|
617
621
|
watch: {
|
|
@@ -773,8 +777,8 @@ export default {
|
|
|
773
777
|
} else {
|
|
774
778
|
this.walletName = "";
|
|
775
779
|
}
|
|
776
|
-
this.$store.dispatch("getCommonTokenList").then((result) => {
|
|
777
|
-
let symbolCoins = this.$store.getters["commonTokenDetail"](
|
|
780
|
+
this.$store.dispatch("coin/getCommonTokenList").then((result) => {
|
|
781
|
+
let symbolCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
778
782
|
"MOBI"
|
|
779
783
|
);
|
|
780
784
|
if (Object.keys(symbolCoins).length) {
|
|
@@ -957,11 +961,11 @@ export default {
|
|
|
957
961
|
'USD',
|
|
958
962
|
}).then((res) => {
|
|
959
963
|
this.info = res.data;
|
|
960
|
-
let mbopCoins = this.$store.getters["commonTokenDetail"](
|
|
964
|
+
let mbopCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
961
965
|
res.data.platform_coin_symbol
|
|
962
966
|
);
|
|
963
967
|
this.mbopSrc = mbopCoins.icon_url || "";
|
|
964
|
-
let mobiCoins = this.$store.getters["commonTokenDetail"](
|
|
968
|
+
let mobiCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
965
969
|
res.data.dividend_coin_symbol
|
|
966
970
|
);
|
|
967
971
|
this.mobiSrc = mobiCoins.icon_url || "";
|
|
@@ -126,10 +126,10 @@ export default {
|
|
|
126
126
|
return this.$store.state.wallet.btcWallet || {}
|
|
127
127
|
},
|
|
128
128
|
account() {
|
|
129
|
-
return this.btcWallet?.btcAccoount || this.$store.getters
|
|
129
|
+
return this.btcWallet?.btcAccoount || this.$store.getters["wallet/account"] || "";
|
|
130
130
|
},
|
|
131
131
|
isLocked() {
|
|
132
|
-
return this.$store.getters
|
|
132
|
+
return this.$store.getters["wallet/isLocked"];
|
|
133
133
|
},
|
|
134
134
|
walletAccount() {
|
|
135
135
|
return this.walletData && this.walletData.getAddress()
|
|
@@ -138,10 +138,10 @@ export default {
|
|
|
138
138
|
return this.$store.state.chainId;
|
|
139
139
|
},
|
|
140
140
|
walletNetworks() {
|
|
141
|
-
return this.$store.getters
|
|
141
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
142
142
|
},
|
|
143
143
|
chainIcon() {
|
|
144
|
-
const networkDetail = this.$store.getters
|
|
144
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
145
145
|
this.chainId,
|
|
146
146
|
"L1"
|
|
147
147
|
);
|
|
@@ -152,7 +152,7 @@ export default {
|
|
|
152
152
|
return this.$store.state.navigation.user;
|
|
153
153
|
},
|
|
154
154
|
walletIcon() {
|
|
155
|
-
return this.$store.getters
|
|
155
|
+
return this.$store.getters["wallet/walletIcon"] || '';
|
|
156
156
|
},
|
|
157
157
|
isBasic() {
|
|
158
158
|
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-30 21:54:55
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -300,7 +300,6 @@
|
|
|
300
300
|
</template>
|
|
301
301
|
<script>
|
|
302
302
|
import _ from "lodash";
|
|
303
|
-
import { mapState } from "vuex";
|
|
304
303
|
import {
|
|
305
304
|
getUnreadCount,
|
|
306
305
|
getMessage,
|
|
@@ -382,7 +381,12 @@ export default {
|
|
|
382
381
|
},
|
|
383
382
|
},
|
|
384
383
|
computed: {
|
|
385
|
-
|
|
384
|
+
userInfo() {
|
|
385
|
+
return this.$store.state.user.userInfo || {}
|
|
386
|
+
},
|
|
387
|
+
currency() {
|
|
388
|
+
return this.$store.state.user.currency || {}
|
|
389
|
+
},
|
|
386
390
|
logoSrc() {
|
|
387
391
|
let path =
|
|
388
392
|
this.$t("site_common_logo_base_url") +
|
|
@@ -401,19 +405,19 @@ export default {
|
|
|
401
405
|
return this.$store.state.wallet.btcWallet || {}
|
|
402
406
|
},
|
|
403
407
|
account() {
|
|
404
|
-
return this.btcWallet?.btcAccoount || this.$store.getters
|
|
408
|
+
return this.btcWallet?.btcAccoount || this.$store.getters["wallet/account"] || "";
|
|
405
409
|
},
|
|
406
410
|
// walletAccount() {
|
|
407
411
|
// return this.walletData && this.walletData.getAddress()
|
|
408
412
|
// },
|
|
409
413
|
isLocked() {
|
|
410
|
-
return this.$store.getters
|
|
414
|
+
return this.$store.getters["wallet/isLocked"] || false
|
|
411
415
|
},
|
|
412
416
|
walletNetworks() {
|
|
413
|
-
return this.$store.getters
|
|
417
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
414
418
|
},
|
|
415
419
|
walletIcon() {
|
|
416
|
-
return this.$store.getters
|
|
420
|
+
return this.$store.getters["wallet/walletIcon"] || '';
|
|
417
421
|
}
|
|
418
422
|
},
|
|
419
423
|
watch: {
|
|
@@ -740,13 +744,13 @@ export default {
|
|
|
740
744
|
currency_name: this.$store.state.user.currency.name,
|
|
741
745
|
}).then((res) => {
|
|
742
746
|
this.info = res.data;
|
|
743
|
-
this.$store.dispatch("getCommonTokenList").then((result) => {
|
|
747
|
+
this.$store.dispatch("coin/getCommonTokenList").then((result) => {
|
|
744
748
|
let mbopSymbolCoins = this.$store.getters[
|
|
745
|
-
"commonTokenDetail"
|
|
749
|
+
"wallet/commonTokenDetail"
|
|
746
750
|
](res.data.platform_coin_symbol, "0");
|
|
747
751
|
this.mbopSrc = mbopSymbolCoins.icon_url || "";
|
|
748
752
|
let mobiSymbolCoins = this.$store.getters[
|
|
749
|
-
"commonTokenDetail"
|
|
753
|
+
"wallet/commonTokenDetail"
|
|
750
754
|
](res.data.dividend_coin_symbol, "0");
|
|
751
755
|
this.mobiSrc = mobiSymbolCoins.icon_url || "";
|
|
752
756
|
}).catch(e => e);
|
|
@@ -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-30 21:55:06
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -357,7 +357,6 @@
|
|
|
357
357
|
</template>
|
|
358
358
|
<script>
|
|
359
359
|
import _ from "lodash";
|
|
360
|
-
import {mapState} from "vuex";
|
|
361
360
|
import {
|
|
362
361
|
getUnreadCount,
|
|
363
362
|
getMessage,
|
|
@@ -434,7 +433,12 @@ export default {
|
|
|
434
433
|
},
|
|
435
434
|
},
|
|
436
435
|
computed: {
|
|
437
|
-
|
|
436
|
+
userInfo() {
|
|
437
|
+
return this.$store.state.user.userInfo || {}
|
|
438
|
+
},
|
|
439
|
+
currency() {
|
|
440
|
+
return this.$store.state.user.currency || {}
|
|
441
|
+
},
|
|
438
442
|
logoUrl() {
|
|
439
443
|
return window.site_config["site_common_logo_image_" + location.hostname];
|
|
440
444
|
// return this.$t("site_common_logo_image_"+ location.hostname);
|
|
@@ -449,20 +453,20 @@ export default {
|
|
|
449
453
|
return this.$store.state.chainId;
|
|
450
454
|
},
|
|
451
455
|
isLocked() {
|
|
452
|
-
return this.$store.getters
|
|
456
|
+
return this.$store.getters["wallet/isLocked"];
|
|
453
457
|
},
|
|
454
458
|
// walletAccount() {
|
|
455
459
|
// return this.walletData && this.walletData.getAddress()
|
|
456
460
|
// },
|
|
457
461
|
chainIcon() {
|
|
458
|
-
const networkDetail = this.$store.getters
|
|
462
|
+
const networkDetail = this.$store.getters["coin/filterNetworkItem"](
|
|
459
463
|
this.chainId,
|
|
460
464
|
"L1"
|
|
461
465
|
);
|
|
462
466
|
return networkDetail.networkLogo;
|
|
463
467
|
},
|
|
464
468
|
account() {
|
|
465
|
-
return this.$store.getters
|
|
469
|
+
return this.$store.getters["wallet/account"] || '';
|
|
466
470
|
},
|
|
467
471
|
beBindWallet() {
|
|
468
472
|
return this.$store.state.be_bind_wallet_connect;
|
|
@@ -471,10 +475,10 @@ export default {
|
|
|
471
475
|
return this.$store.state.navigation.user;
|
|
472
476
|
},
|
|
473
477
|
walletNetworks() {
|
|
474
|
-
return this.$store.getters
|
|
478
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
475
479
|
},
|
|
476
480
|
walletIcon() {
|
|
477
|
-
return this.$store.getters
|
|
481
|
+
return this.$store.getters["wallet/walletIcon"] || '';
|
|
478
482
|
},
|
|
479
483
|
isBasic() {
|
|
480
484
|
return this.$store.state.siteConfig.tradeMoel == 'Basic';
|
|
@@ -644,8 +648,8 @@ export default {
|
|
|
644
648
|
} else {
|
|
645
649
|
this.walletName = "";
|
|
646
650
|
}
|
|
647
|
-
this.$store.dispatch("getCommonTokenList").then((result) => {
|
|
648
|
-
let symbolCoins = this.$store.getters["commonTokenDetail"](
|
|
651
|
+
this.$store.dispatch("coin/getCommonTokenList").then((result) => {
|
|
652
|
+
let symbolCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
649
653
|
"MOBI", "0"
|
|
650
654
|
);
|
|
651
655
|
if (Object.keys(symbolCoins).length) {
|
|
@@ -830,11 +834,11 @@ export default {
|
|
|
830
834
|
'USD',
|
|
831
835
|
}).then((res) => {
|
|
832
836
|
this.info = res.data;
|
|
833
|
-
let mbopCoins = this.$store.getters["commonTokenDetail"](
|
|
837
|
+
let mbopCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
834
838
|
res.data.platform_coin_symbol, "0"
|
|
835
839
|
);
|
|
836
840
|
this.mbopSrc = mbopCoins.icon_url || "";
|
|
837
|
-
let mobiCoins = this.$store.getters["commonTokenDetail"](
|
|
841
|
+
let mobiCoins = this.$store.getters["wallet/commonTokenDetail"](
|
|
838
842
|
res.data.dividend_coin_symbol, "0"
|
|
839
843
|
);
|
|
840
844
|
this.mobiSrc = mobiCoins.icon_url || "";
|
|
@@ -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-30 21:55:27
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -393,7 +393,6 @@
|
|
|
393
393
|
</template>
|
|
394
394
|
<script>
|
|
395
395
|
import _ from "lodash";
|
|
396
|
-
import { mapState } from "vuex";
|
|
397
396
|
import {
|
|
398
397
|
getUnreadCount,
|
|
399
398
|
getMessage,
|
|
@@ -477,7 +476,12 @@ export default {
|
|
|
477
476
|
},
|
|
478
477
|
},
|
|
479
478
|
computed: {
|
|
480
|
-
|
|
479
|
+
userInfo() {
|
|
480
|
+
return this.$store.state.user.userInfo || {}
|
|
481
|
+
},
|
|
482
|
+
currency() {
|
|
483
|
+
return this.$store.state.user.currency || {}
|
|
484
|
+
},
|
|
481
485
|
logoSrc() {
|
|
482
486
|
let path =
|
|
483
487
|
this.$t("site_common_logo_base_url") +
|
|
@@ -495,16 +499,16 @@ export default {
|
|
|
495
499
|
return walletList.length > 0;
|
|
496
500
|
},
|
|
497
501
|
account() {
|
|
498
|
-
return this.$store.getters
|
|
502
|
+
return this.$store.getters["wallet/account"] || '';
|
|
499
503
|
},
|
|
500
504
|
chainId() {
|
|
501
505
|
return this.$store.state.chainId;
|
|
502
506
|
},
|
|
503
507
|
walletNetworks() {
|
|
504
|
-
return this.$store.getters
|
|
508
|
+
return this.$store.getters["wallet/walletNetworks"];
|
|
505
509
|
},
|
|
506
510
|
walletIcon() {
|
|
507
|
-
return this.$store.getters
|
|
511
|
+
return this.$store.getters["wallet/walletIcon"] || '';
|
|
508
512
|
},
|
|
509
513
|
isBasic() {
|
|
510
514
|
return this.$store.state.siteConfig.tradeMoel == 'Basic'
|
|
@@ -836,14 +840,14 @@ export default {
|
|
|
836
840
|
}).then((res) => {
|
|
837
841
|
this.info = res.data;
|
|
838
842
|
this.$store
|
|
839
|
-
.dispatch("getCommonTokenList")
|
|
843
|
+
.dispatch("coin/getCommonTokenList")
|
|
840
844
|
.then((result) => {
|
|
841
845
|
let mbopSymbolCoins = this.$store.getters[
|
|
842
|
-
"commonTokenDetail"
|
|
846
|
+
"wallet/commonTokenDetail"
|
|
843
847
|
](res.data.platform_coin_symbol);
|
|
844
848
|
this.mbopSrc = mbopSymbolCoins.icon_url || "";
|
|
845
849
|
let mobiSymbolCoins = this.$store.getters[
|
|
846
|
-
"commonTokenDetail"
|
|
850
|
+
"wallet/commonTokenDetail"
|
|
847
851
|
](res.data.dividend_coin_symbol);
|
|
848
852
|
this.mobiSrc = mobiSymbolCoins.icon_url || "";
|
|
849
853
|
}).catch(e => e);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author:
|
|
5
5
|
* @Date: 2021-12-17 01:00:24
|
|
6
6
|
* @LastEditors: lewis lewis@everylink.ai
|
|
7
|
-
* @LastEditTime: 2025-
|
|
7
|
+
* @LastEditTime: 2025-10-30 21:55:39
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div :class="['header flex-space', false && active && 'headerActive']">
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
import SubMenu from "../../cmsComponents/paragen/SubMenu.vue";
|
|
98
98
|
import _ from "lodash";
|
|
99
99
|
import conf from "../../../config/index";
|
|
100
|
-
import { mapState } from "vuex";
|
|
101
100
|
import config from "../../../config/index";
|
|
102
101
|
import {unwrapJSONStr} from "../../../utils/parse";
|
|
103
102
|
export default {
|
|
@@ -151,7 +150,12 @@ export default {
|
|
|
151
150
|
};
|
|
152
151
|
},
|
|
153
152
|
computed: {
|
|
154
|
-
|
|
153
|
+
userInfo() {
|
|
154
|
+
return this.$store.state.user.userInfo || {}
|
|
155
|
+
},
|
|
156
|
+
currency() {
|
|
157
|
+
return this.$store.state.user.currency || {}
|
|
158
|
+
},
|
|
155
159
|
logoSrc() {
|
|
156
160
|
let path =
|
|
157
161
|
this.$t("site_common_logo_base_url") +
|
|
@@ -161,7 +165,7 @@ export default {
|
|
|
161
165
|
return path;
|
|
162
166
|
},
|
|
163
167
|
walletIcon() {
|
|
164
|
-
return this.$store.getters
|
|
168
|
+
return this.$store.getters["wallet/walletIcon"] || '';
|
|
165
169
|
}
|
|
166
170
|
},
|
|
167
171
|
watch: {
|
|
@@ -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-30 21:55:49
|
|
5
|
+
* @LastEditors: lewis lewis@everylink.ai
|
|
6
6
|
* @Description: update logoIcon
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -191,7 +191,6 @@
|
|
|
191
191
|
</template>
|
|
192
192
|
<script>
|
|
193
193
|
import _ from 'lodash';
|
|
194
|
-
import { mapState } from 'vuex'
|
|
195
194
|
import { getUnreadCount, getMessage, setRead, setReadById, breakdown} from '../../../api/common'
|
|
196
195
|
import conf from '../../../config/index'
|
|
197
196
|
import { isUserCenter } from '../../../utils/index'
|
|
@@ -258,7 +257,12 @@ export default {
|
|
|
258
257
|
}
|
|
259
258
|
},
|
|
260
259
|
computed: {
|
|
261
|
-
|
|
260
|
+
userInfo() {
|
|
261
|
+
return this.$store.state.user.userInfo || {}
|
|
262
|
+
},
|
|
263
|
+
currency() {
|
|
264
|
+
return this.$store.state.user.currency || {}
|
|
265
|
+
},
|
|
262
266
|
logoSrc() {
|
|
263
267
|
let path = this.$t('site_common_logo_base_url') + (window.location.host.indexOf(conf.localHostIp) == -1 ? window.location.hostname: conf.testSite)
|
|
264
268
|
return path
|
|
@@ -267,7 +271,7 @@ export default {
|
|
|
267
271
|
return this.$route.name
|
|
268
272
|
},
|
|
269
273
|
account() {
|
|
270
|
-
return this.$store.getters
|
|
274
|
+
return this.$store.getters["wallet/account"] || '';
|
|
271
275
|
},
|
|
272
276
|
},
|
|
273
277
|
watch: {
|
|
@@ -412,8 +416,8 @@ export default {
|
|
|
412
416
|
this.walletName = ''
|
|
413
417
|
}
|
|
414
418
|
if (wallet && Object.keys(wallet).length) {
|
|
415
|
-
this.$store.dispatch('getCommonTokenList').then(result => {
|
|
416
|
-
let symbolCoins = this.$store.getters['commonTokenDetail']('MOBI')
|
|
419
|
+
this.$store.dispatch('coin/getCommonTokenList').then(result => {
|
|
420
|
+
let symbolCoins = this.$store.getters['wallet/commonTokenDetail']('MOBI')
|
|
417
421
|
if (Object.keys(symbolCoins).length) {
|
|
418
422
|
this.showMobiBtn = true
|
|
419
423
|
// this.breakdown()
|
|
@@ -551,9 +555,9 @@ export default {
|
|
|
551
555
|
currency_name:this.$store.state.user.currency.name || 'USD',
|
|
552
556
|
}).then(res=> {
|
|
553
557
|
this.info = res.data;
|
|
554
|
-
let mbopCoins = this.$store.getters['commonTokenDetail'](res.data.platform_coin_symbol)
|
|
558
|
+
let mbopCoins = this.$store.getters['wallet/commonTokenDetail'](res.data.platform_coin_symbol)
|
|
555
559
|
this.mbopSrc = mbopCoins.icon_url || ''
|
|
556
|
-
let mobiCoins = this.$store.getters['commonTokenDetail'](res.data.dividend_coin_symbol)
|
|
560
|
+
let mobiCoins = this.$store.getters['wallet/commonTokenDetail'](res.data.dividend_coin_symbol)
|
|
557
561
|
this.mobiSrc = mobiCoins.icon_url || ''
|
|
558
562
|
}).catch(e => e)
|
|
559
563
|
}
|