Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
bc0f20e8
Commit
bc0f20e8
authored
Dec 28, 2017
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册2
parent
6d025fbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
share_register.html
application/app/view/index/share_register.html
+2
-2
share_register.js
public/app/js/share_register.js
+7
-6
No files found.
application/app/view/index/share_register.html
View file @
bc0f20e8
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
</span>
</span>
</a>
</a>
</div>
</div>
<div
class=
"div-conform"
>
<div
class=
"div-conform"
onclick=
"sends.conform();"
>
<a
class=
"conform"
onclick=
"sends.conform();"
>
提交
</a>
<a
class=
"conform"
>
提交
</a>
</div>
</div>
</ul>
</ul>
</div>
</div>
...
...
public/app/js/share_register.js
View file @
bc0f20e8
...
@@ -96,14 +96,14 @@ var sends = {
...
@@ -96,14 +96,14 @@ var sends = {
alert
(
"请输入您的手机号!"
);
alert
(
"请输入您的手机号!"
);
return
;
return
;
}
}
if
(
""
==
$
(
"#password"
).
val
())
{
alert
(
"请输入您的密码!"
);
return
;
}
if
(
""
==
$
(
"#ranks"
).
val
())
{
if
(
""
==
$
(
"#ranks"
).
val
())
{
alert
(
"请输入您的验证码!"
);
alert
(
"请输入您的验证码!"
);
return
;
return
;
}
}
if
(
""
==
$
(
"#password"
).
val
())
{
alert
(
"请输入您的密码!"
);
return
;
}
if
(
zc
==
"/app/images/but_yuedu_nor.png"
)
if
(
zc
==
"/app/images/but_yuedu_nor.png"
)
{
{
...
@@ -126,7 +126,7 @@ var sends = {
...
@@ -126,7 +126,7 @@ var sends = {
dataType
:
"json"
,
dataType
:
"json"
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
response
)
{
success
:
function
(
response
)
{
if
(
response
.
status
==
0
)
{
if
(
response
.
code
==
20
0
)
{
//成功跳转
//成功跳转
$
(
"input"
).
val
(
''
);
$
(
"input"
).
val
(
''
);
$
(
".conform"
).
html
(
"提交."
);
$
(
".conform"
).
html
(
"提交."
);
...
@@ -135,10 +135,11 @@ var sends = {
...
@@ -135,10 +135,11 @@ var sends = {
}
else
{
}
else
{
alert
(
response
.
msg
);
alert
(
response
.
msg
);
$
(
".conform"
).
html
(
"提交"
);
}
}
},
},
error
:
function
()
{
error
:
function
()
{
$
(
".conform"
).
html
(
"提交
.
"
);
$
(
".conform"
).
html
(
"提交"
);
$
(
'.div-'
).
append
(
'<span class="error">提交失败!</span>'
);
$
(
'.div-'
).
append
(
'<span class="error">提交失败!</span>'
);
}
}
});
});
...
...
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