Commit 666ea62e authored by hbcui1984's avatar hbcui1984

解决图片预览模板打开首张图片需返回两次的问题

parent 8a863287
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
var item = document.createElement("div"); var item = document.createElement("div");
item.classList.add("mui-slider-item"); item.classList.add("mui-slider-item");
var a = document.createElement("a"); var a = document.createElement("a");
a.setAttribute("href","#"); // a.setAttribute("href","#");
var img = document.createElement("img"); var img = document.createElement("img");
img.setAttribute("src",value.src); img.setAttribute("src",value.src);
a.appendChild(img) a.appendChild(img)
......
...@@ -197,6 +197,8 @@ ...@@ -197,6 +197,8 @@
break; break;
} }
offCanvasWrapper.offCanvas().refresh(); offCanvasWrapper.offCanvas().refresh();
offCanvasSide.classList.remove('mui-transitioning');
offCanvasSide.setAttribute('style', '');
} }
}); });
......
...@@ -83,15 +83,14 @@ ...@@ -83,15 +83,14 @@
var contentWebview = null; var contentWebview = null;
mui.back = function() { mui.back = function() {
var current = plus.webview.currentWebview(); var current = plus.webview.currentWebview();
current.hide('auto',function () { current.hide('auto');
setTimeout(function() { setTimeout(function() {
document.getElementById("title").className = 'mui-title mui-fadeout'; document.getElementById("title").className = 'mui-title mui-fadeout';
if(contentWebview==null){ if(contentWebview==null){
contentWebview = current.children()[0]; contentWebview = current.children()[0];
} }
contentWebview.hide("none"); contentWebview.hide("none");
}, 200); }, 350);
});
} }
var titleElem = document.getElementById("title") var titleElem = document.getElementById("title")
......
...@@ -409,7 +409,6 @@ ...@@ -409,7 +409,6 @@
var isActive = event.detail.isActive; var isActive = event.detail.isActive;
locker.style.display = isActive ? 'block' : 'none'; locker.style.display = isActive ? 'block' : 'none';
if (!isActive) { if (!isActive) {
alert(0);
settings.gestures = ''; settings.gestures = '';
app.setSettings(settings); app.setSettings(settings);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment