1.去掉顶部原生导航栏

"navigationStyle":"custom"    //在page.json的pages中对应页面的style添加

2.设置顶部状态栏文字颜色

"navigationBarTextStyle":"white" //默认是黑色

3.动态行内样式

:style="{height: statusBarHeight+'px'}" 

4.[easyCom]组件命名规则:components/组件名/组件名.vue,满足规则可以省略import和注册,直接使用 

 5.使用字体图标插件uni-icons,需要安装

<uni-icons type="search" size="20" color="#999"></uni-icons>

6.首页-自定义导航栏

更多推荐