提交 6015c53b 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

feat(setNavigationBarColor): 不同平台跳转对应自定义导航栏示例

上级 d1848671
...@@ -7,12 +7,16 @@ ...@@ -7,12 +7,16 @@
<button @tap="setNavigationBarColor2" class="uni-btn"> <button @tap="setNavigationBarColor2" class="uni-btn">
设置导航条背景红色,标题黑色 设置导航条背景红色,标题黑色
</button> </button>
<!-- #ifdef WEB -->
<button @tap="goNavbarLite" class="uni-btn"> <button @tap="goNavbarLite" class="uni-btn">
跳转自定义导航栏页面 跳转自定义导航栏页面
</button> </button>
<!-- #endif -->
<!-- #ifdef APP -->
<button @tap="goCustomNavigation" class="uni-btn"> <button @tap="goCustomNavigation" class="uni-btn">
跳转设置状态栏页面 跳转设置状态栏页面
</button> </button>
<!-- #endif -->
</view> </view>
</template> </template>
...@@ -70,7 +74,7 @@ ...@@ -70,7 +74,7 @@
url: '/pages/template/navbar-lite/navbar-lite' url: '/pages/template/navbar-lite/navbar-lite'
}) })
}, },
goCustomNavigation(){ goCustomNavigation() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation' url: '/pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation'
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册