作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

... ... @@ -22,11 +22,11 @@ class PersonalcenterController extends WeChatBaseController{
$my_user_status = Db::name('my_user') -> where('uid',$uid) -> find();
$weixin = Db::name('user') -> where('id',$uid) -> find();
$this -> assign('weixin',$weixin);
if($my_user_status['status'] == 0 || $my_user_status['status'] == 1 || $my_user_status['status'] == 3 || $my_user_status['status'] == 4){
if($my_user_status['status'] == 0 || $my_user_status['status'] == 1 || $my_user_status['status'] == 3 || $my_user_status['status'] == 4 || $my_user_status['status'] == 5 || $my_user_status['status'] == 6){
if($my_user_status['status'] == 0){
$this -> assign('status',0);
}
if($my_user_status['status'] == 1){
if($my_user_status['status'] == 1 || $my_user_status['status'] == 5 || $my_user_status['status'] == 6){
$this -> assign('status',1);
}
if($my_user_status['status'] == 3){
... ... @@ -37,6 +37,9 @@ class PersonalcenterController extends WeChatBaseController{
}
return $this -> fetch();
}
if($my_user_status['status'] == 2){
$this -> salesman_center();
}
}
... ... @@ -62,6 +65,15 @@ class PersonalcenterController extends WeChatBaseController{
}
/**
* 业务员个人中心页
*/
public function salesman_center(){
return $this -> fetch();
}
/**
* 我的收藏页
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>学考无忧-我的-完善个人信息</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" />
<link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" />
</head>
<body>
<div class="log_top">
<!-- 顶部 -->
<div class=" order_top log_top">
<a href="">
<img src="__TMPL__/public/assets/images/left2.png" alt="" />
</a>
<p style="color:white">订单确认</p>
</div>
<!-- 头像 -->
<div class="log_top_buddha">
<div class="log_top_buddha_img">
<img src="__TMPL__/public/assets/images/40.png" alt="" />
</div>
<div class="log_top_buddha_contant">
<div class="log_top_buddha_contant_one">
嘿嘿!小豆芽儿
</div>
<div class="log_top_buddha_contant_two">
五花马千金裘,呼儿将出换美酒
</div>
</div>
</div>
</div>
<!-- 列表 -->
<div class="log_one_list">
<a href="log_five.html">
<div class="log_one_list_one">
<div class="log_one_list_left">
<div class="log_one_list_img">
<img src="__TMPL__/public/assets/images/shangpin.png" alt="" />
</div>
<div class="log_one_list_word">
商品管理
</div>
</div>
<div class="log_one_list_right">
<img src="__TMPL__/public/assets/images/29.png" alt="" />
</div>
</div>
</a>
<a href="log_three.html">
<div class="log_one_list_one">
<div class="log_one_list_left">
<div class="log_one_list_img">
<img src="__TMPL__/public/assets/images/dingdan.png" alt="" />
</div>
<div class="log_one_list_word">
订单管理
</div>
</div>
<div class="log_one_list_right">
<img src="__TMPL__/public/assets/images/29.png" alt="" />
</div>
</div>
</a>
<a href="log_seven.html">
<div class="log_one_list_one">
<div class="log_one_list_left">
<div class="log_one_list_img">
<img src="__TMPL__/public/assets/images/school.png" alt="" />
</div>
<div class="log_one_list_word">
学校管理
</div>
</div>
<div class="log_one_list_right">
<img src="__TMPL__/public/assets/images/29.png" alt="" />
</div>
</div>
</a>
<a href="log_nine.html">
<div class="log_one_list_one">
<div class="log_one_list_left">
<div class="log_one_list_img">
<img src="__TMPL__/public/assets/images/49.png" alt="" />
</div>
<div class="log_one_list_word">
我的钱包
</div>
</div>
<div class="log_one_list_right">
<img src="__TMPL__/public/assets/images/29.png" alt="" />
</div>
</div>
</a>
<a href="w_code.html">
<div class="log_one_list_one">
<div class="log_one_list_left">
<div class="log_one_list_img">
<img src="__TMPL__/public/assets/images/47.png" alt="" />
</div>
<div class="log_one_list_word">
商城分享
</div>
</div>
<div class="log_one_list_right">
<img src="__TMPL__/public/assets/images/29.png" alt="" />
</div>
</div>
</a>
</div>
<!-- 底部一级导航 -->
<div class="in_bottom">
<ul>
<a href="index.html">
<li>
<img src="__TMPL__/public/assets/images/22.png" alt="" />
<p>首页</p>
</li>
</a>
<a href="nav_class.html">
<li>
<img src="__TMPL__/public/assets/images/16.png" alt="" />
<p>分类</p>
</li>
</a>
<a href="w_shopping_cart.html">
<li>
<img src="__TMPL__/public/assets/images/17.png" alt="" />
<p>购物车</p>
</li>
</a>
<a href="log_one.html">
<li>
<img src="__TMPL__/public/assets/images/19.png" alt="" />
<p style="color:#FF7700;">我的</p>
</li>
</a>
</ul>
</div>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script>
$(".log_top_buddha_btn").click(function() {
$(this).css({
display: "none"
});
$(".log_top_buddha_contant").toggle();
});
</script>
</body>
</html>
\ No newline at end of file
... ...