hn_cloud_web/smz-web/js/work/person/certificateManage/certificatePhoto.js

21 lines
504 B
JavaScript
Raw Normal View History

2025-11-27 16:55:35 +08:00
var url=localStorage.getItem("url");
$(function(){
printPhoto();
});
function printPhoto(){
2025-12-09 18:44:29 +08:00
var filePreviewPath = smz_ht_url + "/";
2025-11-27 16:55:35 +08:00
// var filePreviewPath = "http://192.168.0.204:1918/gzrbmw/";
var html="";
let path;
if (url.indexOf("http") != -1) {
path = url;
} else {
path = filePreviewPath + url;
}
// for(var i=0;i<list.length;i++){
html+='<img data-original="'+path+'" src="' + path + '" />';
// }
$("#photoDiv").append(html);
}