File was renamed from service-daylucky/src/main/resources/static/activity-list.html |
| | |
| | | |
| | | var table = layui.table; |
| | | |
| | | var url = "/admin/api/app/list?key=" + encodeURIComponent(app.key) + "&startDate=" + app.start + "&endDate=" + app.end; |
| | | var url = "/admin/activity/listActivity"; |
| | | |
| | | |
| | | table.render({ |
| | |
| | | cols: [ |
| | | [{type: 'checkbox', title: "ID"}, |
| | | {field: 'id', width: 80, sort: true, title: "ID"}, |
| | | {field: 'appCode', width: 120, sort: true, title: "应用唯一标识"}, |
| | | {field: 'appName', edit: 'text', width: 150, title: "应用名称"}, |
| | | {field: 'appDesc', edit: 'text', width: 200, title: "应用简介"}, |
| | | {field: 'remarks', edit: 'text', width: 200, title: "备注"}, |
| | | {field: 'serialNo', width: 120, sort: true, title: "活动期号"}, |
| | | {type: 'image', field: 'poster', edit: 'text', width: 150, title: "封面"}, |
| | | {field: 'state', width: 200, title: "状态"}, |
| | | {field: 'stateDesc', width: 200, title: "状态简介"}, |
| | | {field: 'createTime', sort: true, width: 150, title: "创建时间"}, |
| | | {field: 'updateTime', sort: true, width: 150, title: "修改时间"}, |
| | | // {field: 'status', width: 80, title: "状态", templet: "#statusContainer"}, |
| | |
| | | "code": res.code, //解析接口状态 |
| | | "msg": res.msg, //解析提示文本 |
| | | "count": res.data.count, //解析数据长度 |
| | | "data": res.data.data //解析数据列表 |
| | | "data": res.data.list //解析数据列表 |
| | | }; |
| | | } |
| | | //,…… //其他参数 |