YOUFANG1.0.4 消息列表图片跳转
This commit is contained in:
@@ -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 != "") {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user