diff --git a/src/api/spring/index/tips.js b/src/api/spring/index/tips.js new file mode 100644 index 0000000..051276b --- /dev/null +++ b/src/api/spring/index/tips.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +export function getList(data) { + return request({ + url: '/management/api/spring/index/tips/list', + method: 'get', + params: data, + }) +} + +export function doAdd(data) { + return request({ + url: '/management/api/spring/index/tips', + method: 'post', + data, + }) +} + +export function doEdit(id, data) { + return request({ + url: `/management/api/spring/index/tips/${id}`, + method: 'put', + data, + }) +} + +export function doDelete(data) { + return request({ + url: '/management/api/spring/index/tips/delete', + method: 'put', + data, + }) +} + +export function doMoveUp(id) { + return request({ + url: `/management/api/spring/index/tips/moveUp/${id}`, + method: 'patch', + }) +} + +export function doMoveDown(id) { + return request({ + url: `/management/api/spring/index/tips/moveDown/${id}`, + method: 'patch', + }) +} + +export function toggleEnable(id, isEnabled) { + return request({ + url: `/management/api/spring/index/tips/enable/${id}`, + method: 'patch', + data: { isEnabled }, + }) +} + +export function getItemDetail(data) { + return request({ + url: '/management/api/spring/index/tips/check', + method: 'get', + params: data, + }) +} diff --git a/src/router/index.js b/src/router/index.js index f1400e0..34b32de 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -73,6 +73,12 @@ export const asyncRoutes = [ component: () => import('@/views/spring/index/recommend/index'), meta: { title: '推介列表', icon: 'list' }, }, + { + path: 'tips', + name: 'tips', + component: () => import('@/views/spring/index/tips/index'), + meta: { title: '首页跳转', icon: 'list' }, + }, ], }, { diff --git a/src/views/spring/index/tips/components/AppManagementEdit.vue b/src/views/spring/index/tips/components/AppManagementEdit.vue new file mode 100644 index 0000000..d75c9fb --- /dev/null +++ b/src/views/spring/index/tips/components/AppManagementEdit.vue @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/spring/index/tips/index.vue b/src/views/spring/index/tips/index.vue new file mode 100644 index 0000000..52e5105 --- /dev/null +++ b/src/views/spring/index/tips/index.vue @@ -0,0 +1,205 @@ + + + + + 添加 + + + + + + + + + 查询 + + + + + + + + + + + + 新品 + 热门 + 爆款 + 精选 + -- + + + + + 页面 + tab页 + 默认 + + + + + + + + + + 编辑 + + 上移 + + + 下移 + + 删除 + + + + + + + + + + +