迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢
微信端打開pc端網(wǎng)址的時(shí)候,會(huì)強(qiáng)制跳轉(zhuǎn)到手機(jī)站首頁而不是訪問對(duì)應(yīng)頁面;手機(jī)瀏覽器訪問是正常的。
可以下載cms程序,部署一套新的域名測(cè)試,看看有沒有這種想象
--
不部署的話,檢查下有沒有自己寫過跳轉(zhuǎn)代碼
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣苈?lián)合創(chuàng)始人 pc端模板有寫跳轉(zhuǎn)代碼如下:
<script type="application/javascript">
if (dr_is_mobile()) {
// 移動(dòng)端鏈接地址
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>請(qǐng)?jiān)谖⑿磐獯蜷_此鏈接</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程序,部署一套新的域名測(cè)試,看看有沒有這種想象
--
不部署的話,檢查下有沒有自己寫過跳轉(zhuǎn)代碼
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣苈?lián)合創(chuàng)始人 pc端模板有寫跳轉(zhuǎn)代碼如下:
<script type="application/javascript">
if (dr_is_mobile()) {
// 移動(dòng)端鏈接地址
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>請(qǐng)?jiān)谖⑿磐獯蜷_此鏈接</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>