请问手机模板有时候会提示,你所访问的没有手机页面。
请教:
1、有时候访问会提示,你所访问的页面没有手机页面,是否访问电脑页面。有时又会显示电脑版头部文件。
2、用微信打开链接,手机模板头部导航条看不到,用手机浏览器打开又正常显示头部导航条。
问题1、手机页面,在清理浏览器缓存后,打开页面会提醒你访问的页面无手机页面。点击确定后,自动回到原来页面,再点击相应版块,就正常显示了。
问题2,手机模板幻灯片,在微信中打开页面链接,幻灯片图片变得参差不齐。头部导航条也不见了?其余正常。提醒无手机页页的页面代码如下:
<?php exit;?>
<!--{template common/header}-->
<link rel="stylesheet" type="text/css" href="template/dr/touch/style/css/forumdisplay_list.css" media="all" />
<link rel="stylesheet" type="text/css" href="template/dr/touch/style/css/forumdisplay_list.css" id="JCSS" media="all" />
<script src="template/dr/touch/style/js/jquery.cookie.js" type="text/javascript"></script>
<body class="bg">
<!--{eval require DISCUZ_ROOT.'template/dr/touch/style/plus/wap_config.php';}-->
<div id="mwp">
<div id="mcontent">
<div class="t_blank cl"></div>
<div class="mforum_head">
<div class="mforum_h_1">
<dl class="cl">
<dt>
{if $_G['forum']['icon']}
<img src="data/attachment/common/$_G['forum']['icon']" />
{else}
<img src="template/dr/touch/style/icon_no.png" />
{/if}
</dt>
<dd class="dd1">{$_G['forum']['name']}</dd>
<dd class="dd2">
<span class="s1">主题<em>$_G</em></span>
<span class="s2">帖子<em>$_G</em></span>
</dd>
<dd class="dd3">
<cite><span>{$_G}</span><em>{$_G}</em></cite>
<!--{eval $fav=DB::fetch_first("SELECT * FROM ".DB::table('home_favorite')." WHERE uid=".$_G." and `idtype`='fid' and id=".$_G."");}-->
<cite>{if $fav}<a href="javascript:void(0);" class="a1">已关注</a>{else}<a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G&handlekey=favoriteforum&formhash={FORMHASH}" class="a2"><i>+</i>关注</a>{/if}</cite>
</dd>
</dl>
</div>
<!--{if !in_array($_G,array(36,115,2000))}-->
<!--{if $subexists && $_G['page'] == 1 || ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable']) || count($_G['forum']['threadsorts']['types']) > 0}-->
<div class="mforum_h_2">
<!--{if $subexists && $_G['page'] == 1}-->
<ul class="cl">
<li class="li_w">子版块</li>
<!--{loop $sublist $sub}-->
<li><a href="forum.php?mod=forumdisplay&fid={$sub}">{$sub['name']}</a></li>
<!--{/loop}-->
</ul>
<!--{/if}-->
<!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable']) || count($_G['forum']['threadsorts']['types']) > 0}-->
<ul class="cl">
<li id="ttp_all" {if !$_GET['typeid'] && !$_GET['sortid']}class="a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G{if $_G['forum']['threadsorts']['defaultshow']}&filter=sortall&sortall=1{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang forum_viewall}</a></li>
<!--{if $_G['forum']['threadtypes']}-->
<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
<!--{if $_GET['typeid'] == $id}-->
<li class="a"><a href="forum.php?mod=forumdisplay&fid=$_G{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[$id]}--><span class="xg1 num">$showthreadclasscount[$id]</span><!--{/if}--></a></li>
<!--{else}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G&filter=typeid&typeid=$id$forumdisplayadd{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[$id]}--><span class="xg1 num">$showthreadclasscount[$id]</span><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if $_G['forum']['threadsorts']}-->
<!--{if $_G['forum']['threadtypes']}--><li><span class="pipe">|</span></li><!--{/if}-->
<!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
<!--{if $_GET['sortid'] == $id}-->
<li class="xw1 a"><a href="forum.php?mod=forumdisplay&fid=$_G{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[$id]}--><span class="xg1 num">$showthreadclasscount[$id]</span><!--{/if}--></a></li>
<!--{else}-->
<li><a href="forum.php?mod=forumdisplay&fid=$_G&filter=sortid&sortid=$id$forumdisplayadd{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[$id]}--><span class="xg1 num">$showthreadclasscount[$id]</span><!--{/if}--></a></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{/if}-->
<!--{if $quicksearchlist && !$_GET['archiveid']}-->
<!--{subtemplate forum/search_sortoption}-->
<!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if !in_array($_G,array(36,115,2000))}-->
<!--{if !$subforumonly}-->
<div class="mfmlist mfmlist1">
<ul>
<!--{if $livethread}-->
<li class="cl">
<span class="s1">直播</span>
<span class="s2">回复$livethread</span>
<a href="forum.php?mod=viewthread&tid=$livethread">$livethread</a>
</li>
<!--{/if}-->
<!--{if $_G['forum_threadcount']}-->
<!--{loop $_G['forum_threadlist'] $key $thread}-->
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<!--{if !$_G['setting']['mobile']['mobiledisplayorder3'] && $thread['displayorder'] > 0}-->
{eval continue;}
<!--{/if}-->
<!--{if $thread['displayorder'] > 0 && !$displayorder_thread}-->
{eval $displayorder_thread = 1;}
<!--{/if}-->
<!--{if $thread['moved']}-->
<!--{eval $thread=$thread;}-->
<!--{/if}-->
<li class="cl">
<a href="forum.php?mod=viewthread&tid=$thread&extra=$extra">
<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
<span class="s1">置顶</span>
<!--{/if}-->
<!--{if $thread['digest'] > 0}-->
<span class="s2">精</span>
<!--{/if}-->
<!--{if $thread['attachment'] == 2 && $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
<span class="s2">图</span>
<!--{/if}-->
<i>{$thread}</i></a>
</li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</ul>
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if !$subforumonly}-->
<!--{if in_array($_G,array(36,115,2000))}-->
。。。。。
坐等高手指点!
刷新两次 可能和模板缓存有关系!
微信中如果显示不正常的话,可能是兼容出现了问题,可以参考下bootstrap等框架的头部结构 谢谢,不过还是不知道怎么解决,期待站主的手机模板开发教程! sundy2100 发表于 2016-5-22 22:52
谢谢,不过还是不知道怎么解决,期待站主的手机模板开发教程!
好的
页:
[1]