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.

72 lines
2.0 KiB

7 months ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="./component/layui/css/layui.css" />
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<script src="./component/layui/layui.js"></script>
<script>
layui.use(function () {
var layer = layui.layer;
var $ = layui.jquery;
// $.ajax({
// type: "GET",
// dataType: "json",
// async: false,
// url: "/QingLong/global/getGlobalByCodes",
// success: function (res) {
// if (res.success) {
// var iframe = '<iframe src="http://10.10.14.207:8080/ui/chat/' + appId + '" style="width: 100%; height: 100%;" frameborder="0" allow="microphone"></iframe>';
// } else {
// var loadIndex = layer.msg('AI助手初始化中...', {
// icon: 16,
// shade: 0.01
// });
// var iframe = '<iframe src="http://10.10.14.207:8080/ui/chat/' + appId + '" style="width: 100%; height: 100%;" frameborder="0" allow="microphone"></iframe>';
// }
// }
// });
var loadIndex = layer.msg('AI助手初始化中...', {
icon: 16,
shade: 0.05
});
// 模拟关闭
setTimeout(function () {
layer.close(loadIndex);
var appId = "5b45c7e216579a41";
var iframe = '<iframe src="http://10.10.14.207:8080/ui/chat/' + appId + '" style="width: 100%; height: 99.5%;" frameborder="0" allow="microphone"></iframe>';
$('body').append(iframe);
}, 1000);
});
</script>
</body>
</html>