使用搜索功能,手機(jī)端搜索結(jié)果數(shù)量不對,比如PC端能搜出幾十個結(jié)果,手機(jī)端只有三五個
這是手機(jī)端搜索欄
<form action="{WEB_DIR}index.php" method="get" class="flex">
<input class="search-input" type="text" name="keywords" value="" placeholder="請輸入搜索關(guān)鍵詞" />
<input type="hidden" name="s" value="game">
<input type="hidden" name="c" value="search">
<input class="search-btn" type="submit" value="搜索" />
</form>這是搜索頁面調(diào)用
{search module=game id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=40 urlrule=$urlrule return=rs}
<li>
<a href={$rs.url}>
<img data-original="{dr_thumb($rs.thumb, 200, 200)}" src={MOBILE_THEME_PATH}picture/bg.gif />
<h3 class=title>{$rs.title}</h3>
<p><em> </em>{$rs.daxiao}</p>
<p>贊:<i>{$rs['avgsort']}</i><em> </em>人氣:<i>{intval($rs['hits'])}</i></p>
<span class=down>下載</span>
</a>
</li>{/search}辛苦看看,PC端應(yīng)該是正常的
search標(biāo)簽沒有問題
{/search} 后面加一個 {$debug_rs}對比下pc段素具
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!