bt-yjj-system-examination-s.../src/main/resources/static/route/personfiles/show-certificate.html

60 lines
2.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<base href="/signup/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="assets/fonts/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" type="text/css" href="assets/js/vendor/viewer/viewer.min.css">
</head>
<body>
<div class="layui-anim layui-anim-fadein">
<div class="layui-row">
<div class="layui-card">
<div class="layui-card-body" style="padding: 15px;text-align: center">
<img id="certificateB64" src="" alt="生成失败" style="display: none;">
</div>
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/'
}).extend({
index: 'lib/index'
}).use(['index', 'table',], function() {
var $ = layui.$;
var $win = $(window);
var table = layui.table;
var admin = layui.admin;
var laydate = layui.laydate;
var applyStudentsNewId = top.restAjax.params(window.location.href).applyStudentsNewId;
function initData(){
getCertificate();
$('.layui-card').height($('.layui-card').height() > $win.height() ?
$('.layui-card').height() : $win.height())
}
initData();
function getCertificate(){
top.restAjax.get(top.restAjax.path('api/person-files/get-certificate', []),
{applyStudentsNewId : applyStudentsNewId}, null, function (code, data) {
$("#certificateB64").attr("src",data.certificateB64);
$("#certificateB64").show();
}, function (code, data) {
top.dialog.msg(data.msg);
});
}
});
</script>
</body>
</html>