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
6880bf0e
Commit
6880bf0e
authored
Dec 27, 2017
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
49cd21f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
share_register.css
public/app/css/share_register.css
+3
-0
share_register.js
public/app/js/share_register.js
+20
-5
No files found.
public/app/css/share_register.css
View file @
6880bf0e
...
...
@@ -4,6 +4,9 @@
position
:
relative
;
z-index
:
1
;
}
body
{
display
:
none
;
}
.zhuce-img
{
width
:
100%
;
display
:
block
;
...
...
public/app/js/share_register.js
View file @
6880bf0e
...
...
@@ -2,7 +2,7 @@
* Created by 刘丹 on 2017/12/26.
*/
(
function
()
{
$
(
document
.
body
).
show
();
var
url
=
location
.
search
;
//获取url中"?"符后的字串
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
...
...
@@ -17,7 +17,9 @@
})();
$
(
"#phone"
).
change
(
function
(){
send
();
});
var
sends
=
{
checked
:
1
,
send
:
function
(){
...
...
@@ -29,6 +31,10 @@ var sends = {
return
false
;
}
}
if
(
""
==
$
(
"#phone"
).
val
())
{
alert
(
"请输入您的手机号!"
);
return
;
}
if
(
!
is_mobile
(
val
))
{
alert
(
"手机格式错误!"
)
...
...
@@ -45,8 +51,17 @@ var sends = {
dataType
:
"json"
,
beforeSend
:
function
()
{},
success
:
function
(
response
)
{
_token
=
response
.
data
.
token
$
(
'.div-phone'
).
append
(
'<span class="error">'
+
response
.
msg
+
'</span>'
);
_token
=
response
.
data
.
token
;
if
(
response
.
msg
==
"您已注册,请登录"
){
alert
(
"您已注册,请登录!"
);
clearInterval
(
timer
);
$
(
'.div-ranks a'
).
addClass
(
'send1'
).
removeClass
(
'send0'
).
html
(
"获取验证码"
);
location
.
reload
();
}
else
{
$
(
'.div-phone'
).
append
(
'<span class="error">'
+
response
.
msg
+
'</span>'
);
}
},
error
:
function
()
{
...
...
@@ -63,7 +78,7 @@ var sends = {
sends
.
checked
=
1
;
return
true
;
}
$
(
'.error'
).
hide
();
$
(
'.div-ranks a'
).
html
(
"剩余"
+
time
+
"S"
);
time
--
;
sends
.
checked
=
0
;
...
...
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