65 行
1.7 KiB
HTML
可执行文件
65 行
1.7 KiB
HTML
可执行文件
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>活动</title>
|
|
<style>
|
|
html,body{
|
|
background-color: white;
|
|
font-size: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.box{
|
|
padding: 4vw;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
.list{
|
|
width: 30vw;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 2vw 8vw;
|
|
}
|
|
|
|
.list>img{
|
|
width: 30vw;
|
|
height: 30vw;
|
|
}
|
|
.list>span{
|
|
font-size: 4vw;
|
|
padding-top: 5px;
|
|
color: black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="box">
|
|
<volist name="plug" id="p">
|
|
<div class="list" data-url="/index.php/{$p['use_url']}">
|
|
<img src="{$p['icon_url']}" alt="{$p['plug_name']}">
|
|
<span>{$p['plug_name']}</span>
|
|
</div>
|
|
</volist>
|
|
</div>
|
|
|
|
</body>
|
|
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
|
<script src="__PUBLIC__/js/tips.js"></script>
|
|
<script>
|
|
$('.list').click(function () {
|
|
var url = $(this).attr('data-url');
|
|
if(url.length>11){
|
|
location.href = url;
|
|
}else {
|
|
showTips('该活动不在手机端展示');
|
|
}
|
|
})
|
|
</script>
|
|
</html> |