联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
列表带推荐位的怎么判断,属于推荐位的显示荐
类型:迅睿CMS 更新时间:2021-03-31 14:53:55

{xunruicms_img_title}

这种列表带推荐位的怎么判断,属于推荐位的显示荐,不属于的不显示

{module module=designer catid=1 order=displayorder,updatetime page=1 more=1}
                                            <li class="designItem">
                                                {module module=designer flag=1 catid=1 num=8 order=displayorder,updatetime return=r}
                                                            <div class="recomm">
                                    <img src="{HOME_THEME_PATH}image/designer_recomm.png" class="lazy_img">
                                </div>
             {/module}
                                                        <div class="avatar-wp">
                                <div class="avatar">
                                    <a href="{$t.url}" target="_blank">
                                        <img src="{dr_get_file($t.thumb)}" class="lazy_img" alt="{$t.title}">
                                    </a>
                                </div>
                            </div>
                            <div class="description clear">
                                <div class="name-wp">
                                    <a href="{$t.url}" class="name" target="_blank">
                                        <h3>{$t.title}</h3>
                                    </a>
                                    <span class="rank">{dr_linkage('sjsjb', $t.sjsjb, 0, 'name')}</span>
                                </div>
                                <p class="case-wp">
         <span class="case-num">
          案例数量:<span>{dr_count($t.basjs)}</span>套
         </span>
                                    <span class="job-date">
          从业经验:<span>{$t.cyjy}</span>年
         </span>
                                </p>
                                <div class="btn-act clear">
                                    <a class="designItem-btn" href="{$t.url}" target="_blank">看TA的案列</a>
                                    <a class="designItem-btn designer-time" data-designer="{$key}" href="javascript:;">找TA设计</a>
                                </div>
                            </div>
                        </li>
                        {/module}


回帖
  • 迅睿框架技术-张哥
    #1楼    迅睿框架技术-张哥
    2021-03-31 13:49:38
    小米手机 0
  • 命运一切皆随缘
    #2楼    命运一切皆随缘
    2021-03-31 13:51:29
    Chrome 0
    这种最好是新建一个是字段,比如说属性字段呐。是什么属性就显示什么图标。
  • 天枫
    #3楼    天枫
    2021-03-31 13:51:49
    Chrome 0
    迅睿框架技术-张哥 调用我知道,是判断不清楚, 属于推荐位的才显示推荐图标,不属于的就不显示推荐图标,判断语句该怎么写
  • 迅睿框架技术-张哥
    #4楼    迅睿框架技术-张哥
    2021-03-31 14:19:43
    Chrome 0
    目前无法做到这种判断
  • 小波工作室--标签和API大师
    #5楼    小波工作室--标签和API大师
    2021-03-31 14:26:13
    Chrome 0
        {module module=designer flag=1 catid=1 num=8 order=displayorder,updatetime return=r}
                                                                <div class="recomm">
                                        <img src="{HOME_THEME_PATH}image/designer_recomm.png" class="lazy_img">
                                    </div>
                 {/module}
    改成
        {module module=designer flag=1 id=$t.id num=1 return=r}
                                                                <div class="recomm">
                                        <img src="{HOME_THEME_PATH}image/designer_recomm.png" class="lazy_img">
                                    </div>
                 {/module}
    满意答案
  • 天枫
    #6楼    天枫
    2021-03-31 14:53:09
    Chrome 0
    小波工作室--标签和API大师 小波的这种方式可行,唯一的就是没有先显示推荐的再显示无推荐的,不过也算解决了问题
  • 天枫
    #7楼    天枫
    2021-03-31 14:53:55
    Chrome 0
    @小波工作室--标签和API大师:很NICE的就解决了