ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 解決中 / 官方已回 微信端打開pc端鏈接,被強制跳轉到首頁 4 0
迅睿CMS版本:4.5.6 懸賞:5元 #強制跳轉

微信端打開pc端網址的時候,會強制跳轉到手機站首頁而不是訪問對應頁面;手機瀏覽器訪問是正常的。

解決方案
  • 可以下載cms程序,部署一套新的域名測試,看看有沒有這種想象

    --

    不部署的話,檢查下有沒有自己寫過跳轉代碼

  • 回復@迅睿框架聯合創始人 pc端模板有寫跳轉代碼如下:

    <script type="application/javascript">

    if (dr_is_mobile()) {

    // 移動端鏈接地址

    document.location.href = '{str_replace(SITE_URL, SITE_MURL, $my_web_url)}';

    }

    </script>

    鄉野村夫
  • 用微信開發者工具調試一下看看

  • 可加入提示用戶微信內用瀏覽器打開代碼

    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>請在微信外打開此鏈接</title>

    </head>

    <style type="text/css">

    *{

    margin:0;

    padding:0;

    }

    a{

    text-decoration: none;

    }

    img{

    max-width: 100%;

    height: auto;

    }

    .weixin-tip{

    display: none;

    position: fixed;

    left:0;

    top:0;

    bottom:0;

    background: rgba(0,0,0,0.8);

    filter:alpha(opacity=80);

    height: 100%;

    width: 100%;

    z-index: 100;

    }

    .weixin-tip p{

    text-align: center;

    margin-top: 10%;

    padding:0 5%;

    }

    </style>

    <body>

    <div>

    <p>

    <img src="https://s1.ax1x.com/2020/07/09/UmomPf.png" alt="微信打開"/>

    </p>

    </div>

    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>

    <script type="text/javascript">

    $(window).on("load",function(){

    var winHeight = $(window).height();

    function is_weixin() {

    var ua = navigator.userAgent.toLowerCase();

    if (ua.match(/MicroMessenger/i) == "micromessenger") {

    return true;

    } else {

    return false;

    }

    }

    var isWeixin = is_weixin();

    if(isWeixin){

    $(".weixin-tip").css("height",winHeight);

    $(".weixin-tip").show();

    }else{

    window.location.href="/";

    }

    })

    </script>

    </body>

    </html>