更新:增加“课程首页”功能
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
<view class="navbar">
|
||||
<view class="statusBar" :style="{height:getStatusBarHeight()+'px'}"></view>
|
||||
<view class="titleBar" :style="{height:getTitleBarHeight()+'px'}">
|
||||
<wd-navbar :title="title" :left-arrow="leftArrow" @click="handleClickLeft">
|
||||
<wd-navbar v-if="title" :title="title" :left-arrow="leftArrow" @click="handleClickLeft"></wd-navbar>
|
||||
<wd-navbar v-else :left-arrow="leftArrow" @click="handleClickLeft">
|
||||
<template #title>
|
||||
<slot name="title"></slot>
|
||||
</template>
|
||||
@@ -38,7 +39,14 @@ const handleClickLeft = () => {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background: var(--wot-navbar-background);
|
||||
z-index: 9;
|
||||
|
||||
.statusBar{
|
||||
background: var(--wot-navbar-background);
|
||||
}
|
||||
|
||||
.titleBar{
|
||||
background: var(--wot-navbar-background);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user