buli
2023-07-14 e6068da47c1bef5517c9e5fdc8c726766867ad4e
force-app/main/default/pages/AttachmentPreview.page
@@ -1,14 +1,12 @@
<apex:page action="{!init}" controller="AttachmentPreviewController" id="allPage" showheader="false" sidebar="false">
<apex:page action="{!init}" controller="AttachmentPreviewController" id="allPage" showheader="false" sidebar="false" lightningStylesheets="true">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}">
    </apex:stylesheet>
    <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}">
    </apex:includescript>
    <apex:includescript value="{!URLFOR($Resource.PleaseWaitDialog)}">
    </apex:includescript>
    <apex:includescript value="/soap/ajax/29.0/connection.js">
    </apex:includescript>
    <apex:includescript value="/soap/ajax/29.0/apex.js">
    </apex:includescript>
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <style type="text/css">
        body {
    margin: 0;
@@ -81,12 +79,12 @@
                        alert("IE浏览器不能打开后缀是bmp的文件,请使用其他浏览器!");
                   }
                   else{
                     window.location.href=' https://ocsm--stagefull--c.visualforce.com/apex/eSignFormAttachment?id='+id;
                    // window.location.href=' https://ocsm--c.ap0.visual.force.com/apex/eSignFormAttachment?id='+id;
                    // window.location.href=' https://ocsm--stagefull--c.visualforce.com/apex/eSignFormAttachment?id='+id;
                     window.location.href=' https://ocsm--c.ap0.visual.force.com/apex/eSignFormAttachment?id='+id;
                   } 
                }else{
                     window.location.href='https://ocsm--stagefull--c.documentforce.com/servlet/servlet.FileDownload?file='+id;
                    // window.location.href='https://ocsm--c.ap0.content.force.com/servlet/servlet.FileDownload?file='+id;
                    // window.location.href='https://ocsm--stagefull--c.documentforce.com/servlet/servlet.FileDownload?file='+id;
                     window.location.href='https://ocsm--c.ap0.content.force.com/servlet/servlet.FileDownload?file='+id;
                }
            }
   
@@ -96,8 +94,8 @@
        // 返回按钮根据传id返回上一级操作
        function test(){
        var queryVal=GetQueryValue('parentId');
         var url='https://ocsm--stagefull.my.salesforce.com/'+queryVal;
        // var url='https://ocsm.my.salesforce.com/'+queryVal;
        // var url='https://ocsm--stagefull.my.salesforce.com/'+queryVal;
         var url='https://ocsm.my.salesforce.com/'+queryVal;
         window.location.href=url;
    }
    // 20201224 liying end