v1.0

parent 5006560c
...@@ -44,6 +44,12 @@ class WebController extends Controller ...@@ -44,6 +44,12 @@ class WebController extends Controller
$data['time']=time(); $data['time']=time();
return view('pc',$data); 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){ private function GoodsList($request,$data,$id){
$data['title']='欢迎使用云芯系统'; $data['title']='欢迎使用云芯系统';
......
...@@ -23,10 +23,10 @@ class CheckLogin ...@@ -23,10 +23,10 @@ class CheckLogin
if ($pos === 0) $isApi = true; if ($pos === 0) $isApi = true;
if (empty($yunxin_token) || empty($userInfo) ){ //没有登录跳到登录页 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,'请登录']; 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' ); return redirect('/web/login' );
} }
} }
......
<!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
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
</div> </div>
<div class="text-wrap clr"> <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 class="error" style="display: none"> 帐号或密码错误,请重新输入!</div>
</div> </div>
<div class="btn" > <div class="btn" >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment