diff --git a/public/favicon.ico b/public/favicon.ico index e263760..813ad4e 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/api/rotation.js b/src/api/rotation.js new file mode 100644 index 0000000..0ec0d41 --- /dev/null +++ b/src/api/rotation.js @@ -0,0 +1,33 @@ +import request from '@/utils/request'; + +// 分页查询所有轮播列表 +export function getRotationList(params) { + return request({ + url: '/show/list', + params + }); +} +// 添加轮播 +export function addRotation(data) { + return request({ + url: '/show/create', + method:'post', + data + }); +} +// 删除轮播 +export function deleteRotation(params) { + return request({ + url: '/show/delete', + method:'post', + params + }); +} +// 修改轮播 +export function updateRotation(data) { + return request({ + url: '/show/update', + method:'post', + data + }); +} diff --git a/src/assets/logo/logo.png b/src/assets/logo/logo.png index e263760..813ad4e 100644 Binary files a/src/assets/logo/logo.png and b/src/assets/logo/logo.png differ diff --git a/src/router/dynamicRoutes.js b/src/router/dynamicRoutes.js index e4d4fba..0e82cfb 100644 --- a/src/router/dynamicRoutes.js +++ b/src/router/dynamicRoutes.js @@ -12,6 +12,7 @@ import accountManagement from './modules/accountManagement'; import customerService from './modules/customerService'; import feedback from './modules/feedback'; import settings from './modules/settings'; +import rotation from './modules/rotation'; export const DynamicRoutes = [ // 政策管理 @@ -28,6 +29,8 @@ export const DynamicRoutes = [ customerService, // 意见反馈 feedback, + // 轮播管理 + rotation, // 系统设置 settings ]; diff --git a/src/router/modules/rotation.js b/src/router/modules/rotation.js new file mode 100644 index 0000000..eaeee0d --- /dev/null +++ b/src/router/modules/rotation.js @@ -0,0 +1,17 @@ +import Layout from '@/layout'; +// 轮播管理 +const nestedRouter = { + path: '', + component: Layout, + redirect: 'index', + children: [ + { + path: 'rotation', + component: resolve => require(['@/views/rotation/index'], resolve), + name: 'rotation', + meta: { title: '轮播管理', icon: 'row' } + } + ] +}; + +export default nestedRouter; diff --git a/src/views/account/index.vue b/src/views/account/index.vue index 4618291..98b9a5b 100644 --- a/src/views/account/index.vue +++ b/src/views/account/index.vue @@ -4,11 +4,6 @@
筛选搜索 -
- - 查询 - -
+ + + 查询 + +
diff --git a/src/views/customer/index.vue b/src/views/customer/index.vue index 8c23d2f..1e8c0b9 100644 --- a/src/views/customer/index.vue +++ b/src/views/customer/index.vue @@ -4,11 +4,6 @@
筛选搜索 -
- - 查询 - -
+ + + 查询 + +
@@ -42,11 +42,11 @@ type="index" > -