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

5

... ... @@ -46,6 +46,16 @@ class PersonalcenterController extends WeChatBaseController{
public function perfect_information(){
$uid = cmf_get_current_user_id();
$my_user_status = Db::name('my_user') -> where('uid',$uid) -> find();
if($my_user_status['status'] == 1){
$this -> assign('status',1);
}
if($my_user_status['status'] == 5){
$this -> assign('status',5);
}
if($my_user_status['status'] == 6){
$this -> assign('status',6);
}
$weixin = Db::name('user') -> where('id',$uid) -> find();
$this -> assign('weixin',$weixin);
return $this -> fetch();
... ...
... ... @@ -24,9 +24,11 @@
<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>
<if condition="($status eq 1) or ($status eq 6)">
<div class="log_top_buddha_btn">
<a href="log_two.html">完善个人信息</a>
</div>
</if>
</div>
</div>
<!-- 列表 -->
... ... @@ -76,36 +78,6 @@
</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">
... ...