Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
35dc4aec
Commit
35dc4aec
authored
Mar 29, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
踢人
parent
0653d78b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
7 deletions
+127
-7
public/appapi/js/invite.js
+120
-0
themes/simplebootx/Appapi/Invite/index.html
+7
-7
No files found.
public/appapi/js/invite.js
0 → 100644
View file @
35dc4aec
$
(
function
(){
var
isiPad
=
/iPad/i
.
test
(
navigator
.
userAgent
);
var
isiPhone
=
/iPhone|iPod/i
.
test
(
navigator
.
userAgent
);
var
isAndroid
=
/Android/i
.
test
(
navigator
.
userAgent
);
var
isWeixin
=
/MicroMessenger/i
.
test
(
navigator
.
userAgent
);
var
isQQ
=
/QQ/i
.
test
(
navigator
.
userAgent
);
var
isIOS
=
(
isiPad
||
isiPhone
);
var
isWeibo
=
/Weibo/i
.
test
(
navigator
.
userAgent
);
var
isApp
=
(
isAndroid
||
isIOS
);
if
(
isWeixin
){
$
(
'.reg_bottom_wx'
).
show
();
}
var
isbuy
=
0
;
var
js_getCode
=
$
(
"#getCode"
);
js_getCode
.
on
(
"click"
,
function
(){
if
(
isbuy
){
return
!
1
;
}
var
userlogin
=
js_userlogin
.
val
();
if
(
userlogin
==
''
){
layer
.
msg
(
"请输入您的手机号"
);
return
!
1
;
}
if
(
js_getCode
.
hasClass
(
'login_counting'
)){
return
!
1
;
}
isbuy
=
1
;
$
.
ajax
({
url
:
'/index.php?g=appapi&m=invite&a=getCode'
,
data
:{
mobile
:
userlogin
},
type
:
'POST'
,
dataType
:
'json'
,
success
:
function
(
data
){
isbuy
=
0
;
if
(
data
.
code
==
0
){
layer
.
msg
(
data
.
msg
,{},
function
(){
js_getCode
.
addClass
(
'login_counting'
);
login_counting
();
});
return
!
1
;
}
else
{
layer
.
msg
(
data
.
msg
);
return
!
1
;
}
},
error
:
function
(){
isbuy
=
0
;
layer
.
msg
(
"请求失败"
);
return
!
1
;
}
})
})
var
interval_reg
;
function
login_counting
(){
var
e
=
60
;
interval_reg
=
window
.
setInterval
(
function
()
{
if
(
e
>
0
)
{
var
i
=
e
--+
"s 重新获取"
;
js_getCode
.
addClass
(
"login_counting"
);
js_getCode
.
val
(
i
);
}
else
{
window
.
clearInterval
(
interval_reg
);
interval_reg
=
null
;
js_getCode
.
val
(
'获取验证码'
);
js_getCode
.
removeClass
(
"login_counting"
);
}
},
1
e3
)
}
var
js_userlogin
=
$
(
"#userlogin"
);
var
js_usercode
=
$
(
"#usercode"
);
var
js_userpass
=
$
(
"#userpass"
);
var
js_userpass2
=
$
(
"#userpass2"
);
var
js_reg_login
=
$
(
".reg_bottom_login"
);
var
js_reg_wx
=
$
(
".reg_bottom_wx"
);
js_reg_login
.
on
(
"click"
,
function
(){
var
userlogin
=
js_userlogin
.
val
();
var
usercode
=
js_usercode
.
val
();
var
userpass
=
js_userpass
.
val
();
var
userpass2
=
js_userpass2
.
val
();
isbuy
=
1
;
$
.
ajax
({
url
:
'/index.php?g=appapi&m=invite&a=register'
,
data
:{
userlogin
:
userlogin
,
usercode
:
usercode
,
userpass
:
userpass
,
userpass2
:
userpass2
,
agentid
:
agentid
},
type
:
'POST'
,
dataType
:
'json'
,
success
:
function
(
data
){
isbuy
=
0
;
if
(
data
.
code
==
0
){
layer
.
msg
(
data
.
msg
,{},
function
(){
location
.
href
=
"/index.php?g=appapi&m=down&a=index"
});
return
!
1
;
}
else
{
layer
.
msg
(
data
.
msg
);
return
!
1
;
}
},
error
:
function
(){
isbuy
=
0
;
layer
.
msg
(
"请求失败"
);
return
!
1
;
}
})
})
js_reg_wx
.
on
(
"click"
,
function
(){
location
.
href
=
"/index.php?g=appapi&m=reg&a=wxLogin&agentid="
+
agentid
;
})
})
themes/simplebootx/Appapi/Invite/index.html
View file @
35dc4aec
...
@@ -31,21 +31,21 @@
...
@@ -31,21 +31,21 @@
<input
type=
"password"
id=
"userpass2"
placeholder=
"请确认密码"
>
<input
type=
"password"
id=
"userpass2"
placeholder=
"请确认密码"
>
</li>
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"reg_bottom"
>
<div
class=
"reg_bottom"
>
<div
class=
"reg_bottom_btn reg_bottom_login"
>
<div
class=
"reg_bottom_btn reg_bottom_login"
>
立即注册
立即注册
</div>
</div>
<div
class=
"reg_bottom_btn reg_bottom_wx"
>
<!-- <div class="reg_bottom_btn reg_bottom_wx">--
>
<i></i>
微信注册
<!-- <i></i>微信注册-->
</div
>
<!-- </div>--
>
</div>
</div>
</div>
</div>
<tc
_include
file=
"Appapi/Public/footer"
/>
<tc
_include
file=
"Appapi/Public/footer"
/>
<script
src=
"__PUBLIC__/appapi/js/
reg
.js"
></script>
<script
src=
"__PUBLIC__/appapi/js/
invite
.js"
></script>
<script>
<script>
var
agentid
=
'{$agentid}'
;
var
agentid
=
'{$agentid}'
;
</script>
</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