From 3ea0a67677ae83b131f4dc271468c945f7b3a6dc Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Mon, 31 Dec 2018 12:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- public/static/index/default/js/search.js | 2 +- route/{index.php => route.php} | 8 +++++++- 3 files changed, 10 insertions(+), 3 deletions(-) rename route/{index.php => route.php} (76%) diff --git a/.gitignore b/.gitignore index f1f8d1c4f..19e797fe5 100755 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ .ide *.log *.lock -.tea \ No newline at end of file +.tea +.htaccess \ No newline at end of file diff --git a/public/static/index/default/js/search.js b/public/static/index/default/js/search.js index 2c937bfc9..0abed3763 100755 --- a/public/static/index/default/js/search.js +++ b/public/static/index/default/js/search.js @@ -186,7 +186,7 @@ $(function() html += ''; html += '

'+result.data.data[i]['title']+'

'; html += '
'; - html += '

¥'+result.data.data[i]['price']+'

'; + html += '

¥'+result.data.data[i]['min_price']+'

'; html += '

销量'+result.data.data[i]['sales_count']+'

'; html += ''; diff --git a/route/index.php b/route/route.php similarity index 76% rename from route/index.php rename to route/route.php index 7af870e8e..0ed1bd5ef 100755 --- a/route/index.php +++ b/route/route.php @@ -10,5 +10,11 @@ // +---------------------------------------------------------------------- // 首页 -Route::get('/', 'index/index'); +// Route::get('/', 'index/index'); + +// // 商品详情 +// Route::get('goods-:id', 'index/goods/index'); + +// // 搜索 +// Route::get('search-:category_id', 'index/search/index'); ?> \ No newline at end of file