联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
如何在模块的搜索页面,只显示一个搜索框
类型:POSCMS 更新时间:2019-04-22 09:06:05

如何在模块的搜索页面,只显示一个搜索框,当有搜索的时候才显示下面的列表内容


现在的结果是,点击搜索页面的时候,就会出来列表


  {if $searchid}
                                {search order=$params.order id=$searchid total=$sototal catid=$catid page=1 pagesize=10 urlrule=$urlrule}
                                <div class="layui-col-md12 ">
                                    <div class="layui-col-md3"><a href="{$t['url']}"><img src="{dr_thumb($t.thumb)}"></a></div>
                                    <div class="layui-col-md9">
                                        <div class="con">
                                            <h3><a href="{$t['url']}">{$t['title']}</a></h3>
                                            <p class="desc">{dr_strcut($t.description, 130)}</p>
                                        </div>
                                    </div>
                                </div>
                                {/search}
                                {else}
                                <div class="layui-col-md12">
                                    <p class="center">没有搜索到数据</p>
                                </div>
                                {/if}

图片.png


回帖
  • NuBia
    #1楼    NuBia
    2019-04-22 08:49:25
    0
    {if $keyword}显示xxxxxxxxxxxxxxxx{/if}
    满意答案
  • 张海峰
    #2楼    张海峰
    2019-04-22 09:06:05
    0
    @NuBia:早上好,谢谢你,搞定