联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
资讯缩略图在最新栏目下不显示但是在自己所属栏目下可以正常显示
类型:POSCMS 更新时间:2019-07-29 09:18:50

资讯缩略图在“最新”栏目下不显示,但是在自己所属栏目下可以正常显示是怎么回事呢

TIM图片20190726114430.png

回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2019-07-26 11:51:34
    Chrome 0
    代码怎么写的发上来看看,代码不要截图
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2019-07-26 11:57:59
    Chrome 0
    回复迅睿框架创始人 就是原版代码,安装直接用的,没改过……
  • 迅睿粉丝
    #3楼    迅睿粉丝
    2019-07-26 12:10:17
    Chrome 0
    发代码看看,一般是field参数决定
  • 迅睿粉丝
    #4楼    迅睿粉丝
    2019-07-26 12:28:27
    Chrome 0
    {template "header.html", "/"}
    
    <div class="page-container">
        <div class="page-content-wrapper">
    
            <div class="page-content">
                <div class="container">
    
                    <ul class="page-breadcrumb breadcrumb">
                        <li><a href="{SITE_URL}">首页</a><i class="fa fa-angle-right"></i></li>
                        {if defined('IS_SHARE') && !IS_SHARE}
                        <li><a href="{MODULE_URL}">{MODULE_NAME}</a><i class="fa fa-angle-right"></i></li>
                        {/if}
                        {dr_catpos($catid, '', 1, '<li><a href="{url}">{name}</a><i class="fa fa-angle-right"></i></li>'.PHP_EOL)}
                        <li> <span>列表</span></li>
                    </ul>
    
    
                    <div class="news-content row">
    
                        <div class="col-md-8">
    
                            <ul class="news-list">
                                <!--分页显示列表数据-->
                                {module catid=$catid order=updatetime page=1}
                                <li>
                                    <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div>
                                    <div class="con">
                                        <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5>
                                        <p>{dr_strcut($t.description, 130)}</p>
                                        <dl class="clearfix">
                                            <dt class="time">{$t.updatetime}</dt>
                                            <dd class="browse"><i class="fa fa-eye"></i> {$t.hits}</dd>
                                        </dl>
                                    </div>
                                </li>
                                {/module}
                            </ul>
                            <div class="news-list-pagination">
                                <ul class="pagination">
                                    {$pages}
                                </ul>
                            </div>
    
                        </div>
    
                        <div class="col-md-4">
    
                            <div class="news-hits-body">
                                <div class="ctitle">图文资讯</div>
                                <ul class="image">
                                    {module field=title,url,thumb,updatetime catid=$catid thumb=1 num=10}
                                    <li>
                                        <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div>
                                        <div class="con">
                                            <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5>
                                            <p>{$t.updatetime}</p>
                                        </div>
                                    </li>
                                    {/module}
                                </ul>
                            </div>
                            <div class="news-hits-body">
                                <div class="ctitle">热文排行</div>
                                <ul class="news">
                                    {module field=title,url order=hits catid=$catid num=10}
                                    <li><a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 20)}</a></li>
                                    {/module}
                                </ul>
                            </div>
                        </div>
    
    
                    </div>
    
                </div>
            </div>
    
        </div>
    
    </div>
    
    
    {template "footer.html", "/"}
    徐树是这个吗?list.html
  • 迅睿粉丝
    #5楼    迅睿粉丝
    2019-07-26 12:31:27
    Chrome 0
    list没问题,但是我感觉你截图不是list.html,难道是category.html?
  • 迅睿粉丝
    #6楼    迅睿粉丝
    2019-07-26 13:09:47
    Chrome 0
    {template "header.html", "/"}
    
    
    
    <div class="page-container">
    
        <div class="page-content-wrapper">
    
    
    
            <div class="page-content">
    
                <div class="container">
    
    
    
                    <ul class="page-breadcrumb breadcrumb">
    
                        <li><a href="{SITE_URL}">首页</a><i class="fa fa-angle-right"></i></li>
    
                        {if defined('IS_SHARE') && !IS_SHARE}
    
                        <li><a href="{MODULE_URL}">{MODULE_NAME}</a><i class="fa fa-angle-right"></i></li>
    
                        {/if}
    
                        {dr_catpos($catid, '', 1, '<li><a href="{url}">{name}</a><i class="fa fa-angle-right"></i></li>'.PHP_EOL)}
    
                        <li> <span>频道</span></li>
    
                    </ul>
    
    
    
    
    
                    <div class="news-content row">
    
    
    
                        <div class="col-md-8">
    
                            <div class="bg-white bg-flash">
    
                                <div class="swiper-container">
    
                                    <div class="swiper-wrapper">
    
                                        {module catid=$catid num=5 thumb=1}
    
                                        <div class="swiper-slide">
    
                                            <a href="{$t.url}" target="_blank"><img src="{dr_thumb($t.thumb, 750, 250)}" style="width:750px;height:245px" /></a>
    
                                        </div>
    
                                        {/module}
    
                                    </div>
    
                                    <div class="swiper-pagination"></div>
    
                                </div>
    
                                <link rel="stylesheet" href="{HOME_THEME_PATH}swiper/css/swiper.min.css">
    
                                <script src="{HOME_THEME_PATH}swiper/js/swiper.min.js"></script>
    
                                <script>
    
                                    var swiper = new Swiper('.swiper-container', {
    
                                        spaceBetween: 30,
    
                                        autoplay: {
    
                                            delay: 3500,
    
                                            disableOnInteraction: false,
    
                                        },
    
                                        pagination: {
    
                                            el: '.swiper-pagination',
    
                                            clickable: true,
    
                                        },
    
                                    });
    
                                </script>
    
                            </div>
    
                            <div class="news-title news-tabs">
    
                                <ul class="clearfix tab-hd">
    
                                    <li class="selected"><a href="javascript:void(0);">最新</a></li>
    
                                    {loop $related $t}
    
                                    <li><a href="{$t.url}">{$t.name}</a></li>
    
                                    {/loop}
    
                                </ul>
    
                            </div>
    
                            <ul class="news-list">
    
                                <!--最新10条数据-->
    
                                {module  field=title,url,updatetime,description,keywords,hits catid=$catid order=updatetime num=10}
    
                                <li>
    
                                    <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div>
    
                                    <div class="con">
    
                                        <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5>
    
                                        <p>{dr_strcut($t.description, 130)}</p>
    
                                        <dl class="clearfix">
    
                                            <dt class="time">{$t.updatetime}</dt>
    
                                            <dd class="browse"><i class="fa fa-eye"></i> {$t.hits}</dd>
    
                                        </dl>
    
                                    </div>
    
                                </li>
    
                                {/module}
    
                            </ul>
    
    
    
                        </div>
    
    
    
                        <div class="col-md-4">
    
    
    
                            <div class="news-hits-body">
    
                                <div class="ctitle">图文资讯</div>
    
                                <ul class="image">
    
                                    {module field=title,url,thumb,updatetime catid=$catid thumb=1 num=10}
    
                                    <li>
    
                                        <div class="pic"><a href="{$t.url}"><img src="{dr_thumb($t.thumb)}"></a></div>
    
                                        <div class="con">
    
                                            <h5><a href="{$t.url}">{dr_strcut($t.title, 30)}</a></h5>
    
                                            <p>{$t.updatetime}</p>
    
                                        </div>
    
                                    </li>
    
                                    {/module}
    
                                </ul>
    
                            </div>
    
                            <div class="news-hits-body">
    
                                <div class="ctitle">热文排行</div>
    
                                <ul class="news">
    
                                    {module field=title,url order=hits catid=$catid num=10}
    
                                    <li><a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 20)}</a></li>
    
                                    {/module}
    
                                </ul>
    
                            </div>
    
                        </div>
    
    
    
    
    
                    </div>
    
    
    
                </div>
    
            </div>
    
    
    
        </div>
    
    
    
    </div>
    
    
    
    
    
    {template "footer.html", "/"}
    武状元是list,这个才是category.html
  • 迅睿粉丝
    #7楼    迅睿粉丝
    2019-07-26 13:59:03
    Chrome 0
     field=title,url,updatetime,description,keywords,hits
    去掉这个field参数
    满意答案
  • 迅睿粉丝
    #8楼    迅睿粉丝
    2019-07-26 14:20:40
    Chrome 0
    梦想零落成诗 在category.html里去掉?
  • 迅睿粉丝
    #9楼    迅睿粉丝
    2019-07-29 09:17:09
    Chrome 0
    赞同这位兄台的做法shawn梦想零落成诗
  • 迅睿粉丝
    #10楼    迅睿粉丝
    2019-07-29 09:18:14
    Chrome 0
    已解决,在index里去掉了
  • 迅睿粉丝
    #11楼    迅睿粉丝
    2019-07-29 09:18:50
    0
    @梦想零落成诗:已解决,在index里去掉了