8***@qq.com
8***@qq.com
  • 发布:2020-04-09 23:56
  • 更新:2020-04-09 23:56
  • 阅读:539

【报Bug】mui的createNew:false无效果

分类:MUI

详细问题描述

现在有三个页面:【个人资料页面】、【个人视频发布页面】、【视频播放页面】;

【个人资料页面】通过mui.fire传值可以跳转到【个人视频发布页面】,
【个人视频发布页面】通过mui.fire传值跳转【视频播放页面】;
【视频播放页面】又可以mui.fire跳转【个人资料页面】;

如此,循环一遍后,就会多出重复的相同id的页面;

尝试

遍历页面删除——会导致页面间无法跳转;
使用mui.preload预加载——和此问题一样,无改善;
跳转之后,关闭当前页面——无效果,会出现无法打开页面问题;
用getWebviewById查看是否已创建——无效果,写和不写没区别;
写上createNew:false——无效果,写和不写没区别;

主要代码:

【个人资料页面】personal.html:

mui("#ta_release")[0].addEventListener("tap",function(){  
                    var page_pr = plus.webview.create("personal-release.html","html/personal-release.html");  
                    mui.fire(page_pr,"personal-release",{username:mui("#personal_username")[0].innerText});  
                    mui.openWindow({id:"html/personal-release.html"});  
                })

【个人视频发布页面】personal-release.html:

mui("#release_ul").on('tap','li',function(e){  
                    var page_modal = plus.webview.create("modal.html","html/modal.html");  
                    mui.fire(page_modal,"modal",{  
                        video_id : this.getAttribute("id")  
                    });  
                    mui.openWindow({id:"html/modal.html"});  
                });

【视频播放页面】modal.html:

document.getElementById("author").addEventListener("tap",function(event){  
                    video.pause();  
                    var page_personal = plus.webview.create("personal.html","html/personal.html")  
                    mui.fire(page_personal,"personal",{  
                        username : video_datas.username  
                    });  
                    mui.openWindow({id:"html/personal.html"});  
                })

联系方式

[QQ]849772651

2020-04-09 23:56 负责人:无 分享
已邀请:

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