黄千龙
2023-02-02 cd730d0b1a775abacfba06003bb58327d5d1fb3c
force-app/main/default/pages/eSignFormQR.page
@@ -1,9 +1,7 @@
<apex:page standardController="eSignForm__c">
<apex:page standardController="eSignForm__c" lightningStylesheets="true">
    <apex:includeScript value="{!URLFOR($Resource.qrcode)}"/>
<!--     <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> -->
    <apex:includeScript value="/soap/ajax/45.0/connection.js"/>
    <apex:includeScript value="/soap/ajax/45.0/apex.js"/>
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
     <apex:form >
        <apex:pageBlock title="二维码" mode="edit">
            <apex:pageBlockSection showHeader="false" columns="2">
@@ -27,10 +25,8 @@
    //正式环境
    //var url = "https://ocm.force.com/eSignSystem/s/EsignDataEntry?";
    //测试环境
    var url = "https://stagefull-ocm.cs117.force.com/eSignSystem/s/EsignDataEntry?";
    var url = "https://ocsm--stagefull.sandbox.my.site.com/eSignSystem/s/EsignDataEntry?";
    if( profileID == '00e10000000dE0KAAU' || profileID == '00e10000000Y3o5AAC'){
        var DNName = '{!eSignForm__c.DNNameNo0__c}';
        var encode = window.btoa(DNName);
        var qrcode = new QRCode(document.getElementById("qrcode1"), {
@@ -53,6 +49,5 @@
            colorLight : "#ffffff",
            correctLevel : QRCode.CorrectLevel.H
        });
    }
    </script>
</apex:page>