HBuilder X wap2app网站封装APP隐藏顶部方法

HBuilder X wap2app网站封装APP隐藏顶部方法

使用HBuilder X封装网站APP的时候,系统默认顶部代显示标题及返回导航

因为某些网站,网站本身就有相关的顶部设计,所以我们需要把HBuilder X封装默认的顶部导航去除掉

其实很简单,我们只需要把代码复制进入sitemap.json,然后把对应的网站域名修改就可以了

修改好以后,记得保存

完整代码再下面““`

[rihide]

{
"global" : {
"webviewParameter" : {
"titleNView" : false,
"statusbar" : {
"style" : "dark",
"background" : "#F7F7F7"
},
"appendCss" : "",
"appendJs" : ""
},
"easyConfig" : {
"quit" : {
"toast" : {
"showFeedback" : false
}
},
"open" : {
"animation" : {
"type" : "pop-in",
"duration" : 300
}
}
}
},
"pages" : [
{
"webviewId" : "__W2A__域名",
"matchUrls" : [
{
"href" : "https://域名/"
},
{
"href" : "https://域名/"
}
],
"webviewParameter" : {
"titleNView" : false,
"statusbar" : {
"background" : "#f7f7f7"
}
}
},
{
"webviewId" : "common",
"matchUrls" : [
{
"hostname" : "R:.",
"pathname" : "R:."
}
],
"webviewParameter" : {
"titleNView" : false,
"statusbar" : {
"style" : "dark",
"background" : "#F7F7F7"
}
},
"easyConfig" : {
"quit" : {
"toast" : {
"showFeedback" : false
}
},
"open" : {
"animation" : {
"type" : "pop-in",
"duration" : 300
}
}
}
}
]
}

[/rihide]

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享