迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
微信端打開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="/";
})
</body>
</html>
可以下載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>