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.

93 lines
2.4 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>{{ env("APP_NAME")}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="内部信息化平台" name="description"/>
<meta content="langye.net" name="author"/>
<!-- App favicon -->
<link rel="shortcut icon" href="/hyper/dist/saas/assets/images/favicon.ico">
<!-- third party css -->
<link href="/plugins/sweetalert2/sweetalert2.min.css" rel="stylesheet" type="text/css"/>
<!-- third party css end -->
<!-- App css -->
<link href="/hyper/dist/saas/assets/css/icons.min.css" rel="stylesheet" type="text/css"/>
<link href="/hyper/dist/saas/assets/css/app.min.css" rel="stylesheet" type="text/css" id="light-style"/>
<link href="/hyper/dist/saas/assets/css/app-dark.min.css" rel="stylesheet" type="text/css" id="dark-style"/>
<link href="/css/common.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Begin page -->
<div class="wrapper"></div>
<!-- bundle -->
<script src="/hyper/dist/saas/assets/js/vendor.min.js"></script>
<script src="/hyper/dist/saas/assets/js/app.min.js"></script>
<script src="/plugins/sweetalert2/sweetalert2.min.js"></script>
@if ($success)
<script>
var msg = '{{$msg}}';
var type = 'success';
var color = '#0acf97';
</script>
@else
<script>
var msg = '{{$msg}}';
var type = 'warning';
var color = '#ffbc00';
</script>
@endif
<script>
$(function () {
var jumpUrl = '{!! $url !!}';
var timer = '{{$timer}}';
timer < 3 ? timer = 3 : "";
timer = timer * 1000;
Swal.fire({
title: "提示",
text: msg,
type: type,
showCancelButton: false,
confirmButtonColor: color,
confirmButtonText: "知道了",
closeOnConfirm: false,
animation: false
}).then(function (t) {
t.value ? jump(jumpUrl) : ""
});
window.setTimeout(function () {
jump(jumpUrl);
}, timer);
})
;
function jump(jumpUrl) {
if (jumpUrl == "") {
back();
} else {
window.location.href = jumpUrl;
}
}
function back() {
var history = window.history;
if (history.length > 1) {
window.history.go(-1);
} else {
window.close();
}
}
</script>
</body>
</html>