You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.6 KiB
45 lines
1.6 KiB
{layout name="public/layout" /}
|
|
<div id="activity">
|
|
<div class="title"><img src="{$yf_theme_path}/public/img/acttitle.jpg" width="100%"/></div>
|
|
{if condition="(isset($list) and count($list))"}
|
|
<div class="activitylist">
|
|
{foreach $list as $vo}
|
|
<div class="activity" >
|
|
<a href="{:url('activity/detail',array('id'=>$vo['id']))}">
|
|
{if condition="empty($vo['banner'])"}
|
|
<img src="{$yf_theme_path}/public/img/default.png" class="media-object" width="100%" />
|
|
{else}
|
|
<img src="{$vo.banner}" class="media-object" width="100%" οnerrοr="javascript:this.src='{$yf_theme_path}/public/img/default.png';"/>
|
|
{/if}
|
|
</a>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
<div class="pages text-center">{$show}</div>
|
|
{/if}
|
|
</div>
|
|
<script src="{$yf_theme_path}/public/js/layer/layer.js"></script>
|
|
<script>
|
|
$(function(){
|
|
$(".activity").each(function(){
|
|
$(this).click(function(event){
|
|
event.preventDefault();
|
|
var href=$(this).find('a').attr('href');
|
|
$.ajax({type:"POST",
|
|
url:"{:url('check')}",
|
|
data:"",
|
|
async: false,
|
|
success:function (data) {
|
|
if (data.code == 1) {
|
|
window.location.href=href;
|
|
}else{
|
|
layer.msg(data.msg);
|
|
window.location.href=data.url;
|
|
}
|
|
}
|
|
})
|
|
});
|
|
});
|
|
|
|
});
|
|
</script>
|