1、自定义 顶部导航栏 (标题栏) app系统栏空白问题 (已解决)
//在pages.json的页面配置项的style中添加 "navigationStyle":"custom"
"style": {
"app-plus": {
"navigationStyle":"custom"} // 取消原生导航栏
}
}
<template>
<view>
<!-- 在页面添加占位view 并设置样式 -->
<!-- #ifdef APP-PLUS -->
<view class="status_bar">
<view class="top_view"></view>
</view>
<!-- #endif -->
...
</view>
</template>
<style lang="scss">
.status_bar {
height: var(--status-bar-height);
width: 100%;
background-color: #F0F0F0;
}
.top_view {
height: var(--status-bar-height);
width: 100%;
position: fixed;
background-color: #F0F0F0;
top: 0;
z-index: 999;
}
</style>
2、导入字体图标问题 app端 显示异常问题(已解决)
阿里巴巴下载的Unicode字体
将 字体编号改成”\u"开头
如 “" 改成 ”\ue625“