html
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE> detail </TITLE>
<link rel="stylesheet" href="../../layuiadmin/layui/css/modules/laydate/default/laydate.css" type="text/css"></link>
<link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all" />
<script type="text/javascript" src="../../layuiadmin/layui/layui.js"></script>
<script type="text/javascript" src="../../layuiadmin/layui/lay/modules/laydate.js"></script>
<script type="text/javascript" src="../../scheme/js/jquery-1.9.1.js"></script>
<style>
.labelWidth{
width: 150px;
}
.layui-table th,td{
text-align:center;!important;
}
.inlineLeft{
margin-left: 50px;
}
</style>
<script language="javascript">
layui.use(['form', 'layedit', 'laydate'], function(){
var form = layui.form,layedit = layui.layedit,laydate = layui.laydate;
layer = parent.layer === undefined ? layui.layer : parent.layer;
$ = layui.jquery;
//日期
laydate.render({
elem: '#date'
});
});
$(function () {
var siteid = "[[${siteid}]]";
$.get("接口?siteid="+siteid,
function(data){
if(data.code==1){
$('#webName').text(data.msg.webName)
$('#domainName').text(data.msg.domainName)
$('#username').text(data.msg.username)
$('#phone').text(data.msg.phone)
$('#startTime').text(data.msg.startTime)
$('#endTime').text(data.msg.endTime)
if(data.msg.state==1){
$('#state').text('已授权')
}else if(data.msg.state==2){
$('#state').text('未授权')
}
$('#remark').text(data.msg.remark)
$('#email').text(data.msg.email)
}
});
})
</script>
</head>
<body style="background-color: #ffffff">
<form class="layui-form" method="post" >
<div id="xxxx" style="margin-top: 20px;">
<div class="layui-form-item">
<div class="layui-inline" >
<label class="layui-form-label" style="width: 175px; margin-left: -25px">网站名称:</label>
<div class="layui-input-inline">
<span style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;" id="webName"></span>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">域名:</label>
<div class="layui-input-inline">
<span id="domainName" style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;"></span>
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.applytype=='1'}" >申领</span>-->
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.applytype=='2'}" >归还</span>-->
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.applytype=='3'}" >变动</span>-->
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.applytype=='4'}" >报废</span>-->
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.applytype=='6'}" >换领</span>-->
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">网站联系人:</label>
<div class="layui-input-inline">
<span style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;" id="username"></span>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">联系人电话:</label>
<div class="layui-input-inline">
<span id="phone" style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;"></span>
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.zclx=='1'}" >个人</span>-->
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.zclx=='2'}" >公共</span>-->
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">授权开始时间:</label>
<div class="layui-input-inline">
<span style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;" id="startTime"></span>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">授权结束时间:</label>
<div class="layui-input-inline">
<span id="endTime" style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;"></span>
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.zclx=='1'}" >个人</span>-->
<!-- <span style="float: left;margin: 9px 0px 0px 5px;" th:if="${af.zclx=='2'}" >公共</span>-->
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">启用状态:</label>
<div class="layui-input-inline">
<span style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;" id="state"></span>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">邮箱:</label>
<div class="layui-input-inline">
<span style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;" id="email"></span>
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 175px; margin-left: -25px">备注:</label>
<div class="layui-input-inline">
<span style="float: left;margin: 8px 0px 0px 5px;font-weight: bold;" id="remark"></span>
</div>
</div>
</div>
</div>
</form>
</div>
</body>
</html>