diff --git a/public/favicon1.ico b/public/favicon1.ico new file mode 100644 index 0000000..e263760 Binary files /dev/null and b/public/favicon1.ico differ diff --git a/src/api/system/comment.js b/src/api/system/comment.js index ecd064e..da18619 100644 --- a/src/api/system/comment.js +++ b/src/api/system/comment.js @@ -3,12 +3,13 @@ import request from '@/utils/request' // 查询评论信息列表 export function listComment(query) { return request({ - url: '/system/comment/list', + url: '/system/comment/list2', method: 'get', params: query }) } + // 查询评论信息详细 export function getComment(id) { return request({ diff --git a/src/api/system/favorite.js b/src/api/system/favorite.js new file mode 100644 index 0000000..d14ca80 --- /dev/null +++ b/src/api/system/favorite.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询收藏信息列表 +export function listFavorite(query) { + return request({ + url: '/system/favorite/list2', + method: 'get', + params: query + }) +} + +// 查询收藏信息详细 +export function getFavorite(id) { + return request({ + url: '/system/favorite/' + id, + method: 'get' + }) +} + +// 新增收藏信息 +export function addFavorite(data) { + return request({ + url: '/system/favorite', + method: 'post', + data: data + }) +} + +// 修改收藏信息 +export function updateFavorite(data) { + return request({ + url: '/system/favorite', + method: 'put', + data: data + }) +} + +// 删除收藏信息 +export function delFavorite(id) { + return request({ + url: '/system/favorite/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/order.js b/src/api/system/order.js index ddc2806..f8ad075 100644 --- a/src/api/system/order.js +++ b/src/api/system/order.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询订单信息列表 export function listOrder(query) { return request({ - url: '/system/order/list', + url: '/system/order/list2', method: 'get', params: query }) diff --git a/src/views/index.vue b/src/views/index.vue index eeb3207..4f4c5c2 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,40 +1,54 @@ + + \ No newline at end of file + +.product-title { + margin-top: 0; + font-size: 25px; /* 增加字体大小 */ + font-weight: bold; + margin-bottom: 10px; +} + +.product-list { + display: flex; + flex-direction: column; + gap: 20px; + flex-grow: 1; /* 让 product-list 占满剩余的高度 */ + overflow-y: auto; /* 添加垂直滚动条 */ +} + +.product-item { + display: flex; + align-items: center; + border: 1px solid #ccc; + border-radius: 10px; + padding: 10px; + background-color: #fff; + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); +} + +.product-image { + width: 100px; + height: 100px; + object-fit: cover; + margin-right: 20px; +} + +.product-details { + display: flex; + flex-direction: column; +} + +.product-name { + margin: 0; + font-size: 16px; + font-weight: bold; +} + +.product-price { + margin: 0; + font-size: 14px; + color: #333; +} + + + + + diff --git a/src/views/system/comment/index.vue b/src/views/system/comment/index.vue index e1695f4..5de9087 100644 --- a/src/views/system/comment/index.vue +++ b/src/views/system/comment/index.vue @@ -17,6 +17,7 @@ @keyup.enter="handleQuery" /> + - - + + + + + + + + + + + + + + - + + - + + + + + + +