YOUFANG1.0.4 消息列表图片跳转

This commit is contained in:
zongzhimin
2018-05-09 13:48:39 +08:00
parent 8773daf02c
commit ade36028ac
2 changed files with 13 additions and 1 deletions
+9 -1
View File
@@ -80,9 +80,17 @@ function messageGoto(_this,operation,operationPage,mid){
// plus.webview.create(pages, pages, subpage_style);
// }
// plus.webview.show(pages);
mui.fire(plus.webview.getWebviewById('HBuilder'),'switchView',{
alert("inOperation")
alert(pages)
if(plus.webview.getWebviewById('H5693FF3D')==null){
mui.fire(plus.webview.getWebviewById('HBuilder'),'switchView',{
name:pages
});
}else{
mui.fire(plus.webview.getWebviewById('H5693FF3D'),'switchView',{
name:pages
});
}
}
if(operation==2){
if (operationPage != null && operationPage != "") {
+4
View File
@@ -216,6 +216,7 @@
// 推送消息跳转页面
window.addEventListener('switchView',function(event){
alert('switchView')
var self = plus.webview.currentWebview();
console.log(event.detail.name)
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
@@ -234,6 +235,9 @@
}else{
//否则,使用fade-in动画,且保存变量
var temp = {};
if(plus.webview.getWebviewById(targetTab)==null){
targetTab = plus.webview.create(targetTab, targetTab, subpage_style)
}
temp[targetTab] = "true";
mui.extend(aniShow,temp);
plus.webview.show(targetTab,"fade-in",300);