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

8

... ... @@ -38,11 +38,21 @@ class PersonalcenterController extends WeChatBaseController{
return $this -> fetch();
}
}
/**
* 完善个人信息页
*/
public function perfect_information(){
$uid = cmf_get_current_user_id();
$weixin = Db::name('user') -> where('id',$uid) -> find();
$this -> assign('weixin',$weixin);
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="img/left2.png" alt="" />
</a>-->
<p style="color:white">订单确认</p>
</div>
<!-- 头像 -->
<div class="log_top_buddha">
<div class="log_top_buddha_img">
<img src="{$weixin.avatar}" alt="" />
</div>
<div class="log_top_buddha_btn">
<a href="log_two.html">完善个人信息</a>
</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="./img/shangpin.png" alt="" />
</div>
<div class="log_one_list_word">
商品管理
</div>
</div>
<div class="log_one_list_right">
<img src="./img/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="./img/dingdan.png" alt="" />
</div>
<div class="log_one_list_word">
订单管理
</div>
</div>
<div class="log_one_list_right">
<img src="./img/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="./img/school.png" alt="" />
</div>
<div class="log_one_list_word">
学校管理
</div>
</div>
<div class="log_one_list_right">
<img src="./img/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="./img/49.png" alt="" />
</div>
<div class="log_one_list_word">
我的钱包
</div>
</div>
<div class="log_one_list_right">
<img src="./img/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="./img/47.png" alt="" />
</div>
<div class="log_one_list_word">
商城分享
</div>
</div>
<div class="log_one_list_right">
<img src="./img/29.png" alt="" />
</div>
</div>
</a>
</div>
<!-- 底部一级导航 -->
<div class="in_bottom">
<ul>
<a href="index.html">
<li>
<img src="img/22.png" alt="" />
<p>首页</p>
</li>
</a>
<a href="nav_class.html">
<li>
<img src="img/16.png" alt="" />
<p>分类</p>
</li>
</a>
<a href="w_shopping_cart.html">
<li>
<img src="img/17.png" alt="" />
<p>购物车</p>
</li>
</a>
<a href="log_one.html">
<li>
<img src="img/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></script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -77,14 +77,14 @@
<div class="log_top">
<!-- 顶部 -->
<div class=" order_top log_top">
<a href="">
<!--<a href="">
<img src="__TMPL__/public/assets/images/left2.png" alt="" />
</a>
</a>-->
<p style="color:white">我的</p>
</div>
<!-- 个人中心 -->
<if condition="$status eq 1">
<div class="w_myG" onclick="">个人中心</div>
<div class="w_myG" onclick="perfect_information()">个人中心</div>
</if>
<!-- 头像 -->
<div class="log_top_buddha">
... ... @@ -260,6 +260,14 @@
<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
<script src="__TMPL__/public/assets/js/city.data-3.js"></script>
<script>
/**
* 点击个人中心跳转
*/
function perfect_information(){
window.location.href = "{:url('Personalcenter/perfect_information')}";
}
</script>
<script>
$(".log_top_buddha_btn").click(function() {
$(this).css({
display: "none"
... ...