webapp/WEB-INF/jsp/Goods.jsp

(开头部分) 30KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js">
    window.onunload(alert("sp"))
</script>
<html>
<head>
    <title>商品列表</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/table/bootstrap-table.min.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/table/bootstrap-table.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/table/locale/bootstrap-table-zh-CN.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/sweetalert/sweetalert.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/sweetalert/sweetalert.min.js"></script>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/date/Moment.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.js"></script>

    <script>
        $(function () {
            $('#table').bootstrapTable({
                url:'${pageContext.request.contextPath}/goods/query',
                method:'post',
                contentType:"application/x-www-form-urlencoded",
                columns:[{ checkbox:true
            }, {
                field: 'goodsId',
                title: '商品编号'
            },{
                field: 'goodsName',
                title: '商品名称'
            },{
                field: 'unitPrice',
                title: '进价'
            },{
                field: 'sellPrice',
                title: '售价',

            },
               { field:'xxx',title:'库存',
                        formatter:function (value,row,index) {
                            if(row.inventory==0){
                                return "<p style='color:red'>请进货</p>"
                            }else if(row.inventory<10){
                                return "<p style='color:red'>货物不足10个</p>";
                            }else{
                                return row.inventory;
                            }
                        }
                    },
            {
                field: 'remark',
                title: '备注'
            }, {
                        field:'xx',title:'操作',
                        formatter : function(value, row, index) {
                            return "<a title='删除' href='javascript:del1("
后面还有 558 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。