diff --git a/src/api/system/comment.js b/src/api/system/comment.js new file mode 100644 index 0000000..ecd064e --- /dev/null +++ b/src/api/system/comment.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询评论信息列表 +export function listComment(query) { + return request({ + url: '/system/comment/list', + method: 'get', + params: query + }) +} + +// 查询评论信息详细 +export function getComment(id) { + return request({ + url: '/system/comment/' + id, + method: 'get' + }) +} + +// 新增评论信息 +export function addComment(data) { + return request({ + url: '/system/comment', + method: 'post', + data: data + }) +} + +// 修改评论信息 +export function updateComment(data) { + return request({ + url: '/system/comment', + method: 'put', + data: data + }) +} + +// 删除评论信息 +export function delComment(id) { + return request({ + url: '/system/comment/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/commodity.js b/src/api/system/commodity.js new file mode 100644 index 0000000..d576279 --- /dev/null +++ b/src/api/system/commodity.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询商品信息列表 +export function listCommodity(query) { + return request({ + url: '/system/commodity/list', + method: 'get', + params: query + }) +} + +// 查询商品信息详细 +export function getCommodity(id) { + return request({ + url: '/system/commodity/' + id, + method: 'get' + }) +} + +// 新增商品信息 +export function addCommodity(data) { + return request({ + url: '/system/commodity', + method: 'post', + data: data + }) +} + +// 修改商品信息 +export function updateCommodity(data) { + return request({ + url: '/system/commodity', + method: 'put', + data: data + }) +} + +// 删除商品信息 +export function delCommodity(id) { + return request({ + url: '/system/commodity/' + id, + method: 'delete' + }) +} diff --git a/src/assets/images/login-background1.jpg b/src/assets/images/login-background1.jpg new file mode 100644 index 0000000..8a89eb8 Binary files /dev/null and b/src/assets/images/login-background1.jpg differ diff --git a/src/assets/images/login-background2.jpg b/src/assets/images/login-background2.jpg new file mode 100644 index 0000000..d648d99 Binary files /dev/null and b/src/assets/images/login-background2.jpg differ diff --git a/src/assets/images/login-background3.jpg b/src/assets/images/login-background3.jpg new file mode 100644 index 0000000..723ac11 Binary files /dev/null and b/src/assets/images/login-background3.jpg differ diff --git a/src/views/index.vue b/src/views/index.vue index 6a746ec..eeb3207 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,103 +1,124 @@ - \ No newline at end of file diff --git a/src/views/system/comment/index.vue b/src/views/system/comment/index.vue new file mode 100644 index 0000000..e1695f4 --- /dev/null +++ b/src/views/system/comment/index.vue @@ -0,0 +1,270 @@ + + + diff --git a/src/views/system/commodity/index.vue b/src/views/system/commodity/index.vue new file mode 100644 index 0000000..468326b --- /dev/null +++ b/src/views/system/commodity/index.vue @@ -0,0 +1,334 @@ + + +