Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
董佳音
/
networkSchool
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
董佳音
2017-09-04 11:29:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f6c02c77f8ae5416adbc34d1646f274e58ce461b
f6c02c77
1 parent
6cdf23a3
修改登录注册提示信息
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
14 行增加
和
5 行删除
etc/umd.template.html
src/ape/LoginOrRegister.js
etc/umd.template.html
查看文件 @
f6c02c7
...
...
@@ -1093,6 +1093,7 @@
<input
id=
"permitSign"
class=
"permitSignIcon"
type=
"checkbox"
>
<label
for=
"permitSign"
></label>
<span
class=
"permitSignMsg"
>
我已阅读并接受用户协议
</span>
<p
class=
"errorTit"
id=
"errorTitLogin"
></p>
</li>
<li
class=
"btnUsersignLi usersignLi"
>
<button
id=
"signBtn"
class=
"btnUsersign btnHover"
>
注册
</button>
...
...
@@ -1123,7 +1124,7 @@
</p>
<li
class=
"btnUsersignLi usersignLi"
>
<button
class=
"btnUsersign btnHover"
id=
"userLoginBtn"
>
提交
</button>
<p
class=
"errorTit"
id=
"errorTit"
></p>
<p
class=
"errorTit"
id=
"errorTit
Sign
"
></p>
</li>
<p
class=
"forgetPasswordBtn nowSignBtn"
id=
"nowUserSign"
>
...
...
src/ape/LoginOrRegister.js
查看文件 @
f6c02c7
...
...
@@ -237,7 +237,12 @@ class LoginOrRegister extends Ape {
success
:
function
(
_data
){
console
.
log
(
_data
,
'成功'
)
//注册成功后 跳转登录界面
that
.
_successSign
(
_data
);
if
(
_data
&&
_data
.
code
==
200
){
alert
(
'注册成功'
)
that
.
_successSign
(
_data
);
}
else
{
alert
(
_data
.
returnData
.
data
.
msg
)
}
},
error
:
function
(
error
){
console
.
log
(
error
,
'失败'
)
...
...
@@ -288,9 +293,9 @@ class LoginOrRegister extends Ape {
timeout
:
5000
,
success
:
function
(
_data
){
loger
.
log
(
'登录返回数据'
,
_data
)
if
(
_data
||
_data
.
code
==
200
){
ClassDataProxy
.
userType
=
ClassDataProxy
.
USER_TYPE_1
;
//ClassDataProxy.userType= _data.returnData.data.userType;
if
(
_data
&&
_data
.
code
==
200
){
alert
(
'登录成功'
)
ClassDataProxy
.
userType
=
_data
.
returnData
.
data
.
userType
;
ClassDataProxy
.
loginName
=
_name
.
value
;
ClassDataProxy
.
password
=
_passWord
.
value
;
ClassDataProxy
.
token
=
_data
.
returnData
.
data
.
token
...
...
@@ -304,6 +309,9 @@ class LoginOrRegister extends Ape {
window
.
localStorage
.
setItem
(
'status'
,
ClassDataProxy
.
status
);
that
.
successLogin
();
}
else
{
alert
(
_data
.
returnData
.
data
.
msg
)
}
},
error
:
function
(
error
){
...
...
请
注册
或
登录
后发表评论