From b899101cf93675e07b290bd040ca19fb8e88d04c Mon Sep 17 00:00:00 2001
From: "34701892@qq.com" <34701892@qq.com>
Date: Sun, 17 Aug 2025 18:49:44 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=AF=BC=E8=88=AA?=
=?UTF-8?q?=E6=A0=8F=E6=A0=B7=E5=BC=8F=E5=B9=B6=E6=B7=BB=E5=8A=A0=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E7=8A=B6=E6=80=81=E6=8C=81=E4=B9=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改Navbar箭头颜色为#333
- 在minihome页面添加tabIndex状态持久化
- 为subscribed和bookmark页面添加顶部导航占位
- 调整bookmark页面tabs样式和布局
- 简化mineMini组件代码格式
---
src/components/mineMini.vue | 66 ++++++++++------------------------
src/components/mini/Navbar.vue | 2 +-
src/pages/bookmark/index.vue | 35 ++++++++++--------
src/pages/minihome/index.vue | 7 +++-
src/pages/subscribed/index.vue | 27 +++++++++++---
5 files changed, 69 insertions(+), 68 deletions(-)
diff --git a/src/components/mineMini.vue b/src/components/mineMini.vue
index a48dfc8..0d5cdb8 100644
--- a/src/components/mineMini.vue
+++ b/src/components/mineMini.vue
@@ -3,10 +3,7 @@
-
+
{{
!isLoginStatus ? "未登录用户" : maskPhoneNumber()
@@ -35,53 +32,30 @@
-
+ }" @click="handleClick(-1)">
+ -->
+
-
-
-
+ }" @click="handleClick(1)">
-
+ }" @click="handleClick(2)">
浏览记录
@@ -106,12 +80,8 @@
-
+
diff --git a/src/components/mini/Navbar.vue b/src/components/mini/Navbar.vue
index 3dc019c..382bb36 100644
--- a/src/components/mini/Navbar.vue
+++ b/src/components/mini/Navbar.vue
@@ -2,7 +2,7 @@
-
+
{{ title }}
diff --git a/src/pages/bookmark/index.vue b/src/pages/bookmark/index.vue
index 7197557..5393eca 100644
--- a/src/pages/bookmark/index.vue
+++ b/src/pages/bookmark/index.vue
@@ -1,20 +1,25 @@
+
+
@@ -29,6 +34,8 @@ import { ref, watch, onMounted } from "vue";
import { onLoad, onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app";
import SubArticleList from "./components/articleList.vue";
import { fetchFavList, fetchLikeList, fetchTrackList } from "@/api/users";
+import { getNavHeight } from "@/utils/util"
+import Navbar from '@/components/mini/Navbar.vue'
const tableValue = ref(0);
const listData = ref([]);
@@ -146,8 +153,9 @@ onLoad((option) => {
display: flex;
align-items: center;
position: relative;
- .flashBack {
- }
+
+ .flashBack {}
+
.title {
// background-color: red;
font-size: var(--h1-font-size);
@@ -155,7 +163,7 @@ onLoad((option) => {
// font-weight: bold;
width: 100%;
display: flex;
- justify-content: center;
+ justify-content: start;
// left: 50%;
// transform: translateX(-50%);
// position: absolute;
@@ -164,7 +172,6 @@ onLoad((option) => {
}
}
- .subContent {
- }
+ .subContent {}
}
diff --git a/src/pages/minihome/index.vue b/src/pages/minihome/index.vue
index 5612e3b..c47dcc9 100644
--- a/src/pages/minihome/index.vue
+++ b/src/pages/minihome/index.vue
@@ -88,6 +88,7 @@ const tabIndex = ref(0);
function tabChange(index) {
tabIndex.value = index;
+ uni.setStorageSync('homeTabIndex', index)
switch (index) {
case 0:
@@ -111,7 +112,11 @@ onPageScroll((val) => {
})
onShow(() => {
- tabChange(0)
+ if (uni.getStorageSync('homeTabIndex') == 1) {
+ tabChange(1)
+ } else {
+ tabChange(0)
+ }
})
onMounted(async () => {
diff --git a/src/pages/subscribed/index.vue b/src/pages/subscribed/index.vue
index 2ecd623..1058c17 100644
--- a/src/pages/subscribed/index.vue
+++ b/src/pages/subscribed/index.vue
@@ -1,5 +1,11 @@
+