From 37f969c4e6df6039440946f60e09a284939abaa5 Mon Sep 17 00:00:00 2001 From: youzi <2410633923@qq.com> Date: Thu, 26 Dec 2024 11:34:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +- src/api/nav/index.js | 20 +++- src/assets/style/index.less | 5 +- src/components/arti.vue | 2 +- src/components/menu.vue | 1 + src/components/wea.vue | 2 +- src/util/theme.js | 12 +-- src/views/gallery/index.vue | 2 +- src/views/home/navMenu.vue | 138 ++++++++++++++-------------- src/views/plink/right.vue | 7 +- src/views/widget/component/gold.vue | 9 +- src/views/widget/index.vue | 6 +- tailwind.config.js | 30 +++++- 13 files changed, 150 insertions(+), 89 deletions(-) diff --git a/README.md b/README.md index bacda0f..ab94fe6 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,11 @@ ## 主要功能 ### √ 1.登录注册功能 -### √ 2.首页展示共享文章列表 +### √ 2.首页展示共享文章列表 × 首页大整改 ### √ 3.画廊页面展示共享图片 +### √ 4.文章详情页展示文章内容 +### × 5.导航功能整改,前后端 +### × 6.友链--重新开发,力求精简 ### × 4.控制台功能 --目前已完成:画廊上传共享 diff --git a/src/api/nav/index.js b/src/api/nav/index.js index 0f7108d..38aae9c 100644 --- a/src/api/nav/index.js +++ b/src/api/nav/index.js @@ -1,10 +1,11 @@ import request from '@/util/request'; // listNav -export function listNav() { +export function listNav(params = {}) { return request({ url: '/nav/menu', - method: 'get' + method: 'get', + params }); } @@ -16,6 +17,21 @@ export function addMenu(data) { }); } +// deleteMenu +export function deleteMenu(id) { + return request({ + url: '/nav/menu', + method: 'delete', + params:{ + id + } + }); +} + + + + + export function listClass(){ return request({ url: '/nav/class', diff --git a/src/assets/style/index.less b/src/assets/style/index.less index 27c102e..a134742 100644 --- a/src/assets/style/index.less +++ b/src/assets/style/index.less @@ -1,4 +1,4 @@ -@purple: #8a2be2; +@purple: #a81b2b; @orange: #ffa500; @blue: #409eff; @dp: #f2e8fc; @@ -7,6 +7,3 @@ //#BE8AEF #B172EC #A45BE9 #9744E5 #8A2BE2 #7B1DD3 #6C19B9 #5C169F @jb: linear-gradient(90deg,#BE8AEF,#409eff, #8A2BE2); -:root:root { - --van-primary-color: #8a2be2; -} \ No newline at end of file diff --git a/src/components/arti.vue b/src/components/arti.vue index 42e85b0..08d4aed 100644 --- a/src/components/arti.vue +++ b/src/components/arti.vue @@ -64,7 +64,7 @@ function onEnter(el, done) { width: 90%; margin: 0 0 20px 5%; box-shadow: @ps; - background-color: #fafbfc; + background-color: unset; } :deep(.n-card__content) { diff --git a/src/components/menu.vue b/src/components/menu.vue index 58bcbb2..ee2138f 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -145,6 +145,7 @@ function logout() { }, onNegativeClick: () => { push("/"); + location.reload(true); }, }); } diff --git a/src/components/wea.vue b/src/components/wea.vue index fb6afb9..237a520 100644 --- a/src/components/wea.vue +++ b/src/components/wea.vue @@ -1,7 +1,7 @@