优化
This commit is contained in:
@@ -24,9 +24,18 @@
|
||||
<t-navbar class="block" title="{{navbarData.title}}" left-arrow bind:go-back="onBack" />
|
||||
</view>
|
||||
<!-- 仅显示home -->
|
||||
<view class="block" wx:if="{{navbarData.showCapsule == 3}}">
|
||||
<t-navbar class="block" title="{{navbarData.title}}" home bind:go-back="onGoHome" />
|
||||
</view>
|
||||
<t-navbar title="{{navbarData.title}}" wx:if="{{navbarData.showCapsule == 3}}">
|
||||
<view slot="left" class="custom-capsule-home">
|
||||
<t-icon
|
||||
size="20"
|
||||
bind:tap="onGoHome"
|
||||
aria-role="button"
|
||||
aria-label="首页"
|
||||
name="home"
|
||||
class="custom-capsule__icon"
|
||||
/>
|
||||
</view>
|
||||
</t-navbar>
|
||||
<!-- 都不显示 -->
|
||||
<view class="block" wx:if="{{navbarData.showCapsule == 0}}">
|
||||
<t-navbar class="block" title="{{navbarData.title}}" />
|
||||
|
||||
@@ -20,4 +20,7 @@
|
||||
width: 1px;
|
||||
height: 36rpx;
|
||||
background: #e7e7e7;
|
||||
}
|
||||
.custom-capsule-home{
|
||||
margin-left: 36rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user