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.
73 lines
2.4 KiB
73 lines
2.4 KiB
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<!--#include file="/widget/head.html"-->
|
|
<style>
|
|
.layui-form-label { width: 120px !important; }
|
|
.layui-inline label { font-size:20px; }
|
|
#wrapper {padding: 20px;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="wrapper">
|
|
|
|
|
|
</div>
|
|
<script>
|
|
|
|
|
|
var dataid = Page.GetQueryString("id");
|
|
|
|
//加载服务器列表
|
|
function Load_realmlist() {
|
|
$.get(Page.SvrIp+"/api/Doshownoticeday_notice",
|
|
{
|
|
token: cookie.get("token"),
|
|
noticeId: dataid
|
|
}
|
|
, function (d) {
|
|
console.info(d);
|
|
var html = "";
|
|
for (var i in d.realm) {
|
|
i = Number(i);
|
|
var realm = d.realm[i];
|
|
var day = "";
|
|
for (var di in d.data[i]) {
|
|
var _day = d.data[i][di];
|
|
//正在进行中
|
|
if (_day.indexOf("###")!=-1) {
|
|
_day = _day.replace("###", "");
|
|
day += `<label style="color:green;">${_day}</label><br/>`;
|
|
}
|
|
//已结束
|
|
else if (_day.indexOf("##") != -1) {
|
|
_day = _day.replace("##", "");
|
|
day += `<label style="color:darkgrey;">${_day}</label><br/>`;
|
|
}
|
|
//未开始
|
|
else if (_day.indexOf("#") != -1) {
|
|
_day = _day.replace("#", "");
|
|
day += `<label >${_day}</label><br/>`;
|
|
}
|
|
|
|
}
|
|
|
|
html += `<div style="width:${100 / d.realm.length}%;display: inline-block;">
|
|
<h3>${realm} </h3>
|
|
<div class="layui-inline" id="test-n${(i)}" >${day}</div>
|
|
</div>`;
|
|
}
|
|
$("#wrapper").append(html);
|
|
|
|
});
|
|
}
|
|
|
|
$(function () {
|
|
Load_realmlist();
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|