Skip to content

Commit

Permalink
fix: 🗑️ 去除登录页面冗余的空白顶栏
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Sep 9, 2023
1 parent 3066f90 commit 25bc3bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
4 changes: 1 addition & 3 deletions pages.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export default defineUniPages({
path: 'pages/login/phone/index',
aliasPath: '/login',
style: {
navigationBarTitleText: '',
navigationBarTextStyle: 'black',
navigationBarBackgroundColor: '#ffffff',
navigationStyle: 'custom',
},
},
{
Expand Down
28 changes: 13 additions & 15 deletions src/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
"path": "pages/login/phone/index",
"aliasPath": "/login",
"style": {
"navigationBarTitleText": "",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
"navigationStyle": "custom"
}
},
{
Expand All @@ -48,6 +46,18 @@
}
],
"subPackages": [
{
"root": "pages/webview",
"pages": [
{
"path": "index",
"aliasPath": "/webview",
"style": {
"navigationBarTitleText": "webview"
}
}
]
},
{
"root": "pages/middleware",
"pages": [
Expand Down Expand Up @@ -100,18 +110,6 @@
}
}
]
},
{
"root": "pages/webview",
"pages": [
{
"path": "index",
"aliasPath": "/webview",
"style": {
"navigationBarTitleText": "webview"
}
}
]
}
],
"tabBar": {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login/phone/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<view class="bg-white h-full overflow-hidden">
<view class="bg-white h-full overflow-hidden pt-24">
<view class="mt-8">
<image src="/static/logo.png" alt="" class="w-20 h-20 block mx-auto" />
<view class="text-2xl text-center mt-4 font-bold">
Expand Down

0 comments on commit 25bc3bd

Please sign in to comment.