迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
微信端打開pc端網(wǎng)址的時候,會強制跳轉(zhuǎn)到手機站首頁而不是訪問對應(yīng)頁面;手機瀏覽器訪問是正常的。
可以下載cms程序,部署一套新的域名測試,看看有沒有這種想象
--
不部署的話,檢查下有沒有自己寫過跳轉(zhuǎn)代碼
回復(fù)@迅??蚣苈?lián)合創(chuàng)始人 pc端模板有寫跳轉(zhuǎn)代碼如下:
<script type="application/javascript">
if (dr_is_mobile()) {
// 移動端鏈接地址
document.location.href = '{str_replace(SITE_URL, SITE_MURL, $my_web_url)}';
}
</script>
用微信開發(fā)者工具調(diào)試一下看看
可加入提示用戶微信內(nèi)用瀏覽器打開代碼
<!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程序,部署一套新的域名測試,看看有沒有這種想象
--
不部署的話,檢查下有沒有自己寫過跳轉(zhuǎn)代碼
回復(fù)@迅??蚣苈?lián)合創(chuàng)始人 pc端模板有寫跳轉(zhuǎn)代碼如下:
<script type="application/javascript">
if (dr_is_mobile()) {
// 移動端鏈接地址
document.location.href = '{str_replace(SITE_URL, SITE_MURL, $my_web_url)}';
}
</script>
用微信開發(fā)者工具調(diào)試一下看看
可加入提示用戶微信內(nèi)用瀏覽器打開代碼
<!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>