Commit 5dc21da4 by 肖康

更换php方法校验登录状态

parent e5a31433
......@@ -6,11 +6,11 @@
<div class="fr clr ghn-right-box">
<div class="grb-top clr">
<a href="javascript:void(0)" class="fr clj gofooter">CONTACT US</a>
@if(!empty($_COOKIE['sem_email']))
@if(Auth::check())
<div class="login-head-box yesLogin fr clj">
<a href="/user/order" class="row">
<span><i class="icon iconfont icon-touxiang"></i></span>
<div class="username">{{$_COOKIE['sem_email']}}</div>
<div class="username">{{Auth::user()->email??''}}</div>
</a>
<div class="userurl-box">
<a href="/user/order">My Orders</a>
......
......@@ -5,7 +5,7 @@
const PUBLICXK="{{$public}}";//资源文件文件目录 js公用变量
const SO_URL="{{$so_url}}";//资源文件文件目录 js公用变量
</script>
<input type="hidden" id="emailCookie" value="{{$_COOKIE['sem_email']??''}}">
<input type="hidden" id="emailCookie" value="{{Auth::user()->email??''}}">
<script src="{{$public}}/assets/js/common/sea.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/common/jquery-1.8.3.min.js?v={{time()}}"></script>
<script src="{{$public}}/assets/js/common/config.js?v={{time()}}"></script>
......@@ -7,11 +7,11 @@
<div class="searchbtnx boxsiz mallsearchbtnx"><i class="icon iconfont icon-sousuo-shangcheng"></i></div>
</div>
<a class="car-boxs" href="/car"><i class="icon iconfont icon-gouwuche"></i><span class="carNum carNumxs">0</span></a>
@if(!empty($_COOKIE['sem_email']))
@if(Auth::check())
<div class="login-head-box yesLogin">
<a href="/user/order" class="row">
<span><i class="icon iconfont icon-touxiang"></i></span>
<div class="username">{{$_COOKIE['sem_email']}}</div>
<div class="username">{{Auth::user()->email??''}}</div>
</a>
<div class="userurl-box">
<a href="/user/order">My Orders</a>
......
......@@ -6,8 +6,8 @@
<div class="login-head-box yesLogin">
<a href="/user/order" class="row">
<span><i class="icon iconfont icon-touxiang"></i></span>
@if(!empty($_COOKIE['sem_email']))
<div class="username">{{$_COOKIE['sem_email']}}</div>
@if(Auth::check())
<div class="username">{{Auth::user()->email??''}}</div>
@endif
</a>
</div>
......
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