h***@126.com
h***@126.com
  • 发布:2020-07-10 12:14
  • 更新:2020-07-10 17:20
  • 阅读:512

onNavigationBarButtonTap事件在手机调试时好使,打包发布后不触发事件,谁知道给个信号?

分类:uni-app

pages.json配置
{
"pages": [
{
"path": "pages/login/login"
// "style": {
// "navigationBarTitleText": "登录"
// }
},
{
"path": "pages/zd/zdsj",
"style": {
"navigationBarTitleText": "站点数据",
"app-plus": {
"titleNView": {
"buttons": [{
"type":"none",
"text":"\u2710",
"float":"right",
"fontSize": "22px"
}
]
}
}
}
},

页面事件
onNavigationBarButtonTap(val) {
uni.showModal({
title: 'xx',
content: 'xxx',
showCancel: true,
success: (res) => {
if (res.confirm) {
}
}
});
},

manifest.json

/ 5+App特有相关 /
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"nvueLaunchMode" : "fast",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
.....

2020-07-10 12:14 负责人:无 分享
已邀请:
h***@126.com

h***@126.com (作者) - 80it男

https://uniapp.dcloud.io/matter

h***@126.com

h***@126.com (作者) - 80it男

手机版本问题,android4.4.2没有效果!!!

f***@126.com

f***@126.com - I'm the rookie for web of Html

我在8.1测试没问题

该问题目前已经被锁定, 无法添加新回复