csdnyangdiao 2020-12-22 11:31 采纳率: 0%
浏览 132

PC端url可以打开系统,手机端微信、钉钉打开显示代码!

 **业务需求**:在手机微信或钉钉收到提醒,类似于公众号收到一条消息,点击消息url,跳转我们开发的系统。
 

**问题描述**:我把系统用https发布到外网,PC端使用一切正常。跳转单点登陆正常。

但是在手机端微信或者手机端钉钉收到消息,一点击url,就显示代码。

${web.startHtmlHeader(data.htmlTitle)}
${web.linkCSS("/unifier_js/bluedoor/login_c.css")}
${web.addJS("/unifier_js/bluedoor/login_c.js")}
${web.addJS("/studio/js/jquery-sha256.min.js")}
<script type="text/javascript">
P.no_popup = true;
P.isForm2 = true;
// framebusting
if(self != top){ top.location = self.location; }
if (window.opener)
    window.opener = null;

var shortcut = ${data.shortcut.toString()};

jQuery.extend(P, ${data.P.toString()});
</script>
${web.endHtmlHeader()}
<body class="iframe-body background-info-tech"><div class="login-page">
    <div class="branding">
        <img src="${web.contextRoot}/unifier_js/bluedoor/images/oracle_primavera.png" alt="Oracle Primavera" aria-label="Oracle Primavera" class="full-logo">
        <div class="app-family-logo app-name">${data.unifierLabel}</div>
        <div class="app-logo">
            <div class="generic-cloud-logo"></div>
        </div>
    </div>
    <div id="login_frm" role="main" heap-ignore="true">
        <form class="login-form" id="unamePword" name="unamePword" method="POST" action="${data.P.loginForWeblogic?'j_security_check':'#'}" autocomplete="off" > <!--novalidate="novalidate"-->
            <input type="hidden" name="mode" value="${data.jsEMode}">
            <input type="hidden" name="redirect" value="${data.redirect}">
            <input type="hidden" name="loginFor" value="">
            <input type="hidden" name="form2" value="true">
            <% if (data.mode == "pub") { %>    
                <input type="hidden" name="registry" value="${data.vendor_registry}">
                <input type="hidden" name="vendor_url" value="${data.P.vendor_url}">
                <input type="hidden" name="skire_user_id" value="${data.skire_user_id}">
            <% } %>
            <% if (data.mode == "viewbp") { %>  
                <input type="hidden" name="companyregistry" value="${data.registry}">
            <% } %>
            <div class="control-group required">
                <label class="control-label" for="username" id="pgbu-label-2" title="${data.usernameLabel}">${data.usernameLabel}</label>
                <div class="controls">
                    <input class="username" aria-required="true" required="required" autocomplete="off" aria-label="${data.usernameLabel}" id="username" name="${data.P.loginForWeblogic?'j_username':'username'}" type="text" autofocus="autofocus" autocomplete="off" tabindex="0" placeholder="${data.usernameLabel}" aria-labelledby="pgbu-label-2">
                </div>
            </div>
            <div class="control-group required">
                <label class="control-label" for="password" id="pgbu-label-4" title="${data.passwordLabel}">${data.passwordLabel}</label>
                <div class="controls">
                    <input class="password" aria-required="true" required="required" autocomplete="off" id="password" name="${data.P.loginForWeblogic?'j_password':'password'}" placeholder="${data.passwordLabel}" aria-label="${data.passwordLabel}" aria-labelledby="pgbu-label-4" type="password" tabindex="0" maxlength="60" autocomplete="off">                    
                </div>
            </div>
            <% if (data.P.loginrole != "0") { %>  
                <input type="hidden" name="loginrole" value="${data.P.heLoginrole}">
                <% if (data.P.loginrole != "250") { %> 
                    <div class="control-group required">
                        <label class="control-label" for="security" id="pgbu-label-6" title="${data.secCodeLabel}">${data.secCodeLabel}</label>
                        <div class="controls">
                            <input class="password" aria-required="true" required="required" autocomplete="off" id="security" name="security" placeholder="${data.secCodeLabel}" aria-label="${data.secCodeLabel}" aria-labelledby="pgbu-label-6" type="password" tabindex="0" maxlength="60" autocomplete="off">
                        </div>
                    </div>
                <% } %>
            <% } %>
            <div class="btn-toolbar" role="toolbar">
                <button type="submit" id="lsubmit" class="submit btn btn-huge" tabindex="0" disabled>${data.signInLabel}</button>
                <% if ((data.mode != "pub") && !data.P.loginForWeblogic && !data.P.ssoProvider && (data.P.ldap != "ldap")) { %>   
                    <a class="toolbar-item" id="forgotpassword" href="javascript:void(0)" onclick="forgetPassword();" tabindex="0" aria-label="${data.forgotPwdLabel}">${data.forgotPwdLabel}</a>
                <% } %>              
            </div>
            <div class="help-block-container">
                <span class="help-block error-message errMsgClass hidden" aria-live="assertive" aria-atomic="true" aria-relevant="text" role="alert"></span>
            </div>
        </form>

        <form class="login-form form-animation hidden form-with-title" id="forgot" name="forgot" method="POST" action="#" autocomplete="off" > <!--novalidate="novalidate"-->
            <label class="form-label" id="forgotPwdFromLabel" title="${data.resetPwdLabel}">${data.resetPwdLabel}</label>
            <div class="control-group required forget-pwd-input">
                <label class="control-label" for="fusername" id="pgbu-label-8" title="${data.usernameLabel}">${data.usernameLabel}</label>
                <div class="controls">
                    <input class="username" aria-required="true" required="required" autocomplete="off" aria-label="${data.usernameLabel}" id="fusername" name="username" type="text" autofocus="autofocus" autocomplete="off" tabindex="0" placeholder="${data.usernameLabel}" aria-labelledby="pgbu-label-8">
                </div>
            </div>
            <div class="control-group required forget-pwd-input">
                <label class="control-label" for="password" id="pgbu-label-10" title="${data.emailLabel}">${data.emailLabel}</label>
                <div class="controls">
                    <input aria-required="true" required="required" autocomplete="off" id="femail" name="email" placeholder="${data.emailLabel}" aria-label="${data.emailLabel}" aria-labelledby="pgbu-label-10" type="text" tabindex="0" maxlength="60" autocomplete="off">
                </div>
            </div>
            <div id="question_row" class="control-group required hidden">
                <div class="controls">
                    <input aria-required="true" required="required" autocomplete="off" id="fquestion" name="question" type="hidden">
                    <span aria-label="question" class="label-text" id="fquestionVal"></span>
                </div>
            </div>
            <div id="answer_row" class="control-group required hidden">
                <label class="control-label" for="username" id="pgbu-label-14" title="${data.answerLabel}">${data.answerLabel}</label>
                    <div class="controls">
                        <input aria-required="true" required="required" autocomplete="off" aria-label="${data.answerLabel}" id="fanswer" name="answer" type="text" autofocus="autofocus" autocomplete="off" tabindex="0" placeholder="${data.answerLabel}" aria-labelledby="pgbu-label-14">
                    </div>
            </div>        
            <div class="btn-toolbar" role="toolbar">
                <button type="submit" id="fsubmit" class="submit btn btn-huge" tabindex="0">${data.continueLabel}</button>
                <a id="fcancel" href="javascript:void(0)" class="toolbar-item" tabindex="0">${data.backToLoginLabel}</a><           
            </div>                     
            <div class="help-block-container">
                <span class="help-block error-message errMsgClass hidden" aria-live="assertive" aria-atomic="true" aria-relevant="text" role="alert"></span>
            </div>
        </form>

        <form class="login-form form-animation hidden form-with-title" id="pwsent" name="pwsent" method="POST" action="#" autocomplete="off" > <!--novalidate="novalidate"-->
            <label class="form-label" title="${data.resetPwdLabel}">${data.resetPwdLabel}</label>        
            <div class="control-group" style="margin: 80px 0px 60px;">
                <div class="controls">
                    <span aria-label="question" class="label-text">${data.pwdEmailSent}</span>
                </div>
            </div>    
            <div class="btn-toolbar" role="toolbar">
                <button type="submit" id="fsignin" class="submit btn btn-huge" tabindex="0">${data.signInLabel}</button>            
            </div>
        </form>

        <form class="login-form form-animation hidden form-with-title" id="changePwd" name="changePwd" method="POST" action="#" autocomplete="off" > <!--novalidate="novalidate"-->
            <label class="form-label" title="${data.changePwdLabel}">${data.changePwdLabel}</label>
            <div class="control-group required">
                <label class="control-label" for="cpOldPwd" id="pgbu-label-16" title="${data.oldPwdLabel}">${data.oldPwdLabel}</label>
                <div class="controls">
                    <input class="password" aria-required="true" required="required" autocomplete="off" id="cpOldPwd" name="oldpassword" placeholder="${data.oldPwdLabel}" aria-label="${data.oldPwdLabel}" aria-labelledby="pgbu-label-16" type="password" tabindex="0" maxlength="60" autocomplete="off">
                </div>
            </div>
            <div class="control-group required">
                <label class="control-label" for="cpPwd" id="pgbu-label-18" title="${data.newPwdLabel}">${data.newPwdLabel}</label>
                <div class="controls">
                    <input class="password" aria-required="true" required="required" autocomplete="off" id="cpPwd" name="password" placeholder="${data.newPwdLabel}" aria-label="${data.newPwdLabel}" aria-labelledby="pgbu-label-18" type="password" tabindex="0" maxlength="60" autocomplete="off">
                </div>
            </div>
            <div class="control-group required">
                <label class="control-label" for="cpCfmPwd" id="pgbu-label-20" title="${data.confirmPwdLabel}">${data.confirmPwdLabel}</label>
                <div class="controls">
                    <input class="password" aria-required="true" required="required" autocomplete="off" id="cpCfmPwd" name="cfmpassword" placeholder="${data.confirmPwdLabel}" aria-label="${data.confirmPwdLabel}" aria-labelledby="pgbu-label-20" type="password" tabindex="0" maxlength="60" autocomplete="off">
                </div>
            </div>
            <div class="btn-toolbar" role="toolbar">
                <button type="submit" class="submit btn btn-huge" tabindex="0" onclick="return cpSubmitForm();">${data.submitLabel}</button>
                <a href="javascript:openPolicyView();" class="toolbar-item" tabindex="0">${data.viewPwdPolicyLabel}</a>            
            </div>                 
            <div style="padding-top: 5px;"><a style="font-size: 16px;" href="javascript:void(0)" class="toolbar-item" tabindex="0" onclick="cancelChangePwd();">${data.backToLoginLabel}</a></div>        
            <div class="help-block-container">
                <span class="help-block error-message errMsgClass hidden" aria-live="assertive" aria-atomic="true" aria-relevant="text" role="alert"></span>
            </div>
        </form>
    </div>

    </div><footer>
        <div class="copyright">
            <div>${data.copyright}</div>
        </div>
        <div class="release">${data.versionStr}</div>
    </footer>
</body>

 

  • 写回答

5条回答 默认 最新

  • 爱分享的Martin、 2020-12-22 14:04
    关注

    开发者里调手机模式,是好的么

    评论

报告相同问题?

悬赏问题

  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题