找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 6593|回复: 4

请问手机模板有时候会提示,你所访问的没有手机页面。

  [复制链接]
发表于 2016-5-19 16:13:57 | 显示全部楼层 |阅读模式
Screenshot_2016-05-19-10-35-25_com.tencent.mm.png
请教:
1、有时候访问会提示,你所访问的页面没有手机页面,是否访问电脑页面。有时又会显示电脑版头部文件。
2、用微信打开链接,手机模板头部导航条看不到,用手机浏览器打开又正常显示头部导航条。

回复

使用道具 举报

 楼主| 发表于 2016-5-20 15:05:31 | 显示全部楼层
问题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[forum][threads]</em></span>
                <span class="s2">帖子<em>$_G[forum][posts]</em></span>
            </dd>
            <dd class="dd3">
                <cite><span>{$_G[group][stars]}</span><em>{$_G[group][grouptitle]}</em></cite>
                <!--{eval $fav=DB::fetch_first("SELECT * FROM ".DB::table('home_favorite')." WHERE uid=".$_G[uid]." and `idtype`='fid' and id=".$_G[fid]."");}-->
                <cite>{if $fav[id]}<a href="javascript:void(0);" class="a1">已关注</a>{else}<a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum&formhash={FORMHASH}" class="a2"><i>+</i>关注</a>{/if}</cite>  
                               
            </dd>
        </dl>
    </div>

    <!--{if !in_array($_G[fid],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[fid]}">{$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[fid]{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[fid]{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
                                                                <!--{else}-->
                                                                <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$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[fid]{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
                                                                <!--{else}-->
                                                                <li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id$forumdisplayadd[sortid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$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[fid],array(36,115,2000))}-->
<!--{if !$subforumonly}-->
<div class="mfmlist mfmlist1">
    <ul>
        <!--{if $livethread}-->
    <li class="cl">
        <span class="s1">直播</span>
        <span class="s2">回复$livethread[replies]</span>
        <a href="forum.php?mod=viewthread&tid=$livethread[tid]">$livethread[subject]</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[tid]=$thread[closed];}-->
            <!--{/if}-->
                        <li class="cl">
            <a href="forum.php?mod=viewthread&tid=$thread[tid]&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[subject]}</i></a>
            </li>
        <!--{/if}-->
        <!--{/loop}-->
    <!--{/if}-->
        </ul>
</div>
<!--{/if}-->
<!--{/if}-->

<!--{if !$subforumonly}-->
  <!--{if in_array($_G[fid],array(36,115,2000))}-->
。。。。。
坐等高手指点!
回复

使用道具 举报

发表于 2016-5-22 14:12:01 | 显示全部楼层
刷新两次 可能和模板缓存有关系!
微信中如果显示不正常的话,可能是兼容出现了问题,可以参考下bootstrap等框架的头部结构
回复

使用道具 举报

 楼主| 发表于 2016-5-22 22:52:25 | 显示全部楼层
谢谢,不过还是不知道怎么解决,期待站主的手机模板开发教程!
回复

使用道具 举报

发表于 2016-5-23 10:30:27 | 显示全部楼层
sundy2100 发表于 2016-5-22 22:52
谢谢,不过还是不知道怎么解决,期待站主的手机模板开发教程!

好的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Discuz代码分析|Discuz目录结构|DZ起点网 ( 蜀ICP备13000518号-15 )

GMT+8, 2024-4-20 02:28 , Processed in 0.059619 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表