html详情页前端处理

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>
相关推荐
开心工作室_kaic15 分钟前
ssm068海鲜自助餐厅系统+vue(论文+源码)_kaic
前端·javascript·vue.js
有梦想的刺儿34 分钟前
webWorker基本用法
前端·javascript·vue.js
cy玩具1 小时前
点击评论详情,跳到评论页面,携带对象参数写法:
前端
qq_390161772 小时前
防抖函数--应用场景及示例
前端·javascript
John.liu_Test2 小时前
js下载excel示例demo
前端·javascript·excel
Yaml42 小时前
智能化健身房管理:Spring Boot与Vue的创新解决方案
前端·spring boot·后端·mysql·vue·健身房管理
PleaSure乐事2 小时前
【React.js】AntDesignPro左侧菜单栏栏目名称不显示的解决方案
前端·javascript·react.js·前端框架·webstorm·antdesignpro
哟哟耶耶2 小时前
js-将JavaScript对象或值转换为JSON字符串 JSON.stringify(this.SelectDataListCourse)
前端·javascript·json
getaxiosluo2 小时前
react jsx基本语法,脚手架,父子传参,refs等详解
前端·vue.js·react.js·前端框架·hook·jsx
理想不理想v2 小时前
vue种ref跟reactive的区别?
前端·javascript·vue.js·webpack·前端框架·node.js·ecmascript