联系官方销售客服
1835022288
028-61286886
今天在做搜索功能的时候发现很怪,搜索不出东西来,翻看以前的案例也是不行,
//搜索框 <form action="/index.php" method="get" class="spotForm"> <input type="hidden" name="s" value="business"> <input type="hidden" name="c" value="search"> <div class="spotItem"> <div class="spotItemTitle">Model</div> <input class="spotItemInput" type="text" name="title"> </div> <div class="spotItem"> <div class="spotItemTitle">Classification</div> <select class="spotItemInput" name="classification"> <option>classification1</option> </select> </div> <div class="spotItem"> <div class="spotItemTitle">Brand</div> <select class="spotItemInput" name="brand"> <option>brand1</option> </select> </div> <div class="spotItem2"> <input class="spotItemInput2" type="submit" value="Search"> </div> </form>
搜索结果页地址
/index.php?s=business&c=search&title=271&classification=classification1&brand=brand1
后台模块搜索中的字段也点了
但是结果搜索了个寂寞
我在头部写了个链接
{Router::search_url($params, 'keyword', 'spot','business')}
搜索也地址是
/index.php?s=business&c=search&keyword=spot
这个就能搜索出东西
到底是啥原因造成有大佬指点一二嘛
这里错了,改成keyword
/index.php?s=business&c=search&keyword=271&classification=classification1&brand=brand1不对,还是搜索了个寂寞