feat/task1-c-wallet
devil_gong 2018-08-29 18:34:27 +08:00
parent 2416e02732
commit 2f20b17dd9
5 changed files with 89 additions and 4 deletions

View File

@ -0,0 +1,44 @@
<?php
namespace Home\Controller;
use Service\GoodsService;
/**
* 搜索
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-01T21:51:08+0800
*/
class SearchController extends CommonController
{
/**
* [_initialize 前置操作-继承公共前置方法]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-03T12:39:08+0800
*/
public function _initialize()
{
// 调用父类前置方法
parent::_initialize();
}
/**
* [Index 首页]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-22T16:50:32+0800
*/
public function Index()
{
$id = I('id');
$this->display('Index');
}
}
?>

View File

@ -13,7 +13,6 @@
<include file="Public/GoodsCategory" />
<div class="detail">
<!-- 轮播 -->
<div class="scoll">
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false}' >
@ -278,7 +277,6 @@
</div>
</div>
</div>
</div>
<!-- footer start -->

View File

@ -12,8 +12,8 @@
</div>
<div class="search-bar pr">
<form>
<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="{{:L('common_so_tips')}}" autocomplete="off" />
<form action="search.php">
<input id="searchInput" name="keywords" type="text" placeholder="{{:L('common_so_tips')}}" autocomplete="off" />
<input id="ai-topsearch" class="submit am-btn" placeholder="{{:L('common_so_tips')}}" index="1" type="submit" value="{{:L('common_so_text')}}" />
</form>
</div>

View File

@ -0,0 +1,21 @@
<include file="Public/Header" />
<!-- header top nav -->
<include file="Public/HeaderTopNav" />
<!-- search -->
<include file="Public/NavSearch" />
<!-- header nav -->
<include file="Public/HeaderNav" />
<!-- goods category -->
<include file="Public/GoodsCategory" />
<div class="am-container">
hello
</div>
<!-- footer start -->
<include file="Public/Footer" />
<!-- footer end -->

22
service/search.php Normal file
View File

@ -0,0 +1,22 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 搜索入口
define('BIND_MODULE', 'Home');
define('BIND_CONTROLLER', 'Search');
define('BIND_ACTION', 'Index');
// 引入公共入口文件
require './core.php';
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
?>