diff --git a/src/api/home.js b/src/api/home.js new file mode 100644 index 0000000..353bf60 --- /dev/null +++ b/src/api/home.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' + +export function getHomePage() { + return request({ + url: 'homePage', + method: 'POST' + }) +} + + + + +export function homeSetting( data ) { + return request({ + url: 'homePage/setting', + method: 'POST', + data: data + }) +} diff --git a/src/icons/svg/logo.svg b/src/icons/svg/logo.svg index 90dbc53..959437a 100644 --- a/src/icons/svg/logo.svg +++ b/src/icons/svg/logo.svg @@ -1 +1 @@ -智莺系统 \ No newline at end of file +无字小说 \ No newline at end of file diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index e91b2fc..eee026a 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -39,7 +39,7 @@ export default { }, data() { return { - title: '智莺系统', + title: '无字小说', logo: '/pic/common/logo@2x.png' } } diff --git a/src/router/index.js b/src/router/index.js index 1b7da35..33300f4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -16,6 +16,8 @@ import sortManagement from './modules/sort-management' import basicSetting from './modules/basic-setting' import setAdvertising from './modules/set-advertising' +import home from './modules/home' + @@ -88,8 +90,8 @@ export const constantRoutes = [ * the routes that need to be dynamically loaded based on user roles */ export const asyncRoutes = [ + home, basicSetting, - memberManagement, booksManagement, sortManagement, diff --git a/src/router/modules/home.js b/src/router/modules/home.js new file mode 100644 index 0000000..e21bdfc --- /dev/null +++ b/src/router/modules/home.js @@ -0,0 +1,23 @@ +/** When your routing table is too long, you can split it into small modules **/ + +import Layout from '@/layout' + +const home = { + path: '/home', + component: Layout, + redirect: '/home', + name: 'home', + meta: { + title: '首页个性化', + icon: 'el-icon-s-home' + }, + children: [ + { + path: 'home', + component: () => import('@/views/home/home'), + name: 'home', + meta: { title: '首页个性化' } + }, + ] +} +export default home diff --git a/src/settings.js b/src/settings.js index 286ec85..20db2f4 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,5 +1,5 @@ module.exports = { - title: '智莺总后台', + title: '管理后台', /** * @type {boolean} true | false diff --git a/src/styles/element-ui.scss b/src/styles/element-ui.scss index 6db028d..3efd0e2 100644 --- a/src/styles/element-ui.scss +++ b/src/styles/element-ui.scss @@ -36,4 +36,31 @@ position: absolute; top: 0; +} + + +.banner-box{ + .el-table td { + border-bottom: 0; + } + + .el-table th.is-leaf, .el-table td { + border-bottom: 0; + + } + + el-table__row > td { + border: none; + } + + .el-table::before { + height: 0px; + } +} + + +.el-tooltip__popper.is-light { + color: #3DA2FF; + border: none; + box-shadow: 0px 0px 20px rgb(211, 211, 211); } \ No newline at end of file diff --git a/src/views/home/books-dialog/books-dialog.vue b/src/views/home/books-dialog/books-dialog.vue new file mode 100644 index 0000000..3f80922 --- /dev/null +++ b/src/views/home/books-dialog/books-dialog.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/views/home/home.vue b/src/views/home/home.vue new file mode 100644 index 0000000..063cf31 --- /dev/null +++ b/src/views/home/home.vue @@ -0,0 +1,318 @@ + + + + + diff --git a/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue b/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue index 0bbace9..8fb12f6 100644 --- a/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue +++ b/src/views/member-management/components/otherSettingsDialog/otherSettingsDialog.vue @@ -36,7 +36,7 @@ --> @@ -24,10 +24,10 @@ - 提交 - - 重置 - + 提交 + 重置 @@ -35,7 +35,7 @@
- + - +
+ + + @@ -155,9 +175,11 @@ export default { diff --git a/src/views/sort-management/index.vue b/src/views/sort-management/index.vue index fe8337a..5c66758 100644 --- a/src/views/sort-management/index.vue +++ b/src/views/sort-management/index.vue @@ -73,7 +73,7 @@ /> { - this.booksData = res.data; - this.booksItem = { - data: data, - btn5Data: this.btn5Data, - }; - }); - + this.modeData = { + id : data.id, + btn5Data : this.btn5Data + } + this.booksItem = data this.isCheckDialog = true; },