diff --git a/litemall-admin/src/api/feedback.js b/litemall-admin/src/api/feedback.js new file mode 100644 index 00000000..b5089e69 --- /dev/null +++ b/litemall-admin/src/api/feedback.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +export function listFeedback(query) { + return request({ + url: '/feedback/list', + method: 'get', + params: query + }) +} + +export function createFeedback(data) { + return request({ + url: '/feedback/create', + method: 'post', + data + }) +} + +export function readFeedback(data) { + return request({ + url: '/feedback/read', + method: 'get', + data + }) +} + +export function updateFeedback(data) { + return request({ + url: '/feedback/update', + method: 'post', + data + }) +} + +export function deleteFeedback(data) { + return request({ + url: '/feedback/delete', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/litemall-admin/src/router/index.js b/litemall-admin/src/router/index.js index 2cb3f56e..8447285c 100644 --- a/litemall-admin/src/router/index.js +++ b/litemall-admin/src/router/index.js @@ -65,7 +65,8 @@ export const asyncRouterMap = [ { path: 'address', component: _import('user/address'), name: 'address', meta: { title: '收货地址', noCache: true }}, { path: 'collect', component: _import('user/collect'), name: 'collect', meta: { title: '会员收藏', noCache: true }}, { path: 'footprint', component: _import('user/footprint'), name: 'footprint', meta: { title: '会员足迹', noCache: true }}, - { path: 'history', component: _import('user/history'), name: 'history', meta: { title: '搜索历史', noCache: true }} + { path: 'history', component: _import('user/history'), name: 'history', meta: { title: '搜索历史', noCache: true }}, + { path: 'feedback', component: _import('user/feedback'), name: 'feedback', meta: { title: '意见反馈', noCache: true }} ] }, diff --git a/litemall-admin/src/views/user/feedback.vue b/litemall-admin/src/views/user/feedback.vue new file mode 100644 index 00000000..a4313291 --- /dev/null +++ b/litemall-admin/src/views/user/feedback.vue @@ -0,0 +1,289 @@ + + + + +