作者 anyv
1 个管道 的构建 通过 耗费 0 秒

搜索

... ... @@ -181,8 +181,8 @@ class IndexController extends WeChatBaseController
*/
public function search_salesman_goods(){
/* $data_salesman_goods = Db::name('goods') -> where("type =2 and book_name like %".$_POST['book_name']."%") -> select();
$this -> assign('data_salesman_goods',$data_salesman_goods);*/
$data_salesman_goods = Db::name('goods') -> where("type =2 and book_name like %".$_POST['book_name']."%") -> select();
$this -> assign('data_salesman_goods',$data_salesman_goods);
return $this -> fetch();
}
... ...
... ... @@ -31,7 +31,7 @@
<img src="__TMPL__/public/assets/images/1.png" alt="">
<input type="text" name="book_name" placeholder="输入书籍名称">
</div>
<div class="in_search_no">搜索</div>
<div class="in_search_no"><button type="submit">搜索</button></div>
</div>
</form>
<!-- banner -->
... ...