Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
decebb92
Commit
decebb92
authored
Aug 23, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中英文切换
parent
1b582be0
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
59 additions
and
10 deletions
+59
-10
PageLeft.vue
src/components/index/PageLeft.vue
+5
-5
emailLoginCmpt.vue
src/components/login/emailLoginCmpt.vue
+1
-0
mobileLoginCmpt.vue
src/components/login/mobileLoginCmpt.vue
+1
-0
index.vue
src/views/index.vue
+1
-1
completeInfoCmpt.vue
src/views/loginregister/pages/completeInfoCmpt.vue
+2
-0
emailRegisterCmpt.vue
src/views/loginregister/pages/emailRegisterCmpt.vue
+2
-0
findPasswordCmpt.vue
src/views/loginregister/pages/findPasswordCmpt.vue
+2
-0
login.vue
src/views/loginregister/pages/login.vue
+38
-4
mobileRegisterCmpt.vue
src/views/loginregister/pages/mobileRegisterCmpt.vue
+2
-0
modifyPasswordCmpt.vue
src/views/loginregister/pages/modifyPasswordCmpt.vue
+2
-0
passSuccessCmpt.vue
src/views/loginregister/pages/passSuccessCmpt.vue
+2
-0
successCmpt.vue
src/views/loginregister/pages/successCmpt.vue
+1
-0
No files found.
src/components/index/PageLeft.vue
View file @
decebb92
...
...
@@ -42,15 +42,15 @@
};
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
.boxWrapper
{
background
:
#1
b2750
;
width
:
64px
;
background
:
#1
E1E2D
;
width
:
15%
;
height
:
100%
;
color
:
#
919dc6
;
color
:
#
A2A3B7
;
position
:
absolute
;
left
:
0
;
top
:
0
;
top
:
60px
;
padding-top
:
60px
;
z-index
:
8998
;
}
...
...
src/components/login/emailLoginCmpt.vue
View file @
decebb92
...
...
@@ -72,6 +72,7 @@
components
:{
sliderCmpt
},
inject
:[
'reload'
],
data
()
{
return
{
activeName
:
"first"
,
...
...
src/components/login/mobileLoginCmpt.vue
View file @
decebb92
...
...
@@ -73,6 +73,7 @@
components
:{
sliderCmpt
},
inject
:[
'reload'
],
data
()
{
return
{
activeName
:
"first"
,
...
...
src/views/index.vue
View file @
decebb92
<
template
>
<div
class=
"page-wrapper"
>
<page-top
:initStyle=
"isInit"
></page-top>
<
!--
<page-left></page-left>
--
>
<
page-left
v-if=
"false"
></page-left
>
<div
class=
"page-content popper-boundaries"
>
<router-view/>
</div>
...
...
src/views/loginregister/pages/completeInfoCmpt.vue
View file @
decebb92
...
...
@@ -62,6 +62,8 @@
import
api
from
'../api/api'
;
export
default
{
name
:
"completeInfoCmpt"
,
inject
:[
'reload'
],
components
:{
"vue-select"
:
vSelect
},
...
...
src/views/loginregister/pages/emailRegisterCmpt.vue
View file @
decebb92
...
...
@@ -71,6 +71,8 @@
sliderCmpt
,
dialogCmpt
},
inject
:[
'reload'
],
data
()
{
return
{
activeName
:
"first"
,
...
...
src/views/loginregister/pages/findPasswordCmpt.vue
View file @
decebb92
...
...
@@ -45,6 +45,8 @@
components
:{
sliderCmpt
},
inject
:[
'reload'
],
data
(){
const
that
=
this
;
return
{
...
...
src/views/loginregister/pages/login.vue
View file @
decebb92
...
...
@@ -13,7 +13,7 @@
<span
:class=
"lang==='en'?'fontBold':''"
>
En
</span>
</div>
<div
class=
"loginform"
>
<router-view></router-view>
<router-view
v-if=
"isRouterAlive"
></router-view>
</div>
<div
class=
"bottomCopyRight"
>
<p>
@2019 All Copyright Reserved By TechBook.com 京ICP备15012625号-1
</p>
...
...
@@ -23,6 +23,8 @@
</
template
>
<
script
>
import
validate
from
"../../../common/validate"
;
export
default
{
name
:
"login"
,
data
()
{
...
...
@@ -30,13 +32,43 @@
currentLanguage
:
null
,
showWhich
:
false
,
lang
:
this
.
$i18n
.
locale
,
isRouterAlive
:
true
}
},
provide
(){
return
{
reload
:
this
.
reload
}
},
methods
:
{
reload
(){
this
.
isRouterAlive
=
false
;
this
.
$nextTick
(()
=>
{
this
.
isRouterAlive
=
true
;
})
},
handleToIndex
(){
this
.
$router
.
push
(
"/"
);
},
changeUrl
(){
if
(
this
.
$route
.
name
==
"mobileLoginCmpt"
)
{
if
(
this
.
$i18n
.
locale
==
"en"
)
this
.
$router
.
replace
(
'/emailLoginCmpt'
);
}
if
(
this
.
$route
.
name
==
"emailLoginCmpt"
)
{
if
(
this
.
$i18n
.
locale
==
"zh-CN"
)
this
.
$router
.
replace
(
'/mobileLoginCmpt'
);
}
if
(
this
.
$route
.
name
==
"mobileRegisterCmpt"
)
{
if
(
this
.
$i18n
.
locale
==
"en"
)
this
.
$router
.
replace
(
'/emailRegisterCmpt'
);
}
if
(
this
.
$route
.
name
==
"emailRegisterCmpt"
){
if
(
this
.
$i18n
.
locale
==
"zh-CN"
)
this
.
$router
.
replace
(
'/mobileRegisterCmpt'
);
}
},
//切换语言
changeLangEvent
(
type
)
{
var
that
=
this
;
...
...
@@ -49,18 +81,20 @@
that
.
lang
=
'en'
;
that
.
$i18n
.
locale
=
that
.
lang
;
//关键语句
window
.
localStorage
.
setItem
(
"language"
,
that
.
lang
);
// validate.i18n.locale =window.localStorage.getItem("lang");
location
.
reload
();
that
.
reload
();
}
else
{
that
.
lang
=
'zh-CN'
;
that
.
$i18n
.
locale
=
that
.
lang
;
//关键语句
window
.
localStorage
.
setItem
(
"language"
,
that
.
lang
);
// validate.i18n.locale =window.localStorage.getItem("lang");
location
.
reload
();
that
.
reload
();
}
that
.
changeUrl
();
}).
catch
(()
=>
{
});
...
...
src/views/loginregister/pages/mobileRegisterCmpt.vue
View file @
decebb92
...
...
@@ -72,6 +72,8 @@
sliderCmpt
,
dialogCmpt
},
inject
:[
'reload'
],
data
()
{
return
{
activeName
:
"first"
,
...
...
src/views/loginregister/pages/modifyPasswordCmpt.vue
View file @
decebb92
...
...
@@ -26,6 +26,8 @@
import
api
from
'../api/api'
;
export
default
{
name
:
"modifyPasswordCmpt"
,
inject
:[
'reload'
],
data
(){
return
{
ruleForm
:{
...
...
src/views/loginregister/pages/passSuccessCmpt.vue
View file @
decebb92
...
...
@@ -15,6 +15,8 @@
<
script
>
export
default
{
name
:
"passSuccessCmpt"
,
inject
:[
'reload'
],
methods
:{
handleToIndex
(){
var
userInfo
=
window
.
localStorage
.
getItem
(
"userInfo"
)
?
JSON
.
parse
(
this
.
Base64
.
decode
(
window
.
localStorage
.
getItem
(
"userInfo"
)))
:
""
;
...
...
src/views/loginregister/pages/successCmpt.vue
View file @
decebb92
...
...
@@ -17,6 +17,7 @@
<
script
>
export
default
{
name
:
"successCmpt"
,
inject
:[
'reload'
],
methods
:{
handleToIndex
(
type
){
if
(
type
==
2
)
this
.
$router
.
push
(
"/"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment