如何设置两个不同的独立端啊 现在用手机访问www.ok6.info 上面不会跳转到 m.ok6.info 有办法解决吗大哥们
wuqing 发表于 2019-8-20
只要你设置好手机模版系统是自动判断设备的,手机访问就会调用手机模版的没必要非得多此一举跳转
如果非要跳转可以在
template/home/选择的电脑模版/footer.html
最后面加入
<script type="text/javascript"> if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){ if(window.location.href.indexOf("?mobile")<0){ try{ if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){ window.location.href="http://m.ok6.info"; } }catch(e){} } } </script>
加载数据中...
wuqing
发表于 2019-8-20
只要你设置好手机模版系统是自动判断设备的,手机访问就会调用手机模版的没必要非得多此一举跳转
如果非要跳转可以在
template/home/选择的电脑模版/footer.html
最后面加入
评论列表
加载数据中...