diff --git a/src/App.vue b/src/App.vue index 26d6acb..a2cd46a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,54 +1,53 @@ diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/main.js b/src/main.js index aa1fc63..2807e84 100644 --- a/src/main.js +++ b/src/main.js @@ -6,17 +6,17 @@ import ElementUI from 'element-ui' import './assets/element-variables.scss' import core from '../src/utils/core' import { - post, - get, - del, - put + post, + get, + del, + put } from './utils/http'; import api from './utils/api'; -import './util/rem' +import '@/styles/index.scss' Vue.use(ElementUI); -Vue.prototype.core=core +Vue.prototype.core = core Vue.prototype.api = api; Vue.prototype.$get = get; Vue.prototype.$post = post; @@ -26,15 +26,15 @@ Vue.prototype.$put = put; Vue.config.productionTip = false router.beforeEach((to, from, next) => { - if (to.meta.title) { - document.title = to.meta.title - } - next() + if (to.meta.title) { + document.title = to.meta.title + } + next() }) new Vue({ - router, - store, - render: h => h(App) + router, + store, + render: h => h(App) }).$mount('#app') \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss new file mode 100644 index 0000000..e190702 --- /dev/null +++ b/src/styles/index.scss @@ -0,0 +1,41 @@ +.pagination { + margin: 20px 0; + text-align: right; + + button, + .number { + color: rgba(0, 0, 0, 0.65) !important; + background-color: transparent !important; + border: 1px solid rgba(0, 0, 0, 0.15) !important; + border-radius: 4px !important; + } + + button i { + color: #333; + } + + .active { + color: #fff !important; + background-color: #9278ff !important; + } +} + +.p-title { + padding-left: 5px; + margin: 0 0 24px; + line-height: 1; + font-size: 14px; + color: #585858; + border-left: 3px solid #9278ff; +} + +::-webkit-scrollbar { + width: 12px; + height: 8px; +} + +::-webkit-scrollbar-thumb { + width: 5px; + border-radius: 6px; + background: #d7d7d7; +} \ No newline at end of file diff --git a/src/util/local.js b/src/util/local.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/util/rem.js b/src/util/rem.js deleted file mode 100644 index 7148e7b..0000000 --- a/src/util/rem.js +++ /dev/null @@ -1,16 +0,0 @@ -// rem等比适配配置文件 -// 基准大小 -const baseSize = 16 -// 设置 rem 函数 -function setRem () { - // 当前页面宽度相对于 1920宽的缩放比例,可根据自己需要修改。 - const scale = document.documentElement.clientWidth / 1920 - // 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整) - document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px' -} -// 初始化 -setRem() -// 改变窗口大小时重新设置 rem -window.onresize = function () { - setRem() -} diff --git a/src/views/Home.vue b/src/views/Home.vue index 8db9f41..4dc7136 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,82 +1,59 @@