您好(hǎo),歡迎來(lái)到(dào)盤龍區華銘誠泰網絡工作室官₩↓δ✔方網站(zhàn)!ZJJCL.CN
新聞動态
您現(xiàn)在的(de)位置:首頁 > 技(jì)術(shù)文(wén)摘
帝國(guó)CMS訪問(wèn)電(d∞∞÷iàn)腦(nǎo)端自(zì)動跳(ti∞ ≤ào)轉到(dào)手機(jī)端動态頁和↕☆✘(hé)靜(jìng)态頁的(de)代碼
來(lái)源:創立工(gōng)作(zuò)室 作(zuò)者:馮軍 ±$發布時(shí)間(jiān):2023-02-12 16:45:46 閱讀(♥♦♣$dú) 2873 次

Empire CMS 7.2版本引入了(le)全面的(de)∞ 多(duō)接入終端功能(néng),使網站(zhàn)更方便地(dì)制(z✔γ•hì)作(zuò)多(duō)個(gè)移動接入終端。版本7.5中的(d‍πe)多(duō)訪問(wèn)者升級:支持主端€'£ 的(de)後台刷新以生(shēng)成每個(​ε•γgè)訪問(wèn)端的(de)靜(jìng)态頁面,↓ ∏并且多(duō)訪問(wèn)端在靜(jìng)态模式下(xi§✔Ωà)使用(yòng)更方便。

頁面頭部

 

JS代碼在body前面加上(shàng)以σ 下(xià)HTML源代碼

 

<script type="text/javascript"&↑¶‍≈gt;
try {
    var urlhash = window.lγ €ocation.hash;
    if (!u₹≠∏rlhash.match("fromapp")) {
        i≥←f ((navigator.userAgent.m§☆‌atch(/(ipod|iphone|android|coπ​★olpad|mmp|smartphone|midp∑↓×|wap|xoom|symbian|j2me|blackberry|winc‌£α↕e)/i))) {
            window.location♠∞←↔ = "https://m.daixiao360.c≤±←↓n/";
        }
     ↓α✔}
} catch(err) {}
</script>®¥φ★
<meta name="mobile-agent" co★☆∞σntent="format=xhtml;url=https:/φ☆¥→/m.daixiao360.cn/">

 

列表頁

 

動态頁:https://m.daixiao360.cδ÷n/e/action/ListInfo/?classid=[!--÷σself.classid--]
靜(jìng)"±态頁:https://m.daixiao360.cn
<∑←<<;?$r['classid']=$GLOBALS[navclassid];ε₹ α$classurl=sys_ReturnBqClassname($r,9σ•≠→);echo $classurl;?>

 

內(nèi)容頁

 

動态頁:https://m.daixiao360.cn/e/←£action/ListInfo/?classid 'β=[!--self.classid--]
靜(j§​♦¥ìng)态頁:https://m.daixiao360.cn
&l•≈πt;?$r['classid']=$GLOε>→♠BALS[navclassid];$class¥←url=sys_ReturnBqClassname($r,9);echo​→$≠ $classurl;?>

 

分(fēn)成動态與靜(jìng)态頁面,可(kě)自(zì)行(xín↔↕g)選擇更換ppqq.net為(wèi)自(zì)己的(de)子(♠α≠φzǐ)域名。