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
809f3f00
Commit
809f3f00
authored
Nov 19, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
744f9081
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
25 additions
and
111 deletions
+25
-111
puzzle.js
public/js/puzzle.js
+2
-0
personalAuth.vue
src/components/authentication/personalAuth.vue
+2
-10
emByCodeCmpt.vue
src/components/login/emByCodeCmpt.vue
+2
-10
mbByCodeCmpt.vue
src/components/login/mbByCodeCmpt.vue
+2
-10
fontScroll.vue
src/components/mobile/fontScroll.vue
+1
-1
emailRegisterCmpt.vue
src/views/loginregister/pages/emailRegisterCmpt.vue
+2
-10
findPasswordCmpt.vue
src/views/loginregister/pages/findPasswordCmpt.vue
+2
-10
mobileRegisterCmpt.vue
src/views/loginregister/pages/mobileRegisterCmpt.vue
+2
-10
addAuth.vue
src/views/mobile/auth/addAuth.vue
+2
-10
emCodeCmpt.vue
src/views/mobile/loginregister/emCodeCmpt.vue
+2
-10
emRegister.vue
src/views/mobile/loginregister/emRegister.vue
+2
-10
phoneCodeCmpt.vue
src/views/mobile/loginregister/phoneCodeCmpt.vue
+2
-10
phoneRegister.vue
src/views/mobile/loginregister/phoneRegister.vue
+2
-10
No files found.
public/js/puzzle.js
View file @
809f3f00
import
Vue
from
'vue'
;
import
VueI18n
from
'vue-i18n'
;
import
api
from
'../../src/views/loginregister/api/api'
;
import
$
from
'jquery'
;
import
publicFunc
from
'../../src/common/public'
Vue
.
use
(
VueI18n
);
const
i18n
=
new
VueI18n
({
locale
:
window
.
sessionStorage
.
getItem
(
"language"
)
||
"zh-CN"
,
// 语言标识
...
...
src/components/authentication/personalAuth.vue
View file @
809f3f00
...
...
@@ -143,8 +143,7 @@
isShowErrorText4
:
false
,
isShowErrorText5
:
false
,
uploadDisabled
:
false
,
//是否禁用上传图片
disabledFlag
:
0
,
isSendPcCode
:
false
disabledFlag
:
0
}
},
...
...
@@ -385,16 +384,9 @@
this
.
getUserInfoFunc
();
globalMsg
.
$on
(
"isSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
10
){
this
.
isSendPcCode
=
true
;
}
})
},
watch
:{
isSendPcCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/components/login/emByCodeCmpt.vue
View file @
809f3f00
...
...
@@ -81,8 +81,7 @@
message
:
null
},
fullscreenLoading
:
false
,
showMessageInfo
:
false
,
isSendPcCode
:
false
,
showMessageInfo
:
false
}
},
methods
:{
...
...
@@ -261,16 +260,9 @@
mounted
(){
globalMsg
.
$on
(
"isSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
9
){
this
.
isSendPcCode
=
true
;
}
})
},
watch
:{
isSendPcCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/components/login/mbByCodeCmpt.vue
View file @
809f3f00
...
...
@@ -73,8 +73,7 @@
type
:
"success"
,
message
:
null
},
showMessageInfo
:
false
,
isSendPcCode
:
false
showMessageInfo
:
false
}
},
methods
:{
...
...
@@ -248,16 +247,9 @@
mounted
()
{
globalMsg
.
$on
(
"isSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
7
){
this
.
isSendPcCode
=
true
;
}
})
},
watch
:{
isSendPcCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/components/mobile/fontScroll.vue
View file @
809f3f00
...
...
@@ -73,7 +73,7 @@
// 每次都让盒子移动指定的距离,在我自己做的项目中,这种字符串拼接的方法并没有生效
// outbox.style = 'transform: translateX3d(' + startDis + 'px)'
// 后面换了es6的模板字符串就可以了
outbox
.
style
=
`transform:
translateX(
${
startDis
}
px)`
outbox
.
style
.
transform
=
`
translateX(
${
startDis
}
px)`
// outbox.style = 'transform: translateX(\' + startDis + \' px)'
// outbox.style.marginLeft = 'startDis'
// console.log('这里:', startDis)
...
...
src/views/loginregister/pages/emailRegisterCmpt.vue
View file @
809f3f00
...
...
@@ -117,8 +117,7 @@
message
:
null
},
showMessageInfo
:
false
,
fullscreenLoading
:
false
,
isSendPcCode
:
false
fullscreenLoading
:
false
}
},
methods
:
{
...
...
@@ -323,16 +322,9 @@
if
(
this
.
$route
.
query
.
refereesId
||
this
.
$route
.
query
.
registerChannel
)
this
.
getActiveName
();
globalMsg
.
$on
(
"isSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
8
){
this
.
isSendPcCode
=
true
;
}
})
},
watch
:{
isSendPcCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/views/loginregister/pages/findPasswordCmpt.vue
View file @
809f3f00
...
...
@@ -80,8 +80,7 @@
showCount
:
true
,
count
:
''
,
flag
:
0
,
fullscreenLoading
:
false
,
isSendPcCode
:
false
fullscreenLoading
:
false
}
},
methods
:{
...
...
@@ -241,16 +240,9 @@
mounted
(){
globalMsg
.
$on
(
"isSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
11
){
this
.
isSendPcCode
=
true
;
}
})
},
watch
:{
isSendPcCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/views/loginregister/pages/mobileRegisterCmpt.vue
View file @
809f3f00
...
...
@@ -106,8 +106,7 @@
messageObj
:{
type
:
"success"
,
message
:
null
},
isSendPcCode
:
false
}
}
},
methods
:
{
...
...
@@ -300,16 +299,9 @@
if
(
this
.
$route
.
query
.
refereesId
||
this
.
$route
.
query
.
registerChannel
)
this
.
getActiveName
();
globalMsg
.
$on
(
"isSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
6
){
this
.
isSendPcCode
=
true
;
}
})
},
watch
:{
isSendPcCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/views/mobile/auth/addAuth.vue
View file @
809f3f00
...
...
@@ -188,8 +188,7 @@
disabledFlag
:
0
,
userInfo
:
window
.
sessionStorage
.
getItem
(
"userInfo"
)
?
JSON
.
parse
(
this
.
Base64
.
decode
(
window
.
sessionStorage
.
getItem
(
"userInfo"
)))
:
null
,
imgUrls
:[],
isPhoto
:
true
,
isSendCode
:
false
isPhoto
:
true
}
},
...
...
@@ -489,16 +488,9 @@
this
.
getInitData
();
globalMsg
.
$on
(
"isPhoneSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
5
){
this
.
isSendCode
=
true
;
}
})
},
watch
:{
isSendCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/views/mobile/loginregister/emCodeCmpt.vue
View file @
809f3f00
...
...
@@ -68,8 +68,7 @@
showCount
:
true
,
count
:
''
,
flag
:
0
,
fullscreenLoading
:
false
,
isSendCode
:
false
fullscreenLoading
:
false
}
},
methods
:{
...
...
@@ -243,16 +242,9 @@
mounted
()
{
globalMsg
.
$on
(
"isPhoneSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
4
){
this
.
isSendCode
=
true
;
}
})
},
watch
:{
isSendCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/views/mobile/loginregister/emRegister.vue
View file @
809f3f00
...
...
@@ -97,8 +97,7 @@
count
:
''
,
protocolVisible
:
false
,
className
:
"height600px"
,
fullscreenLoading
:
false
,
isSendCode
:
false
fullscreenLoading
:
false
}
},
...
...
@@ -271,16 +270,9 @@
mounted
()
{
globalMsg
.
$on
(
"isPhoneSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
which
==
3
){
this
.
isSendCode
=
true
;
}
})
},
watch
:{
isSendCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
)
}
}
</
script
>
...
...
src/views/mobile/loginregister/phoneCodeCmpt.vue
View file @
809f3f00
...
...
@@ -62,8 +62,7 @@
count
:
''
,
flag
:
0
,
fullscreenLoading
:
false
,
lang
:
this
.
$i18n
.
locale
==
"zh-CN"
?
1
:
2
,
isSendCode
:
false
lang
:
this
.
$i18n
.
locale
==
"zh-CN"
?
1
:
2
}
},
methods
:{
...
...
@@ -233,17 +232,10 @@
mounted
()
{
globalMsg
.
$on
(
"isPhoneSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
this
.
$route
.
path
==
'/loginByPhone'
&&
which
==
2
){
this
.
isSendCode
=
true
;
this
.
getCodeFunc
()
;
}
})
},
watch
:{
isSendCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
}
</
script
>
...
...
src/views/mobile/loginregister/phoneRegister.vue
View file @
809f3f00
...
...
@@ -95,8 +95,7 @@
type
:
"success"
,
message
:
null
},
fullscreenLoading
:
false
,
isSendCode
:
false
fullscreenLoading
:
false
}
},
...
...
@@ -273,18 +272,11 @@
mounted
()
{
globalMsg
.
$on
(
"isPhoneSendCode"
,(
data
,
which
)
=>
{
if
(
data
&&
this
.
$route
.
path
==
'/mobileRegister'
&&
which
==
1
){
this
.
isSendCode
=
true
;
this
.
getCodeFunc
()
;
}
})
},
watch
:{
isSendCode
(
val
){
if
(
val
){
this
.
getCodeFunc
();
}
}
}
}
</
script
>
...
...
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