diff --git a/src/api/shopCart/Info.js b/src/api/shopCart/Info.js new file mode 100644 index 0000000..be8e70c --- /dev/null +++ b/src/api/shopCart/Info.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询购物车列表 +export function listInfo(query) { + return request({ + url: '/shopCart/Info/list', + method: 'get', + params: query + }) +} + +// 查询购物车详细 +export function getInfo(id) { + return request({ + url: '/shopCart/Info/' + id, + method: 'get' + }) +} + +// 新增购物车 +export function addInfo(data) { + return request({ + url: '/shopCart/Info', + method: 'post', + data: data + }) +} + +// 修改购物车 +export function updateInfo(data) { + return request({ + url: '/shopCart/Info/'+data.id, + method: 'put', + data: data + }) +} + +// 删除购物车 +export function delInfo(id) { + return request({ + url: '/shopCart/Info/' + id, + method: 'delete' + }) +} diff --git a/src/views/shopCart/info/index.vue b/src/views/shopCart/info/index.vue new file mode 100644 index 0000000..54eafde --- /dev/null +++ b/src/views/shopCart/info/index.vue @@ -0,0 +1,331 @@ + + +