Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
4627a05a
Commit
4627a05a
authored
Oct 10, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改试图文件以及极验证的模式
parent
379de102
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
21 deletions
+10
-21
SiteController.php
src/frontend/controllers/SiteController.php
+2
-8
center_header.php
src/frontend/views/layouts/center_header.php
+2
-2
main.php
src/frontend/views/layouts/main.php
+1
-7
user_center.php
src/frontend/views/layouts/user_center.php
+2
-1
request_password_reset.js
src/frontend/web/js/site/request_password_reset.js
+1
-1
signup.js
src/frontend/web/js/site/signup.js
+1
-1
token_input.js
src/frontend/web/js/site/token_input.js
+1
-1
No files found.
src/frontend/controllers/SiteController.php
View file @
4627a05a
...
@@ -65,13 +65,7 @@ class SiteController extends Controller
...
@@ -65,13 +65,7 @@ class SiteController extends Controller
'roles'
=>
[
'?'
],
'roles'
=>
[
'?'
],
],
],
],
],
],
]
'verbs'
=>
[
'class'
=>
VerbFilter
::
className
(),
'actions'
=>
[
'logout'
=>
[
'post'
],
],
],
];
];
}
}
...
@@ -196,7 +190,7 @@ class SiteController extends Controller
...
@@ -196,7 +190,7 @@ class SiteController extends Controller
}
}
}
}
}
else
{
}
else
{
$model
->
addError
(
'token'
,
'验证码错误'
);
$model
->
addError
(
'token'
,
'验证码错误'
);
}
}
}
}
...
...
src/frontend/views/layouts/center_header.php
View file @
4627a05a
...
@@ -7,6 +7,6 @@
...
@@ -7,6 +7,6 @@
*/
*/
?>
?>
<div
class=
"tp-head navbar-fixed-top clearfix"
>
<div
class=
"tp-head navbar-fixed-top clearfix"
>
<div
class=
"menu-btn fl"
><a
href=
"
#
"
><i
class=
"icon-menu"
></i></a></div>
<div
class=
"menu-btn fl"
><a
href=
"
javascript:;
"
><i
class=
"icon-menu"
></i></a></div>
<div
class=
"avatar fr"
><a
href=
"
#
"
><img
src=
"
<?=
Yii
::
$app
->
assetManager
->
baseUrl
?>
/img/avatar.jpg"
></a></div>
<div
class=
"avatar fr"
><a
href=
"
<?=
\yii\helpers\Url
::
base
()
.
'user-center'
?>
"
><img
src=
"
<?=
Yii
::
$app
->
assetManager
->
baseUrl
?>
/img/avatar.jpg"
></a></div>
</div>
</div>
src/frontend/views/layouts/main.php
View file @
4627a05a
...
@@ -38,13 +38,7 @@ $baseUrl = \yii\helpers\Url::base();
...
@@ -38,13 +38,7 @@ $baseUrl = \yii\helpers\Url::base();
<li><a
href=
"
<?=
$baseUrl
.
"/site/signup"
?>
"
>
注册
</a></li>
<li><a
href=
"
<?=
$baseUrl
.
"/site/signup"
?>
"
>
注册
</a></li>
<?php
else
:
?>
<?php
else
:
?>
<?=
'<li>'
.
Html
::
beginForm
([
'/site/logout'
],
'post'
)
.
Html
::
submitButton
(
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
)
.
Html
::
endForm
()
.
'</li>'
;
?>
<?php
endif
;
?>
<?php
endif
;
?>
</ul>
</ul>
...
...
src/frontend/views/layouts/user_center.php
View file @
4627a05a
...
@@ -45,6 +45,7 @@ $(function() {
...
@@ -45,6 +45,7 @@ $(function() {
};
};
new Accordion($("#accordion"), false);
new Accordion($("#accordion"), false);
});
});
JS;
JS;
...
@@ -86,7 +87,7 @@ $this->registerJs($js, View::POS_END);
...
@@ -86,7 +87,7 @@ $this->registerJs($js, View::POS_END);
<a
href=
"
<?=
$baseUrl
.
'/user-center/browse-record'
?>
"
><i
class=
"glyphicon glyphicon-eye-open"
></i>
浏览记录
</a>
<a
href=
"
<?=
$baseUrl
.
'/user-center/browse-record'
?>
"
><i
class=
"glyphicon glyphicon-eye-open"
></i>
浏览记录
</a>
</li>
</li>
<li><a
href=
"javascript:;"
><i
class=
"glyphicon glyphicon-play-circle"
></i>
我的课堂
</a></li>
<li><a
href=
"javascript:;"
><i
class=
"glyphicon glyphicon-play-circle"
></i>
我的课堂
</a></li>
<li><a
href=
"
javascript:;
"
><i
class=
"glyphicon glyphicon-off"
></i>
退出登录
</a></li>
<li><a
href=
"
<?=
$baseUrl
.
'/site/logout'
?>
"
><i
class=
"glyphicon glyphicon-off"
></i>
退出登录
</a></li>
</ul>
</ul>
<div
class=
"apply-class"
>
<div
class=
"apply-class"
>
...
...
src/frontend/web/js/site/request_password_reset.js
View file @
4627a05a
...
@@ -31,7 +31,7 @@ $.ajax({
...
@@ -31,7 +31,7 @@ $.ajax({
initGeetest
({
initGeetest
({
gt
:
data
.
gt
,
gt
:
data
.
gt
,
challenge
:
data
.
challenge
,
challenge
:
data
.
challenge
,
product
:
"
embed
"
,
// 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
product
:
"
float
"
,
// 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
offline
:
!
data
.
success
// 表示用户后台检测极验服务器是否宕机,一般不需要关注
offline
:
!
data
.
success
// 表示用户后台检测极验服务器是否宕机,一般不需要关注
// 更多配置参数请参见:http://www.geetest.com/install/sections/idx-client-sdk.html#config
// 更多配置参数请参见:http://www.geetest.com/install/sections/idx-client-sdk.html#config
},
handlerEmbed
);
},
handlerEmbed
);
...
...
src/frontend/web/js/site/signup.js
View file @
4627a05a
...
@@ -52,7 +52,7 @@ $.ajax({
...
@@ -52,7 +52,7 @@ $.ajax({
initGeetest
({
initGeetest
({
gt
:
data
.
gt
,
gt
:
data
.
gt
,
challenge
:
data
.
challenge
,
challenge
:
data
.
challenge
,
product
:
"
embed
"
,
// 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
product
:
"
float
"
,
// 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
offline
:
!
data
.
success
// 表示用户后台检测极验服务器是否宕机,一般不需要关注
offline
:
!
data
.
success
// 表示用户后台检测极验服务器是否宕机,一般不需要关注
// 更多配置参数请参见:http://www.geetest.com/install/sections/idx-client-sdk.html#config
// 更多配置参数请参见:http://www.geetest.com/install/sections/idx-client-sdk.html#config
},
handlerEmbed
);
},
handlerEmbed
);
...
...
src/frontend/web/js/site/token_input.js
View file @
4627a05a
...
@@ -34,7 +34,7 @@ $.ajax({
...
@@ -34,7 +34,7 @@ $.ajax({
initGeetest
({
initGeetest
({
gt
:
data
.
gt
,
gt
:
data
.
gt
,
challenge
:
data
.
challenge
,
challenge
:
data
.
challenge
,
product
:
"
embed
"
,
// 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
product
:
"
float
"
,
// 产品形式,包括:float,embed,popup。注意只对PC版验证码有效
offline
:
!
data
.
success
// 表示用户后台检测极验服务器是否宕机,一般不需要关注
offline
:
!
data
.
success
// 表示用户后台检测极验服务器是否宕机,一般不需要关注
// 更多配置参数请参见:http://www.geetest.com/install/sections/idx-client-sdk.html#config
// 更多配置参数请参见:http://www.geetest.com/install/sections/idx-client-sdk.html#config
},
handlerEmbed
);
},
handlerEmbed
);
...
...
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