TaoLer/view/index/public/jump.html

61 lines
1.6 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{block name="title"}这是title{/block}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="fly,layui,前端社区">
<meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区致力于为web开发提供强劲动力">
<link rel="stylesheet" href="/static/res/layui/css/layui.css">
<link rel="stylesheet" href="/static/res/css/global.css" charset="utf-8">
{include file="public/js" /}
</head>
<body>
{include file="public/header" /}
{block name="column"}
{include file="/public/column" /}
{/block}
{block name="content"}
<!--
* $msg 待提示的消息
* $url 待跳转的链接
* $time 弹出维持时间(单位秒)
* icon 这里主要有两个layer的表情5和6代表哭和笑
-->
<script type="text/javascript">
(function(){
var msg = '<?php echo(strip_tags($msg));?>';
var iurl = '<?php echo($url);?>';
var wait = '<?php echo($wait);?>';
<?php
switch ($code) {
case 1:
?>
layer.msg(msg,{icon:"6",time:wait*1000});
<?php
break;
case 0:
?>
layer.msg(msg,{icon:"5",time:wait*1000});
<?php
break;
}
?>
setTimeout(function(){
location.href=iurl;
},1000)
})();
</script>
{/block}
{include file="public/footer" /}
{block name="script"}
{/block}
</body>
</html>