位置:apps\public\Tpl\default\Profile\_sidebar.html 3~19行
操作:修改代码
效果:解除默认只显示3个勋章,新增鼠标经过显示大卡片图。
旧代码:
~~~
<div class="right-box clearfix"><!--个人资料-->
<fieldset>
<legend class="inter-txt"><php>echo $sexName?$sexName.'的':' ';</php>成就</legend>
</fieldset>
<php>$profile = $user_info[$uid]; $profile['medals'] = array_slice($profile['medals'], 0, 3);</php>
<div class="userinfo clearfix mb20">
<php>foreach($profile['credit_info']['credit'] as $k=>$vo) { </php>
<span class="left">{$vo.alias}:{$vo.value}</span>
<php> } </php>
</div>
<ul>
<volist name="profile.medals" id="vo">
<li style="padding-right:12px;"><img src="{$vo.src}" width="50" height="50"/></li>
</volist>
<li><a href="{:U('public/Medal/index')}"><img src="__APP__/image/task/medal-more.png" width="50" height="50" /></a></li>
</ul>
</div>
~~~
新代码:
~~~
<div class="right-box clearfix"><!--个人资料-->
<fieldset>
<legend class="inter-txt"><php>echo $sexName?$sexName.'的':' ';</php>成就</legend>
</fieldset>
<php>$profile = $user_info[$uid]; //$profile['medals'] = array_slice($profile['medals'], 0, 3);</php>
<div class="userinfo clearfix mb20" id="jump-score" data-url="{:U('public/Account/scoredetail')}">
<php>foreach($profile['credit_info']['credit'] as $k=>$vo) { </php>
<span class="left">{$vo.alias}:{$vo.value}</span>
<php> } </php>
</div>
<ul>
<volist name="profile.medals" id="vo">
<php>
$share_card=explode('|',$vo['share_card']);
</php>
<li style="padding:0 10px 10px 0;">
<img src="{$vo.src}" width="50" height="50" onmousemove="showShare_card('share_card_{$share_card[0]}');"/>
<div style="position:absolute;display: none;z-index: 88;" id="share_card_{$share_card[0]}">
<img src="__ROOT__/data/upload/{$share_card[1]}"/>
</div>
</li>
</volist>
<li><a href="{:U('public/Medal/index')}"><img src="__APP__/image/task/medal-more.png" width="50" height="50" /></a></li>
</ul>
<script>
var last_share_card='';
$('body').click(function(){
$('#'+last_share_card).hide();
});
function showShare_card(id){
$('#'+last_share_card).hide();
last_share_card=id;
$('#'+id).show();
}
</script>
</div>
~~~