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
f9fb6dfa
Commit
f9fb6dfa
authored
Dec 27, 2017
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册
parent
dbc886a6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
21 deletions
+63
-21
Index.php
application/app/controller/Index.php
+4
-0
agreement.html
application/app/view/index/agreement.html
+0
-0
share_register.html
application/app/view/index/share_register.html
+3
-3
route.php
application/route.php
+2
-11
agreement.css
public/app/css/agreement.css
+29
-0
share_register.css
public/app/css/share_register.css
+7
-3
common.js
public/app/js/common.js
+1
-1
share_register.js
public/app/js/share_register.js
+17
-3
No files found.
application/app/controller/Index.php
View file @
f9fb6dfa
...
@@ -34,6 +34,10 @@ class Index
...
@@ -34,6 +34,10 @@ class Index
{
{
return
view
(
'index/agent_detail'
);
return
view
(
'index/agent_detail'
);
}
}
public
function
agreement
()
{
return
view
(
'index/agreement'
);
}
public
function
more_pingjia
()
public
function
more_pingjia
()
{
{
return
view
(
'index/more_pingjia'
);
return
view
(
'index/more_pingjia'
);
...
...
application/app/view/index/agreement.html
0 → 100644
View file @
f9fb6dfa
This diff is collapsed.
Click to expand it.
application/app/view/index/share_register.html
View file @
f9fb6dfa
...
@@ -23,17 +23,17 @@
...
@@ -23,17 +23,17 @@
</li>
</li>
<li
class=
"div-ranks"
>
<li
class=
"div-ranks"
>
<input
type=
"number"
id=
"ranks"
class=
"infos1"
placeholder=
"请输入验证码"
>
<input
type=
"number"
id=
"ranks"
class=
"infos1"
placeholder=
"请输入验证码"
>
<a
href=
"javascript:;"
class=
"send1"
onclick=
"sends.send();"
>
获取验证码
</a>
<a
class=
"send1"
onclick=
"sends.send();"
>
获取验证码
</a>
</li>
</li>
<li>
<li>
<span
class=
"register-span"
>
<span
class=
"register-span"
>
密码
密码
</span>
</span>
<input
type=
"password"
id=
"password"
class=
"infos"
placeholder=
"6-20位数字字母"
>
<input
type=
"password"
id=
"password"
class=
"infos"
placeholder=
"6-20位数字
或
字母"
>
</li>
</li>
<div
class=
"register-div"
>
<div
class=
"register-div"
>
<img
class=
"zc_nor_button"
src=
"/app/images/but_yuedu-.png"
>
<img
class=
"zc_nor_button"
src=
"/app/images/but_yuedu-.png"
>
<a>
<a
href=
"agreement.html"
>
我已阅读
我已阅读
<span>
<span>
《同联商业服务协议》
《同联商业服务协议》
...
...
application/route.php
View file @
f9fb6dfa
...
@@ -17,6 +17,7 @@ Route::group('app', [
...
@@ -17,6 +17,7 @@ Route::group('app', [
'more_chengjiao'
=>
[
'app/index/more_chengjiao'
,
[
'method'
=>
'get'
]
],
'more_chengjiao'
=>
[
'app/index/more_chengjiao'
,
[
'method'
=>
'get'
]
],
'share_detail'
=>
[
'app/index/share_detail'
,
[
'method'
=>
'get'
]
],
'share_detail'
=>
[
'app/index/share_detail'
,
[
'method'
=>
'get'
]
],
'share_register'
=>
[
'app/index/share_register'
,
[
'method'
=>
'get'
]
],
'share_register'
=>
[
'app/index/share_register'
,
[
'method'
=>
'get'
]
],
'agreement'
=>
[
'app/index/agreement'
,
[
'method'
=>
'get'
]
],
'getShopDetails'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | post'
]
],
'getShopDetails'
=>
[
'app/index/getShopDetail'
,
[
'method'
=>
'get | post'
]
],
]);
]);
...
@@ -50,7 +51,7 @@ Route::group('index', [
...
@@ -50,7 +51,7 @@ Route::group('index', [
//login
//login
'login'
=>
[
'index/login/login'
,[
'method'
=>
'get'
]],
'login'
=>
[
'index/login/login'
,[
'method'
=>
'get'
]],
'loginVerify'
=>
[
'index/login/loginVerify'
,[
'method'
=>
'post|get'
]],
'loginVerify'
=>
[
'index/login/loginVerify'
,[
'method'
=>
'post|get'
]],
'logout'
=>
[
'index/login/logout'
,[
'method'
=>
'get'
]],
//退出
//watchshop 预约看铺
//watchshop 预约看铺
'watch_shop'
=>
[
'index/WatchShop/index'
,[
'method'
=>
'get'
]],
'watch_shop'
=>
[
'index/WatchShop/index'
,[
'method'
=>
'get'
]],
'get_watch'
=>
[
'index/WatchShop/getList'
,[
'method'
=>
'get'
]],
'get_watch'
=>
[
'index/WatchShop/getList'
,[
'method'
=>
'get'
]],
...
@@ -61,9 +62,6 @@ Route::group('index', [
...
@@ -61,9 +62,6 @@ Route::group('index', [
//版本管理
//版本管理
'version'
=>
[
'index/version/index'
,[
'method'
=>
'get'
]],
'version'
=>
[
'index/version/index'
,[
'method'
=>
'get'
]],
'getVersionNo'
=>
[
'index/version/getVersionNo'
,[
'method'
=>
'post'
]],
'getVersionList'
=>
[
'index/version/getVersionList'
,[
'method'
=>
'post'
]],
'addVersion'
=>
[
'index/version/addVersion'
,[
'method'
=>
'post'
]],
]);
]);
...
@@ -119,12 +117,6 @@ Route::group('api', [
...
@@ -119,12 +117,6 @@ Route::group('api', [
'addSublet'
=>
[
'api/Sublet/addSublet'
,
[
'method'
=>
'post|get'
]
],
'addSublet'
=>
[
'api/Sublet/addSublet'
,
[
'method'
=>
'post|get'
]
],
//Version
'getVersionNo'
=>
[
'api/Version/getVersionNo'
,
[
'method'
=>
'post'
]
],
]);
]);
//Route::miss('api/index/miss');//处理错误的url
//Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
public/app/css/agreement.css
0 → 100644
View file @
f9fb6dfa
.agree
{
width
:
92%
;
height
:
auto
;
margin
:
0
auto
;
}
.agree-p
{
color
:
#333333
;
font-size
:
0.3rem
;
font-weight
:
400
;
float
:
left
;
width
:
100%
;
margin-top
:
0.5rem
;
}
.agree-p1
{
font-size
:
0.24rem
;
color
:
#666666
;
float
:
left
;
width
:
100%
;
margin-top
:
0.16rem
;
text-indent
:
0.24rem
;
line-height
:
0.4rem
;
}
#regi
{
background
:
#FFFFFF
;
}
.agree-p2
{
padding-bottom
:
0.5rem
;
}
\ No newline at end of file
public/app/css/share_register.css
View file @
f9fb6dfa
...
@@ -65,14 +65,14 @@ input::-webkit-input-placeholder{
...
@@ -65,14 +65,14 @@ input::-webkit-input-placeholder{
}
}
.send1
{
.send1
{
font-size
:
0.26rem
;
font-size
:
0.26rem
;
color
:
#
cccccc
;
color
:
#
ff9419
;
text-align
:
right
;
text-align
:
right
;
float
:
right
;
float
:
right
;
line-height
:
1rem
;
line-height
:
1rem
;
}
}
.send0
{
.send0
{
font-size
:
0.26rem
;
font-size
:
0.26rem
;
color
:
#
ff9419
;
color
:
#
cccccc
;
text-align
:
right
;
text-align
:
right
;
float
:
right
;
float
:
right
;
line-height
:
1rem
;
line-height
:
1rem
;
...
@@ -117,4 +117,8 @@ input::-webkit-input-placeholder{
...
@@ -117,4 +117,8 @@ input::-webkit-input-placeholder{
.div-conform
a
{
.div-conform
a
{
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
#btn
{
background
:
none
;
border
:
none
;
color
:
#cccccc
;
}
public/app/js/common.js
View file @
f9fb6dfa
...
@@ -16,7 +16,7 @@ function getUrlStringParam(str, name) {
...
@@ -16,7 +16,7 @@ function getUrlStringParam(str, name) {
//手机号码格式正则验证 by xishifeng
//手机号码格式正则验证 by xishifeng
function
is_mobile
(
text
)
{
function
is_mobile
(
text
)
{
/^1
[
34578
]\d{9}
$/
.
test
(
text
)?
1
:
0
;
return
/^1
[
34578
]\d{9}
$/
.
test
(
text
)?
1
:
0
;
}
}
//device判断设备是安卓还是苹果 by xishfieng 2017.04.26
//device判断设备是安卓还是苹果 by xishfieng 2017.04.26
...
...
public/app/js/share_register.js
View file @
f9fb6dfa
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
})();
})();
var
sends
=
{
var
sends
=
{
checked
:
1
,
checked
:
1
,
send
:
function
(){
send
:
function
(){
...
@@ -23,10 +24,15 @@ var sends = {
...
@@ -23,10 +24,15 @@ var sends = {
var
val
=
$
(
'#phone'
).
val
().
replace
(
/
\s
+/g
,
""
);
//获取输入手机号码
var
val
=
$
(
'#phone'
).
val
().
replace
(
/
\s
+/g
,
""
);
//获取输入手机号码
if
(
$
(
'.div-phone'
).
find
(
'span'
).
length
==
0
&&
$
(
'.div-ranks a'
).
attr
(
'class'
)
==
'send1'
){
if
(
$
(
'.div-phone'
).
find
(
'span'
).
length
==
0
&&
$
(
'.div-ranks a'
).
attr
(
'class'
)
==
'send1'
){
if
(
!
numbers
.
test
(
val
)
||
val
.
length
==
0
){
if
(
!
numbers
.
test
(
val
)
||
val
.
length
==
0
){
$
(
'.div-'
).
append
(
'<span class="error">手机格式错误!</span>'
);
$
(
'.div-
phone
'
).
append
(
'<span class="error">手机格式错误!</span>'
);
return
false
;
return
false
;
}
}
}
}
if
(
!
is_mobile
(
val
))
{
alert
(
"手机格式错误!"
)
return
false
;
}
if
(
numbers
.
test
(
val
)){
if
(
numbers
.
test
(
val
)){
$
.
ajax
({
$
.
ajax
({
url
:
ServerHost
+
"/api/sendSms/"
+
val
,
url
:
ServerHost
+
"/api/sendSms/"
+
val
,
...
@@ -46,17 +52,18 @@ var sends = {
...
@@ -46,17 +52,18 @@ var sends = {
}
}
});
});
var
time
=
60
;
var
time
=
60
;
//$('.div-phone span').remove()
;
if
(
!
sends
.
checked
)
return
;
function
timeCountDown
(){
function
timeCountDown
(){
if
(
time
==
0
){
if
(
time
==
0
){
$
(
".send0"
).
attr
(
"disabled"
,
""
);
clearInterval
(
timer
);
clearInterval
(
timer
);
$
(
'.div-ranks a'
).
addClass
(
'send1'
).
removeClass
(
'send0'
).
html
(
"获取验证码"
);
$
(
'.div-ranks a'
).
addClass
(
'send1'
).
removeClass
(
'send0'
).
html
(
"获取验证码"
);
sends
.
checked
=
1
;
sends
.
checked
=
1
;
return
true
;
return
true
;
}
}
$
(
'.error'
).
hide
();
$
(
'.div-ranks a'
).
html
(
"剩余"
+
time
+
"S"
);
$
(
'.div-ranks a'
).
html
(
"剩余"
+
time
+
"S"
);
time
--
;
time
--
;
return
false
;
sends
.
checked
=
0
;
sends
.
checked
=
0
;
}
}
$
(
'.div-ranks a'
).
addClass
(
'send0'
).
removeClass
(
'send1'
);
$
(
'.div-ranks a'
).
addClass
(
'send0'
).
removeClass
(
'send1'
);
...
@@ -66,6 +73,7 @@ var sends = {
...
@@ -66,6 +73,7 @@ var sends = {
},
},
conform
:
function
(){
conform
:
function
(){
var
zc
=
$
(
".zc_nor_button"
).
attr
(
"src"
);
if
(
""
==
$
(
"#phone"
).
val
())
{
if
(
""
==
$
(
"#phone"
).
val
())
{
alert
(
"请输入您的手机号!"
);
alert
(
"请输入您的手机号!"
);
return
;
return
;
...
@@ -78,6 +86,12 @@ var sends = {
...
@@ -78,6 +86,12 @@ var sends = {
alert
(
"请输入您的验证码!"
);
alert
(
"请输入您的验证码!"
);
return
;
return
;
}
}
if
(
zc
==
"/app/images/but_yuedu_nor.png"
)
{
alert
(
"请勾选协议!"
);
return
;
}
$
(
".conform"
).
html
(
"提交中..."
);
$
(
".conform"
).
html
(
"提交中..."
);
$
.
ajax
({
$
.
ajax
({
url
:
ServerHost
+
"/api/register"
,
url
:
ServerHost
+
"/api/register"
,
...
...
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