diff --git a/src/components/custom-navbar/index.vue b/src/components/custom-navbar/index.vue index 02e17e5..0c78380 100644 --- a/src/components/custom-navbar/index.vue +++ b/src/components/custom-navbar/index.vue @@ -30,6 +30,7 @@ + @@ -91,6 +92,18 @@ const menuButtonWidth = computed(() => navbar.menuButtonWidth.value); const menuButtonRightGap = computed(() => navbar.menuButtonRightGap.value); const menuButtonLeft = computed(() => navbar.menuButtonLeft.value); +const capsuleSpaceWidth = computed(() => { + let width = 0; + // #ifdef MP-WEIXIN + if (menuButtonWidth.value > 0) { + width = menuButtonWidth.value + menuButtonRightGap.value; + } + // #endif + return width; +}); + +const rightContentWidth = computed(() => 96); + const leftWidth = computed(() => { let width = 80; // #ifdef MP-WEIXIN @@ -102,9 +115,7 @@ const leftWidth = computed(() => { const rightWidth = computed(() => { let width = 80; // #ifdef MP-WEIXIN - if (menuButtonWidth.value > 0) { - width = menuButtonWidth.value + menuButtonRightGap.value * 2; - } + width = capsuleSpaceWidth.value + rightContentWidth.value; // #endif return width; }); @@ -209,4 +220,9 @@ export default { align-items: center; justify-content: flex-end; } + +.custom-navbar__capsule-space { + flex: 0 0 auto; + height: 1px; +} diff --git a/src/pages.json b/src/pages.json index e056a25..427acf4 100644 --- a/src/pages.json +++ b/src/pages.json @@ -44,6 +44,17 @@ "path": "pages/mine/account/index", "type": "page" }, + { + "path": "pages/mine/feedback/index", + "type": "page", + "name": "feedback", + "style": { + "navigationBarTitleText": "意见反馈" + }, + "meta": { + "requireAuth": true + } + }, { "path": "pages/mine/official/index", "type": "page", @@ -60,6 +71,14 @@ "path": "pages/mine/profile/index", "type": "page" }, + { + "path": "pages/mine/settings/index", + "type": "page", + "name": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, { "path": "pages/work/config/index", "type": "page", diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index 3c1d663..3637b4e 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -1,169 +1,167 @@ @@ -187,7 +184,8 @@ diff --git a/src/pages/mine/profile/index.vue b/src/pages/mine/profile/index.vue index 1c7b92b..f85059c 100644 --- a/src/pages/mine/profile/index.vue +++ b/src/pages/mine/profile/index.vue @@ -1,43 +1,54 @@