hn_cloud_web/smz-web/js/work/ownPersonContract/workerContractView.js

15 lines
756 B
JavaScript

// var filePreviewPathAll ="http://140.210.209.102:1918/hnBmw"; //部署上线地址
var filePreviewPathAll ="http://192.168.0.14:19118/hnBmw"; //公司测试地址
// var filePreviewPathAll ="http://116.63.172.211:1918/hnBmw"; //线上正式环境--外网
// var filePreviewPathAll ="http://172.16.0.235:1918/hnBmw"; //线上正式环境--内网
// var dataPath ="http://101.201.61.123:19118/hnBmw"; //外围公司测试地址
var filePreviewPath;
$(function () {
var path= localStorage.getItem("path");
setView(path);
})
function setView(urlParam){
// urlParam = "gzRealName/ownContract/pdf/2024/01/19/1705657768000_noseal_.pdf";
filePreviewPath = filePreviewPathAll + "/" + urlParam;
$("#iframe").attr("src", filePreviewPath);
}