记得上下班打卡 | git大法好,push需谨慎

Commit 19ae5497 authored by 刘喆's avatar 刘喆

Merge branch 'pre' into 'master'

Pre

See merge request !109
parents e2582dd8 8e3b1117
......@@ -3,6 +3,13 @@
<head>
<th:block th:include="include :: header('选项卡 & 面板')"/>
</head>
<style>
.img-details{
width: 30%;
height: 40%;
}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeIn">
<div class="row">
......@@ -57,7 +64,7 @@
th:object="${kylinPerformanceMisVo}">
<div>
<p>演出封面:</p>
<img name="img" th:src="*{imgPoster}">
<img class="img-details" name="img" th:src="*{imgPoster}" th:onclick="click_big([[*{imgPoster}]])">
</div>
<div>
<label>演出名称:</label>
......@@ -106,7 +113,7 @@
</div>
<div>
<p>演出批文:</p>
<img name="img" th:src="*{approvalUrl}">
<img class="img-details" name="img" th:src="*{approvalUrl}" th:onclick="click_big([[*{approvalUrl}]])">
</div>
<div class="ibox-content" id="eg">
......@@ -385,6 +392,24 @@
$("#tab-nav-1").bind("click", function () {
$("#tab_iframe_1").attr("src", prefix + "/performanceStatic/" + '[[${kylinPerformanceMisVo.performancesId}]]'.replaceAll("\"", ""));
});
// 点击图片放大
function click_big(url){
console.log(url)
var json = {
"data": [ //相册包含的图片,数组格式
{
"alt": "演出封面",
"src": url, //原图地址
}
]
};
layer.photos({
photos: json,
closeBtn: 1, //右上角按钮,可通过配置1和2来展示,如果不显示,则closeBtn: 0
anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
});
};
</script>
</body>
</html>
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