diff --git a/lib/layui/lay/okmodules/okMock.js b/lib/layui/lay/okmodules/okMock.js index 3aa893a..6f93bd6 100644 --- a/lib/layui/lay/okmodules/okMock.js +++ b/lib/layui/lay/okmodules/okMock.js @@ -39,8 +39,11 @@ layui.define([], function(exprots) { list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/log/list" }, message: { - list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/message/list" - } + list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/message/list" + }, + download: { + list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/download/list" + } } }; exprots("okMock", okMock); diff --git a/pages/often/download.html b/pages/often/download.html index 2bcceb8..42bcb55 100644 --- a/pages/often/download.html +++ b/pages/often/download.html @@ -2,7 +2,7 @@ - 文章列表 + 下载列表 @@ -52,7 +52,7 @@ var articleTable = table.render({ elem: "#tableId", - url: okMock.api.article.list, + url: okMock.api.download.list, limit: 20, page: true, even: true, @@ -61,12 +61,13 @@ cols: [[ {type: "checkbox", fixed: "left"}, {field: "guid", title: "GUID", width: 280, sort: true}, - {field: "title", title: "标题", width: 350}, - {field: "url", title: "链接", width: 250, templet: "#urlTpl"}, + {field: "name", title: "资源名称", width: 250}, + {field: "remarks", title: "资源信息", width: 250}, + {field: "url", title: "预览", width: 250, templet: "#urlTpl"}, {field: "publisher", title: "发布者", width: 100}, - {field: "readSize", title: "阅读量", width: 80}, - {field: "isTop", title: "是否置顶", width: 100, align: "center", templet: "#topTpl"}, - {field: "status", title: "发布状态", width: 110, align: "center", templet: "#statusTpl"}, + {field: "downloadSize", title: "下载量", width: 80}, + {field: "recommend", title: "是否推荐", width: 100, align: "center", templet: "#recommendTpl"}, + {field: "status", title: "状态", width: 110, align: "center", templet: "#statusTpl"}, {title: "操作", width: 100, align: "center", fixed: "right", templet: "#operationTpl"} ]], done: function (res, curr, count) { @@ -189,34 +190,33 @@ - + + + - - - + - - + diff --git a/pages/often/image.html b/pages/often/image.html index 29939e7..53bbeae 100644 --- a/pages/often/image.html +++ b/pages/often/image.html @@ -2,7 +2,7 @@ - 文章列表 + 图片列表 diff --git a/pages/often/link.html b/pages/often/link.html index 5cea660..c53c393 100644 --- a/pages/often/link.html +++ b/pages/often/link.html @@ -2,7 +2,7 @@ - 文章列表 + 链接列表 diff --git a/pages/often/message.html b/pages/often/message.html index 19985b9..0770835 100644 --- a/pages/often/message.html +++ b/pages/often/message.html @@ -2,7 +2,7 @@ - 文章列表 + 留言列表 @@ -52,7 +52,7 @@ var articleTable = table.render({ elem: "#tableId", - url: okMock.api.article.list, + url: okMock.api.message.list, limit: 20, page: true, even: true, @@ -61,12 +61,11 @@ cols: [[ {type: "checkbox", fixed: "left"}, {field: "guid", title: "GUID", width: 280, sort: true}, - {field: "title", title: "标题", width: 350}, - {field: "url", title: "链接", width: 250, templet: "#urlTpl"}, - {field: "publisher", title: "发布者", width: 100}, - {field: "readSize", title: "阅读量", width: 80}, - {field: "isTop", title: "是否置顶", width: 100, align: "center", templet: "#topTpl"}, - {field: "status", title: "发布状态", width: 110, align: "center", templet: "#statusTpl"}, + {field: "username", title: "留言者", width: 100}, + {field: "content", title: "留言内容", width: 350}, + {field: "url", title: "文章链接", width: 250, templet: "#urlTpl"}, + {field: "createTime", title: "留言时间", width: 150}, + {field: "status", title: "状态", width: 110, align: "center", templet: "#statusTpl"}, {title: "操作", width: 100, align: "center", fixed: "right", templet: "#operationTpl"} ]], done: function (res, curr, count) { @@ -189,34 +188,23 @@ - + + + - - - + - - + diff --git a/pages/often/product.html b/pages/often/product.html index 1ed85d4..22971d8 100644 --- a/pages/often/product.html +++ b/pages/often/product.html @@ -2,7 +2,7 @@ - 文章列表 + 产品列表 diff --git a/pages/often/task.html b/pages/often/task.html index 2a384ab..c544419 100644 --- a/pages/often/task.html +++ b/pages/often/task.html @@ -2,7 +2,7 @@ - 文章列表 + 任务列表