udxcms 1.0.2 → 1.0.4
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/router/index.d.ts +1 -1
- package/dist/router/index.js +2 -2
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +4 -4
- package/dist/views/customService/academy.vue +78 -0
- package/dist/views/customService/api.vue +120 -0
- package/dist/views/customService/dapp.vue +42 -0
- package/dist/views/customService/dappDetail.vue +124 -0
- package/dist/views/customService/detail.vue +155 -0
- package/dist/views/customService/doc.vue +124 -0
- package/dist/views/customService/ecosystem/index.vue +374 -0
- package/dist/views/customService/help/entry.vue +29 -0
- package/dist/views/customService/help/helpDetail.vue +167 -0
- package/dist/views/customService/help/index.vue +145 -0
- package/dist/views/customService/help/nav.vue +68 -0
- package/dist/views/customService/recruit.vue +133 -0
- package/dist/views/customService/sdk.vue +126 -0
- package/dist/views/customService/team.vue +245 -0
- package/dist/views/customService/term.vue +88 -0
- package/dist/views/customService/vote.vue +133 -0
- package/dist/views/customService/whitepaper.vue +126 -0
- package/dist/views/customService/wiki.vue +126 -0
- package/dist/views/error/error404.vue +76 -0
- package/dist/views/error/error500.vue +74 -0
- package/dist/views/index.js +23 -48
- package/dist/views/login/login_wallet.vue +229 -0
- package/package.json +2 -2
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<!-- wiki -->
|
|
2
|
+
<template>
|
|
3
|
+
<div class="page-wiki">
|
|
4
|
+
<div class="visible-pc">
|
|
5
|
+
<Header :showMiddleInfo="true" />
|
|
6
|
+
</div>
|
|
7
|
+
<div class="visible-h5">
|
|
8
|
+
<Top class="top" />
|
|
9
|
+
</div>
|
|
10
|
+
<div class="wiki-container">
|
|
11
|
+
<div class="wiki-article" v-if="list.length">
|
|
12
|
+
<Wiki :list="list" :initPath="initPath"></Wiki>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<!-- loading -->
|
|
16
|
+
<div v-else class="loading-wrap">
|
|
17
|
+
<site-loading></site-loading>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<Footer />
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import Wiki from "../../components/cmsComponents/wiki/Wiki.vue";
|
|
27
|
+
import conf from "../../config/index";
|
|
28
|
+
import { loadImportScript, isPhone } from "../../utils/index";
|
|
29
|
+
import { mapState } from "vuex";
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: "WikiPage",
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
// color: window.themeColor || "var(--primary-color)",
|
|
36
|
+
list: [], // help list data
|
|
37
|
+
navList: [{ name: this.$t("cms_help_bread_title") }],
|
|
38
|
+
// article: {},
|
|
39
|
+
isPhone: isPhone(),
|
|
40
|
+
// initName: [],
|
|
41
|
+
initPath: "",
|
|
42
|
+
// nextPageList: [{ show: false }, { show: false }],
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
components: {
|
|
47
|
+
Wiki,
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
computed: mapState({
|
|
51
|
+
lang: (state) => state.language,
|
|
52
|
+
}),
|
|
53
|
+
|
|
54
|
+
created() {
|
|
55
|
+
console.log('this.$route', this.$route)
|
|
56
|
+
this.getListData();
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
methods: {
|
|
60
|
+
/**
|
|
61
|
+
* 获取wiki树结构
|
|
62
|
+
*/
|
|
63
|
+
getListData() {
|
|
64
|
+
const hostName = window.mainHostname;
|
|
65
|
+
const url = `${conf.sitePath}${hostName}/${this.lang}/wiki/all/classify_tree.js`;
|
|
66
|
+
loadImportScript(url, null, "message")
|
|
67
|
+
.then((res) => {
|
|
68
|
+
console.log("res", res);
|
|
69
|
+
this.list = res.filter((v) => {
|
|
70
|
+
return v.content && v.content.length > 0;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
})
|
|
74
|
+
.catch(() => false);
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* 获取文章
|
|
78
|
+
* */
|
|
79
|
+
getArticle(path) {
|
|
80
|
+
const hostName = window.mainHostname;
|
|
81
|
+
const url = `${conf.sitePath}${hostName}/${this.lang}/wiki/${path}.js`;
|
|
82
|
+
this.article = {};
|
|
83
|
+
loadImportScript(url, null, "message")
|
|
84
|
+
.then((res) => {
|
|
85
|
+
console.log("article res", res);
|
|
86
|
+
this.article = res;
|
|
87
|
+
})
|
|
88
|
+
.catch(() => false);
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
</script>
|
|
93
|
+
<style lang='less' scoped>
|
|
94
|
+
.page-wiki {
|
|
95
|
+
// background: #000;
|
|
96
|
+
font-size: 16px;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
min-height: 100vh;
|
|
100
|
+
// padding-top: 70px;
|
|
101
|
+
|
|
102
|
+
.wiki-container {
|
|
103
|
+
// min-height: 100vh;
|
|
104
|
+
flex: auto;
|
|
105
|
+
display: flex;
|
|
106
|
+
}
|
|
107
|
+
.wiki-article{
|
|
108
|
+
flex: auto;
|
|
109
|
+
}
|
|
110
|
+
.content {
|
|
111
|
+
margin-bottom: 70px;
|
|
112
|
+
}
|
|
113
|
+
.nav-bread {
|
|
114
|
+
// width: 1100px;
|
|
115
|
+
margin: 70px auto 40px;
|
|
116
|
+
}
|
|
117
|
+
.loading-wrap {
|
|
118
|
+
flex: auto;
|
|
119
|
+
text-align: center;
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
</style>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: Leo
|
|
3
|
+
* @Date: 2020-11-13
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="error">
|
|
7
|
+
<h3 class="e-h3">PAGE NOT FOUND</h3>
|
|
8
|
+
<span class="e-tips">Sorry we couldn't find what you were looking for.</span>
|
|
9
|
+
<span class="e-btn" @click="goHome">Back Home ></span>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: "error404",
|
|
16
|
+
computed: {
|
|
17
|
+
},
|
|
18
|
+
methods:{
|
|
19
|
+
goHome(){
|
|
20
|
+
this.$router.push({
|
|
21
|
+
path: '/'
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="less" scoped>
|
|
30
|
+
.error {
|
|
31
|
+
width: 100%;
|
|
32
|
+
min-height: 977px;
|
|
33
|
+
background: #F5F6FA;
|
|
34
|
+
padding-top: 220px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: center;
|
|
38
|
+
.e-h3{
|
|
39
|
+
height: 42px;
|
|
40
|
+
font-size: 42px;
|
|
41
|
+
font-family: FontSemiBold;
|
|
42
|
+
// font-weight: SemiBold;
|
|
43
|
+
text-align: center;
|
|
44
|
+
color: var(--text-color);
|
|
45
|
+
line-height: 42px;
|
|
46
|
+
letter-spacing: 5px;
|
|
47
|
+
margin-bottom: 20px;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
}
|
|
50
|
+
.e-tips{
|
|
51
|
+
height: 20px;
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
font-family: Font;
|
|
54
|
+
|
|
55
|
+
text-align: center;
|
|
56
|
+
color: var(--text-color-placeholder);
|
|
57
|
+
line-height: 20px;
|
|
58
|
+
margin-bottom: 50px;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
}
|
|
62
|
+
.e-btn{
|
|
63
|
+
width: 190px;
|
|
64
|
+
height: 48px;
|
|
65
|
+
border: 1px solid var(--text-color);
|
|
66
|
+
border-radius: 6px;
|
|
67
|
+
font-size: 18px;
|
|
68
|
+
font-family: FontMedium;
|
|
69
|
+
text-align: center;
|
|
70
|
+
color: var(--text-color);
|
|
71
|
+
line-height: 48px;
|
|
72
|
+
display: inline-block;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: Leo
|
|
3
|
+
* @Date: 2020-11-13
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="error">
|
|
7
|
+
<h3 class="e-h3">INTERNAL SERVER ERROR</h3>
|
|
8
|
+
<span class="e-tips">Oops.Something is technically wrong.Sorry about that.</span>
|
|
9
|
+
<span class="e-btn" @click="goHome">Back Home ></span>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: "error500",
|
|
16
|
+
computed: {
|
|
17
|
+
},
|
|
18
|
+
methods:{
|
|
19
|
+
goHome(){
|
|
20
|
+
this.$router.push({
|
|
21
|
+
path: '/'
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="less" scoped>
|
|
30
|
+
.error {
|
|
31
|
+
width: 100%;
|
|
32
|
+
min-height: 977px;
|
|
33
|
+
background: #F5F6FA;
|
|
34
|
+
padding-top: 220px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: center;
|
|
38
|
+
.e-h3{
|
|
39
|
+
height: 42px;
|
|
40
|
+
font-size: 42px;
|
|
41
|
+
font-family: FontSemiBold;
|
|
42
|
+
// font-weight: SemiBold;
|
|
43
|
+
text-align: center;
|
|
44
|
+
color: var(--text-color);
|
|
45
|
+
line-height: 42px;
|
|
46
|
+
letter-spacing: 5px;
|
|
47
|
+
margin-bottom: 20px;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
}
|
|
50
|
+
.e-tips{
|
|
51
|
+
height: 20px;
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
font-family: Font;
|
|
54
|
+
|
|
55
|
+
text-align: center;
|
|
56
|
+
color: var(--text-color-placeholder);
|
|
57
|
+
line-height: 20px;
|
|
58
|
+
margin-bottom: 50px;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
}
|
|
61
|
+
.e-btn{
|
|
62
|
+
width: 190px;
|
|
63
|
+
height: 48px;
|
|
64
|
+
border: 1px solid var(--text-color);
|
|
65
|
+
border-radius: 6px;
|
|
66
|
+
font-size: 18px;
|
|
67
|
+
font-family: FontMedium;
|
|
68
|
+
text-align: center;
|
|
69
|
+
color: var(--text-color);
|
|
70
|
+
line-height: 48px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</style>
|
package/dist/views/index.js
CHANGED
|
@@ -1,51 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LoginWallet = exports.Error500 = exports.Error404 = exports.Wiki = exports.Whitepaper = exports.Vote = exports.Term = exports.Team = exports.Sdk = exports.Recruit = exports.HelpNav = exports.HelpIndex = exports.HelpDetail = exports.HelpEntry = exports.Ecosystem = exports.Doc = exports.Detail = exports.DappDetail = exports.Dapp = exports.Api = exports.Academy = void 0;
|
|
7
1
|
// Custom Service Views
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Object.defineProperty(exports, "HelpIndex", { enumerable: true, get: function () { return __importDefault(index_vue_2).default; } });
|
|
28
|
-
var nav_vue_1 = require("./customService/help/nav.vue");
|
|
29
|
-
Object.defineProperty(exports, "HelpNav", { enumerable: true, get: function () { return __importDefault(nav_vue_1).default; } });
|
|
30
|
-
var recruit_vue_1 = require("./customService/recruit.vue");
|
|
31
|
-
Object.defineProperty(exports, "Recruit", { enumerable: true, get: function () { return __importDefault(recruit_vue_1).default; } });
|
|
32
|
-
var sdk_vue_1 = require("./customService/sdk.vue");
|
|
33
|
-
Object.defineProperty(exports, "Sdk", { enumerable: true, get: function () { return __importDefault(sdk_vue_1).default; } });
|
|
34
|
-
var team_vue_1 = require("./customService/team.vue");
|
|
35
|
-
Object.defineProperty(exports, "Team", { enumerable: true, get: function () { return __importDefault(team_vue_1).default; } });
|
|
36
|
-
var term_vue_1 = require("./customService/term.vue");
|
|
37
|
-
Object.defineProperty(exports, "Term", { enumerable: true, get: function () { return __importDefault(term_vue_1).default; } });
|
|
38
|
-
var vote_vue_1 = require("./customService/vote.vue");
|
|
39
|
-
Object.defineProperty(exports, "Vote", { enumerable: true, get: function () { return __importDefault(vote_vue_1).default; } });
|
|
40
|
-
var whitepaper_vue_1 = require("./customService/whitepaper.vue");
|
|
41
|
-
Object.defineProperty(exports, "Whitepaper", { enumerable: true, get: function () { return __importDefault(whitepaper_vue_1).default; } });
|
|
42
|
-
var wiki_vue_1 = require("./customService/wiki.vue");
|
|
43
|
-
Object.defineProperty(exports, "Wiki", { enumerable: true, get: function () { return __importDefault(wiki_vue_1).default; } });
|
|
2
|
+
export { default as Academy } from './customService/academy.vue'
|
|
3
|
+
export { default as Api } from './customService/api.vue'
|
|
4
|
+
export { default as Dapp } from './customService/dapp.vue'
|
|
5
|
+
export { default as DappDetail } from './customService/dappDetail.vue'
|
|
6
|
+
export { default as Detail } from './customService/detail.vue'
|
|
7
|
+
export { default as Doc } from './customService/doc.vue'
|
|
8
|
+
export { default as Ecosystem } from './customService/ecosystem/index.vue'
|
|
9
|
+
export { default as HelpEntry } from './customService/help/entry.vue'
|
|
10
|
+
export { default as HelpDetail } from './customService/help/helpDetail.vue'
|
|
11
|
+
export { default as HelpIndex } from './customService/help/index.vue'
|
|
12
|
+
export { default as HelpNav } from './customService/help/nav.vue'
|
|
13
|
+
export { default as Recruit } from './customService/recruit.vue'
|
|
14
|
+
export { default as Sdk } from './customService/sdk.vue'
|
|
15
|
+
export { default as Team } from './customService/team.vue'
|
|
16
|
+
export { default as Term } from './customService/term.vue'
|
|
17
|
+
export { default as Vote } from './customService/vote.vue'
|
|
18
|
+
export { default as Whitepaper } from './customService/whitepaper.vue'
|
|
19
|
+
export { default as Wiki } from './customService/wiki.vue'
|
|
20
|
+
|
|
44
21
|
// Error Views
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Object.defineProperty(exports, "Error500", { enumerable: true, get: function () { return __importDefault(error500_vue_1).default; } });
|
|
22
|
+
export { default as Error404 } from './error/error404.vue'
|
|
23
|
+
export { default as Error500 } from './error/error500.vue'
|
|
24
|
+
|
|
49
25
|
// Login Views
|
|
50
|
-
|
|
51
|
-
Object.defineProperty(exports, "LoginWallet", { enumerable: true, get: function () { return __importDefault(login_wallet_vue_1).default; } });
|
|
26
|
+
export { default as LoginWallet } from './login/login_wallet.vue'
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Descripttion:
|
|
3
|
+
* @version:
|
|
4
|
+
* @Author:
|
|
5
|
+
* @Date: 2021-05-21 14:57:52
|
|
6
|
+
* @LastEditors: Lewis
|
|
7
|
+
* @LastEditTime: 2022-08-12 19:51:43
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<div v-if="visible" class="containers flex-v login-wallet">
|
|
11
|
+
<Header :showMiddleInfo="false" class="visible-pc" />
|
|
12
|
+
<Top class="top visible-h5" />
|
|
13
|
+
<div class="login-center">
|
|
14
|
+
<div>
|
|
15
|
+
<div class="login-text">
|
|
16
|
+
{{ $t("user_login_connect_slogan") }}
|
|
17
|
+
</div>
|
|
18
|
+
<div class="btn-wrapper">
|
|
19
|
+
<div v-if="walletTypes.includes('UMW')" class="btn-item">
|
|
20
|
+
<img
|
|
21
|
+
src="../../assets/img/wallet-login-common.png"
|
|
22
|
+
class="wallet-img"
|
|
23
|
+
@click="linkLogin"
|
|
24
|
+
/>
|
|
25
|
+
<div class="login-min-text">
|
|
26
|
+
{{ $t("user_login_connect_wallet_text") }}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div v-if="walletTypes.includes('MW') && loginHeader" class="btn-item">
|
|
30
|
+
<img
|
|
31
|
+
src="../../assets/img/wallet-login-email.png"
|
|
32
|
+
class="wallet-img"
|
|
33
|
+
@click="toCexLogin"
|
|
34
|
+
/>
|
|
35
|
+
<div class="login-min-text">
|
|
36
|
+
{{ $t("user_login_connect_email_text") }}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
export default {
|
|
47
|
+
name: "login_wallet",
|
|
48
|
+
beforeRouteEnter(to, from, next) {
|
|
49
|
+
// console.log('beforeRouteEnter:', to, from, !to.query.back);
|
|
50
|
+
if (!to.query.back) {
|
|
51
|
+
to.query.back = from.fullPath
|
|
52
|
+
}
|
|
53
|
+
next();
|
|
54
|
+
},
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
color: window.themeColor || "var(--primary-color)",
|
|
58
|
+
walletTypes: [],
|
|
59
|
+
visible: false,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
uid() {
|
|
64
|
+
return this.$store.state.user.userInfo.uid;
|
|
65
|
+
},
|
|
66
|
+
loginHeader() {
|
|
67
|
+
return this.$store.state.siteConfig.centralConfig.loginHeader;
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
created() {
|
|
71
|
+
this.walletTypes = window.walletTypes;
|
|
72
|
+
// 只支持托管钱包
|
|
73
|
+
if (this.walletTypes.length === 1 && this.walletTypes[0] === "MW") {
|
|
74
|
+
this.$router.push({
|
|
75
|
+
path: '/user/login'
|
|
76
|
+
})
|
|
77
|
+
} else {
|
|
78
|
+
this.visible = true;
|
|
79
|
+
// 本页面登录弹框只渲染非托管钱包。在页面卸载的时候还原。
|
|
80
|
+
window.walletTypes = ["UMW"];
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
mounted() {
|
|
84
|
+
// showLoginExpiredMessage
|
|
85
|
+
this.$route.params.showLoginExpiredMessage &&
|
|
86
|
+
this.$message.warning(this.$t("wallet_common_login_expired"));
|
|
87
|
+
console.log('this.$route:', this.$route);
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
loginBack() {
|
|
91
|
+
const backUrl = this.$route.query.back;
|
|
92
|
+
let backRouteName = this.$store.state.cmsstore.backRouteName;
|
|
93
|
+
let search = sessionStorage.getItem('currentPathSearch') || ''
|
|
94
|
+
if (backUrl) {
|
|
95
|
+
this.$router.replace(backUrl);
|
|
96
|
+
} else if (backRouteName) {
|
|
97
|
+
this.$store.commit("setBackRouteName", "");
|
|
98
|
+
if (backRouteName == 'login_wallet') this.$router.go(-1)
|
|
99
|
+
else {
|
|
100
|
+
this.$router.replace({
|
|
101
|
+
name: backRouteName,
|
|
102
|
+
query: this.formatSearch(search)
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
} else if (this.$route.name == 'login_wallet') {
|
|
106
|
+
this.$router.replace({
|
|
107
|
+
name: "home",
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
// } else {
|
|
111
|
+
// this.$router.replace({
|
|
112
|
+
// name: "home",
|
|
113
|
+
// });
|
|
114
|
+
// }
|
|
115
|
+
},
|
|
116
|
+
linkLogin() {
|
|
117
|
+
let wallet = this.walletData.getSyncWallet();
|
|
118
|
+
let token = localStorage.getItem('TOKEN')
|
|
119
|
+
if (this.uid && wallet && token) {
|
|
120
|
+
return this.loginBack();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (wallet && !token) {
|
|
124
|
+
this.$store.dispatch('loginRest')
|
|
125
|
+
} else {
|
|
126
|
+
if (!wallet) {
|
|
127
|
+
$Vue.$bus.$emit("linkWallet", () => {
|
|
128
|
+
this.loginBack();
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
$Vue.$bus.$emit("linkLogin", {
|
|
132
|
+
type: "unlock",
|
|
133
|
+
fn: () => {
|
|
134
|
+
this.loginBack();
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
},
|
|
141
|
+
toCexLogin() {
|
|
142
|
+
this.$router.push({
|
|
143
|
+
path: '/user/login'
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
formatSearch(serach) {
|
|
147
|
+
let query = {}
|
|
148
|
+
if (!serach) return query
|
|
149
|
+
serach = serach.slice(1)
|
|
150
|
+
serach.split('&').map(v => {
|
|
151
|
+
let val = v.split('=')
|
|
152
|
+
query[val[0]] = val[1]
|
|
153
|
+
})
|
|
154
|
+
return query
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
beforeDestroy() {
|
|
158
|
+
window.walletTypes = this.walletTypes;
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<style lang="less" scoped>
|
|
164
|
+
.containers {
|
|
165
|
+
position: relative;
|
|
166
|
+
width: 100%;
|
|
167
|
+
// padding-top: 100px;
|
|
168
|
+
}
|
|
169
|
+
.login-wallet {
|
|
170
|
+
justify-content: flex-start;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.login-center {
|
|
174
|
+
display: flex;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
align-items: center;
|
|
177
|
+
flex: 1;
|
|
178
|
+
& > div {
|
|
179
|
+
text-align: center;
|
|
180
|
+
// margin-top: -200px;
|
|
181
|
+
}
|
|
182
|
+
.login-text {
|
|
183
|
+
margin: 0 20px;
|
|
184
|
+
font-size: 32px;
|
|
185
|
+
font-family: FontMedium;
|
|
186
|
+
text-align: center;
|
|
187
|
+
color: var(--text-color);
|
|
188
|
+
line-height: 44px;
|
|
189
|
+
}
|
|
190
|
+
.btn-wrapper{
|
|
191
|
+
display: flex;
|
|
192
|
+
gap: 60px;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
}
|
|
195
|
+
.wallet-img {
|
|
196
|
+
margin-top: 46px;
|
|
197
|
+
width: 128px;
|
|
198
|
+
height: 128px;
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
.login-min-text {
|
|
203
|
+
margin-top: 20px;
|
|
204
|
+
text-align: center;
|
|
205
|
+
font-size: 20px;
|
|
206
|
+
font-family: Font;
|
|
207
|
+
|
|
208
|
+
text-align: center;
|
|
209
|
+
color: var(--text-color-third);
|
|
210
|
+
line-height: 24px;
|
|
211
|
+
}
|
|
212
|
+
@media screen and (min-width: 768px) {
|
|
213
|
+
|
|
214
|
+
.login-center {
|
|
215
|
+
|
|
216
|
+
.login-text {
|
|
217
|
+
font-size: 36px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
@media screen and (min-width: 1200px) {
|
|
222
|
+
.login-center {
|
|
223
|
+
|
|
224
|
+
.login-text {
|
|
225
|
+
font-size: 40px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "udxcms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "cms submodule",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc --outDir dist && npm run copy-assets",
|
|
12
|
-
"copy-assets": "cp -r assets dist/ || xcopy /E /I assets dist\\assets",
|
|
12
|
+
"copy-assets": "cp -r assets dist/ || xcopy /E /I assets dist\\assets && cp -r views dist/ || xcopy /E /I views dist\\views",
|
|
13
13
|
"prepublish": "npm run build",
|
|
14
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
15
|
},
|