|
|
@@ -65,7 +65,7 @@ define(['jquery', "template", "Tools"], function ($, template, Tools) { |
|
|
|
if (content.openPic){ |
|
|
|
let arr = content.openPic.split(','); |
|
|
|
for (let i = 0;i < arr.length; i++){ |
|
|
|
$('#jueyiPic')[0].innerHTML += '<img src="/api'+arr[i]+'" style="width: 200px;height: 150px;margin-right: 10px;">'; |
|
|
|
$('#jueyiPic')[0].innerHTML += '<img onclick="openDialog(\'/api'+arr[i]+'\')" src="/api'+arr[i]+'" style="width: 200px;height: 150px;margin-right: 10px;">'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -83,6 +83,16 @@ define(['jquery', "template", "Tools"], function ($, template, Tools) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
openDialog = function (src){ |
|
|
|
$("#dialogOp").css('display','block'); |
|
|
|
$('#dialogImg').attr('src', src); |
|
|
|
} |
|
|
|
|
|
|
|
closeDia = function (){ |
|
|
|
$("#dialogOp").css('display','none'); |
|
|
|
$('#dialogImg').attr('src', ''); |
|
|
|
} |
|
|
|
|
|
|
|
module.newsList = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
var content = data.rows; |
|
|
|