ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯(lián)系官方銷售客服

1835022288

028-61286886

投訴 已解決 后臺設置了推薦位,想實現(xiàn)判斷是否設置推薦位 5 0
迅睿CMS版本:4.3.7

后臺設置了推薦位,想實現(xiàn)判斷是否設置推薦位,使用不同的樣式,推薦位內(nèi)容隨機設置也要隨機展示,不是先展示推薦位再展示非推薦位 謝謝


微信截圖_20200528201138

解決方案
  • 你把代碼復制上來啊,代碼截圖怎么幫你啊

  • 就是實現(xiàn)增減個類名 full 謝謝


    {list action=module module=work}

    {if $t.flag==1} <li class="box full">{else}<li class="box">{/if}

    <div class="inner">

    <p class="image">

    <a href="{$t.url}"><img src="{HOME_THEME_PATH}static/images/blank3.png" data-src="{dr_get_file($t.thumb)}" class="lazy" alt=""></a>

    </p>

    <h2 class="title">

    <a href="{$t.url}">

    <span>{$t.title}</span> <br>

    <span>{$t.ywmc}</span>

    </a>

    </h2>

    </div>

    </li>

    {/list}

  • {list action=module module=work}
      {if \Phpcmf\Service::M()->table_site("work_flag")->where("flag", 1)->where("id", $t.id)->counts()} <li class="box full">{else}<li class="box">{/if}
                            <div class="inner">
                                <p class="image">
                                    <a target="_blank" href="{$t.url}"><img src="{HOME_THEME_PATH}static/images/blank3.png" data-src="{dr_get_file($t.thumb)}" class="lazy" alt=""></a>
                                </p>
                                <h2 class="title">
                                    <a target="_blank" href="{$t.url}">
                                        <span>{$t.title}</span> <br>
                                        <span>{$t.ywmc}</span>
                                    </a>
                                </h2>
                            </div>
                        </li>
                       {/list}
    滿意答案
    短信幣+1
  • 迅睿框架創(chuàng)始人:非常感謝