fix(miniprogram): 限定微信登录标题仅显示在登录页
This commit is contained in:
@@ -569,7 +569,6 @@ export default function Bind() {
|
||||
if (loading) {
|
||||
return (
|
||||
<View className='bind-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='loading'>
|
||||
<Text>加载中...</Text>
|
||||
</View>
|
||||
@@ -580,7 +579,6 @@ export default function Bind() {
|
||||
|
||||
return (
|
||||
<View className='bind-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='bind-header'>
|
||||
<View className='back-btn' onClick={handleBack}>
|
||||
<Image className='back-icon' src={require('../../assets/tab-icons/arrow-left.png')} mode='aspectFit' />
|
||||
|
||||
@@ -748,7 +748,6 @@ export default function ChatDetail() {
|
||||
|
||||
return (
|
||||
<View className='chat-detail-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='chat-header'>
|
||||
<View className='back-btn' onClick={handleBack}>
|
||||
<Image src={require('../../../assets/tab-icons/arrow-left.png')} className='back-arrow-img' />
|
||||
|
||||
@@ -75,7 +75,6 @@ export default function Chat() {
|
||||
|
||||
return (
|
||||
<View className='chat-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>玩伴</Text>
|
||||
</View>
|
||||
|
||||
@@ -6,37 +6,6 @@
|
||||
padding-bottom: calc(160px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
// Keep the artwork reference's title band in the page flow when custom
|
||||
// navigation is enabled. The page-local rule ensures it wins over the
|
||||
// generated page stylesheet order in the mini-program runtime.
|
||||
.bb-design-nav-title {
|
||||
position: fixed;
|
||||
top: 88px;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 84px;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid rgba(237, 237, 237, 0.95);
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
color: #222;
|
||||
font-size: 26px;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bb-design-nav-title text {
|
||||
display: block;
|
||||
color: #222 !important;
|
||||
font-size: 26px !important;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
padding: 80px 32px 24px;
|
||||
|
||||
|
||||
@@ -272,7 +272,6 @@ export default function Device() {
|
||||
if (isLoading) {
|
||||
return (
|
||||
<View className='device-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='loading'>
|
||||
<Text>加载中...</Text>
|
||||
</View>
|
||||
@@ -284,7 +283,6 @@ export default function Device() {
|
||||
if (isGuest) {
|
||||
return (
|
||||
<View className='device-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='guest-hero'>
|
||||
<View className='guest-device-icon'>
|
||||
<Image className='guest-mascot' src={require('../../assets/ui/dog-happy.png')} mode='aspectFit' />
|
||||
@@ -337,7 +335,6 @@ export default function Device() {
|
||||
const hasPendingDevice = Boolean(pendingBinding?.device_id)
|
||||
return (
|
||||
<View className='device-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>设备首页</Text>
|
||||
</View>
|
||||
@@ -366,7 +363,6 @@ export default function Device() {
|
||||
const hasPendingDevice = Boolean(pendingBinding?.device_id)
|
||||
return (
|
||||
<View className='device-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>{child.child_name} 的伴伴</Text>
|
||||
</View>
|
||||
@@ -426,7 +422,6 @@ export default function Device() {
|
||||
|
||||
return (
|
||||
<View className='device-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header bound-device-header'>
|
||||
<Text className='page-title'>{pageTitle}</Text>
|
||||
</View>
|
||||
|
||||
@@ -75,7 +75,6 @@ export default function FamilyInvite() {
|
||||
|
||||
return (
|
||||
<View className='family-invite-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<Image className='invite-mascot' src={require('../../assets/ui/dog-running.png')} mode='aspectFit' />
|
||||
<View className='invite-panel'>
|
||||
<Text className='invite-title'>家庭共享邀请</Text>
|
||||
|
||||
@@ -377,7 +377,6 @@ export default function Location() {
|
||||
|
||||
return (
|
||||
<View className='location-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>设备定位</Text>
|
||||
</View>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '微信登录',
|
||||
})
|
||||
@@ -50,7 +50,6 @@ export default function NotificationEntry() {
|
||||
|
||||
return (
|
||||
<View className='notification-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<Image className='notification-mascot' src={require('../../assets/ui/dog-question.png')} mode='aspectFit' />
|
||||
<View className='notification-panel'>
|
||||
<Text className='notification-title'>伴伴</Text>
|
||||
|
||||
@@ -108,7 +108,6 @@ export default function SleepSchedule() {
|
||||
if (isLoading) {
|
||||
return (
|
||||
<View className='sleep-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='loading'>
|
||||
<Text>加载中...</Text>
|
||||
</View>
|
||||
@@ -120,7 +119,6 @@ export default function SleepSchedule() {
|
||||
if (!child) {
|
||||
return (
|
||||
<View className='sleep-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>定时休眠</Text>
|
||||
<Text className='page-subtitle'>先绑定设备并选择宝贝,再为对应设备设置休眠时间</Text>
|
||||
@@ -137,7 +135,6 @@ export default function SleepSchedule() {
|
||||
if (!binding) {
|
||||
return (
|
||||
<View className='sleep-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>定时休眠</Text>
|
||||
<Text className='page-subtitle'>{child.child_name} 还没有绑定设备</Text>
|
||||
@@ -160,7 +157,6 @@ export default function SleepSchedule() {
|
||||
|
||||
return (
|
||||
<View className='sleep-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>定时休眠</Text>
|
||||
<Text className='page-subtitle'>每天在设定时段内,设备将进入不可启动状态</Text>
|
||||
|
||||
@@ -962,7 +962,6 @@ export default function Sleep() {
|
||||
if (loading) {
|
||||
return (
|
||||
<View className='manage-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='loading'>
|
||||
<Text>加载中...</Text>
|
||||
</View>
|
||||
@@ -974,7 +973,6 @@ export default function Sleep() {
|
||||
if (isGuest) {
|
||||
return (
|
||||
<View className='manage-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>设置与管理</Text>
|
||||
</View>
|
||||
@@ -1161,7 +1159,6 @@ export default function Sleep() {
|
||||
|
||||
return (
|
||||
<View className='manage-page'>
|
||||
<View className='bb-design-nav-title'><Text>微信登录</Text></View>
|
||||
<View className='page-header'>
|
||||
<Text className='page-title'>设置与管理</Text>
|
||||
</View>
|
||||
|
||||
@@ -500,34 +500,6 @@ textarea {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bb-design-nav-title {
|
||||
position: fixed;
|
||||
top: 88px;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 84px;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid rgba(237, 237, 237, 0.95);
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
color: #222;
|
||||
font-size: 26px;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bb-design-nav-title text {
|
||||
display: block;
|
||||
color: #222 !important;
|
||||
font-size: 26px !important;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.device-page > .bound-device-header {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user