Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df8211dd
authored
Feb 27, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
v1.0
parent
5006560c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
168 additions
and
3 deletions
app/Http/Controllers/WebController.php
app/Http/Middleware/CheckLogin.php
resources/views/pc/ForgetPassword.blade.php
resources/views/pc/Login.blade.php
app/Http/Controllers/WebController.php
View file @
df8211dd
...
...
@@ -44,6 +44,12 @@ class WebController extends Controller
$data
[
'time'
]
=
time
();
return
view
(
'pc'
,
$data
);
}
//找回密码
private
function
ForgetPassword
(
$request
,
$data
,
$id
){
$data
[
'title'
]
=
'欢迎使用云芯系统'
;
$data
[
'time'
]
=
time
();
return
view
(
'pc.ForgetPassword'
,
$data
);
}
//商品列表
private
function
GoodsList
(
$request
,
$data
,
$id
){
$data
[
'title'
]
=
'欢迎使用云芯系统'
;
...
...
app/Http/Middleware/CheckLogin.php
View file @
df8211dd
...
...
@@ -23,10 +23,10 @@ class CheckLogin
if
(
$pos
===
0
)
$isApi
=
true
;
if
(
empty
(
$yunxin_token
)
||
empty
(
$userInfo
)
){
//没有登录跳到登录页
if
(
strpos
(
$nowUrl
,
'/api/ApiLogin'
)
==
false
&&
strpos
(
$nowUrl
,
'/api/ApiLogin'
)
==
false
&&
$isApi
){
if
(
strpos
(
$nowUrl
,
'/api/ApiLogin'
)
==
false
&&
strpos
(
$nowUrl
,
'/api/ApiForgetPassword'
)
==
false
&&
$isApi
){
return
[
-
1
,
'请登录'
];
}
if
(
strpos
(
$nowUrl
,
'/web/login'
)
==
false
&&
!
$isApi
){
if
(
strpos
(
$nowUrl
,
'/web/login'
)
==
false
&&
strpos
(
$nowUrl
,
'/web/ForgetPassword'
)
==
false
&&
!
$isApi
){
return
redirect
(
'/web/login'
);
}
}
...
...
resources/views/pc/ForgetPassword.blade.php
0 → 100644
View file @
df8211dd
<!DOCTYPE HTML>
<html
lang=
"zh-CN"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"keywords"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"viewport"
content=
"width=device-width; initial-scale=1; maximum-scale=1; user-scalable=0;"
/>
<title>
{{ $title }}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/pc/font/iconfont.css?v={{ $time }}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/pc/js/layui/css/layui.css?v={{ $time }}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/pc/css/style.min.css?v={{ $time }}"
>
<script>
//存放公共变量
var
_URL_
=
"
<?php
echo
$_URL_
;
?>
";
var _DOMAIN_ = "
<?php
echo
$_DOMAIN_
;
?>
"
;
</script>
</head>
<body>
<!--头部-->
<div
class=
"lx-head"
>
<div
class=
"page-width clr"
>
<div
class=
"fl l"
>
<a
href=
"/"
class=
"lineBlock va-m logo"
>
<img
src=
"/pc/images/logo.png"
width=
"80"
height=
"39"
alt=
"猎芯网"
>
</a>
<span
class=
"lineBlock va-m line"
></span>
<em
class=
"lineBlock va-m text"
>
供应商系统登录
</em>
</div>
<div
class=
"fr r"
>
<a
class=
"lineBlock text va-m"
href=
"javascript:;"
>
<i
class=
"icn"
></i>
<span>
帮助
</span>
</a>
<div
class=
"info-wrap lineBlock va-m"
>
<!--未登录-->
<a
class=
"no-login"
href=
"javascript:;"
>
<i
class=
"icn ico-1"
></i>
<span
class=
"va-m"
>
请登录
</span>
<i
class=
"icn ico-2"
></i>
</a>
<!--已登录-->
<a
href=
"javascript:;"
class=
"login"
style=
"display: none"
>
<img
src=
"./images/b.png"
width=
"40"
height=
"40"
alt=
""
class=
"lineBlock va-m"
>
<span
class=
"va-m"
>
蓝色风沙
</span>
<i
class=
"icn ico-2"
></i>
</a>
<!--退出按钮-->
<a
class=
"exit-btn"
href=
"javascript:;"
style=
"display: none"
>
<i
class=
"icn arr"
></i>
<i
class=
"icn ico-1"
></i>
<span>
退出登录
</span>
<b
class=
"lineBlock emptys"
></b>
</a>
</div>
<b
class=
"emptys lineBlock"
></b>
</div>
</div>
</div>
<!--头部 end-->
<!--content-->
<div
class=
"lx-findpwd-content"
>
<div
class=
"lx-findpwd-wrap page-width"
>
<p
class=
"tit"
>
找回密码
</p>
<div
class=
"step-box"
>
<ul
class=
"step-list clr"
>
<li
class=
"curr disabled"
>
<b
class=
"line"
></b>
<em>
1
</em>
<p>
填写用户手机号
</p>
</li>
<li
class=
"curr"
>
<b
class=
"line"
></b>
<em>
2
</em>
<p>
验证手机号
</p>
</li>
<li>
<b
class=
"line"
></b>
<em>
3
</em>
<p>
填写新密码
</p>
</li>
<li>
<b
class=
"line"
></b>
<em>
4
</em>
<p>
完成
</p>
</li>
</ul>
<div
class=
"step-1"
style=
"display: none"
>
<div
class=
"form-action"
>
<div
class=
"inp-wrap"
>
<label
class=
"tag lineBlock va-m"
><em>
*
</em>
手机号码:
</label>
<input
type=
"password"
placeholder=
"请输入手机号"
class=
"inp va-m w338"
>
<em
class=
"error"
>
手机格式不对
</em>
</div>
<div
class=
"inp-wrap"
>
<label
class=
"tag lineBlock va-m"
><em>
*
</em>
验证码:
</label>
<input
type=
"text"
placeholder=
"请输入验证码"
class=
"inp va-m w158"
>
<div
class=
"lineBlock va-m code"
>
<div
class=
"pic lineBlock va-m"
><img
src=
"./images/verify.png"
alt=
""
></div>
<a
href=
"javascript:;"
class=
"va-m"
>
换一张
</a>
</div>
<em
class=
"error"
>
验证码错误
</em>
</div>
<div
class=
"bnt-wrap mt1"
>
<a
href=
"javascript:;"
class=
"ok btn lineBlock"
>
下一步
</a>
</div>
</div>
</div>
<div
class=
"step-2"
style=
"display: none"
>
<div
class=
"form-action"
>
<div
class=
"inp-wrap"
>
<label
class=
"tag lineBlock va-m"
><em>
*
</em>
手机号码:
</label>
<span
class=
"txt"
>
185****6352
</span>
</div>
<div
class=
"inp-wrap"
>
<label
class=
"tag lineBlock va-m"
><em>
*
</em>
验证码:
</label>
<input
type=
"text"
placeholder=
"请输入验证码"
class=
"inp va-m w210"
>
<a
href=
"javascript:;"
class=
"lineBlock va-m send-code"
>
发送验证码
</a>
<em
class=
"error"
>
验证码错误
</em>
</div>
<div
class=
"bnt-wrap mt1"
>
<a
href=
"javascript:;"
class=
"ok btn lineBlock"
>
下一步
</a>
</div>
</div>
</div>
<div
class=
"step-3"
style=
"display: none"
>
<div
class=
"form-action"
>
<div
class=
"inp-wrap"
>
<label
class=
"tag lineBlock va-m"
><em>
*
</em>
新登录密码:
</label>
<input
type=
"password"
placeholder=
"请输入原始密码"
class=
"inp va-m w338"
>
<em
class=
"error"
>
密码必须大于等于8位
</em>
</div>
<div
class=
"inp-wrap"
>
<label
class=
"tag lineBlock va-m"
><em>
*
</em>
确认新密码:
</label>
<input
type=
"password"
placeholder=
"请再次输入新密码"
class=
"inp va-m w338"
>
<em
class=
"error"
>
格式不对
</em>
</div>
<div
class=
"bnt-wrap mt1"
>
<a
href=
"javascript:;"
class=
"ok btn lineBlock"
>
提交
</a>
</div>
</div>
</div>
<div
class=
"step-4"
>
<div
class=
"done"
>
<i
class=
"iconfont icon-chenggong-"
></i>
<p
class=
"t1"
>
新密码重置成功!
</p>
<p
class=
"t2"
>
请牢记您的新密码!
<em>
去
</em><a
href=
""
class=
"lineBlock va-m"
>
登录
</a></p>
</div>
</div>
</div>
</div>
</div>
<!--content end-->
<script
type=
"text/javascript"
src=
"/pc/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"/pc/js/layui/layui.js"
></script>
</body>
</html>
\ No newline at end of file
resources/views/pc/Login.blade.php
View file @
df8211dd
...
...
@@ -61,7 +61,7 @@
</div>
</div>
<div
class=
"text-wrap clr"
>
<a
href=
"
#
"
class=
"t2 fr"
>
忘记密码?
</a>
<a
href=
"
/web/ForgetPassword
"
class=
"t2 fr"
>
忘记密码?
</a>
<div
class=
"error"
style=
"display: none"
>
帐号或密码错误,请重新输入!
</div>
</div>
<div
class=
"btn"
>
...
...
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