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 @@
-
+
+
+
-
-
-
+
-
-
+