From 05b443c352d978a8c59a628f47ace96810c3cce3 Mon Sep 17 00:00:00 2001 From: bobi Date: Fri, 30 Aug 2019 23:56:01 +0800 Subject: [PATCH] add:product.html --- lib/layui/lay/okmodules/okMock.js | 3 ++ pages/often/download.html | 8 ++--- pages/often/image.html | 8 ++--- pages/often/link.html | 8 ++--- pages/often/message.html | 8 ++--- pages/often/product.html | 57 +++++++++++-------------------- pages/often/task.html | 8 ++--- 7 files changed, 43 insertions(+), 57 deletions(-) diff --git a/lib/layui/lay/okmodules/okMock.js b/lib/layui/lay/okmodules/okMock.js index b605df2..64836ab 100644 --- a/lib/layui/lay/okmodules/okMock.js +++ b/lib/layui/lay/okmodules/okMock.js @@ -26,6 +26,9 @@ layui.define([], function(exprots) { article: { list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/article/list" }, + product: { + list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/product/list" + }, log: { list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/log/list" }, diff --git a/pages/often/download.html b/pages/often/download.html index 74a2f5e..d361ef6 100644 --- a/pages/often/download.html +++ b/pages/often/download.html @@ -183,10 +183,10 @@ diff --git a/pages/often/image.html b/pages/often/image.html index 7c98df2..891e82e 100644 --- a/pages/often/image.html +++ b/pages/often/image.html @@ -183,10 +183,10 @@ diff --git a/pages/often/link.html b/pages/often/link.html index b2c9163..da3fab8 100644 --- a/pages/often/link.html +++ b/pages/often/link.html @@ -183,10 +183,10 @@ diff --git a/pages/often/message.html b/pages/often/message.html index fa2e0a2..7c71a09 100644 --- a/pages/often/message.html +++ b/pages/often/message.html @@ -183,10 +183,10 @@ diff --git a/pages/often/product.html b/pages/often/product.html index a8a9a1d..3b5e613 100644 --- a/pages/often/product.html +++ b/pages/often/product.html @@ -52,21 +52,20 @@ var articleTable = table.render({ elem: "#tableId", - url: okMock.api.article.list, + url: okMock.api.product.list, limit: 20, page: true, even: true, toolbar: "#toolbarTpl", - size: "sm", + size: "lg", 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: "guid", title: "GUID", width: 320, sort: true}, + {field: "name", title: "产品名称", width: 100}, + {field: "logo", title: "产品LOGO", width: 150, templet: "#logoTpl"}, + {field: "url", title: "产品官网", width: 200, templet: "#urlTpl"}, + {field: "description", title: "产品描述", width: 100}, + {field: "createTime", title: "创建时间", width: 180}, {title: "操作", width: 100, align: "center", fixed: "right", templet: "#operationTpl"} ]], done: function (res, curr, count) { @@ -183,40 +182,24 @@ - - - - - - + + + + diff --git a/pages/often/task.html b/pages/often/task.html index 4879e46..e21ccae 100644 --- a/pages/often/task.html +++ b/pages/often/task.html @@ -183,10 +183,10 @@