9***@qq.com
9***@qq.com
  • 发布:2019-06-30 14:12
  • 更新:2019-06-30 19:10
  • 阅读:2069

uni-app 修改角标文字 iPhone6无法正常运行

分类:uni-app

参考:https://ask.dcloud.net.cn/article/35374
修改 原生导航栏角标文字 的代码,在模拟器或安卓机型上可以正常运行。在iPhone6真机调试时当前页面直接卡死不动,控制台未发现错误。。。
// #ifdef APP-PLUS
var webView = this.$mp.page.$getAppWebview();
webView.setTitleNViewButtonBadge({
index: 0,
text: 33,
});
// #endif
求大佬告知解决方案

以下写法也无效:
// #ifdef APP-PLUS
var pages = getCurrentPages();
var page = pages[pages.length - 1];
var currentWebview = page.$getAppWebview();
currentWebview.setTitleNViewButtonBadge({
index: 0,
text: 38,
})
// #endif

尝试其他写法:
plus.webview.currentWebview();
iPhone6真机调试为空

2019-06-30 14:12 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

你试下hello uni-app模板里的例子,在你的iphone上是否有问题,对比下代码。
提供信息应该全面,比如编译模式、hx版本

  • 9***@qq.com (作者)

    按hello uni-app的写法 目前可以正常运行

    2019-07-01 15:26

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