diff --git a/Application/Common/Controller/BaseController.class.php b/Application/Common/Controller/BaseController.class.php index 96cebf8..ff152bf 100644 --- a/Application/Common/Controller/BaseController.class.php +++ b/Application/Common/Controller/BaseController.class.php @@ -15,6 +15,7 @@ class BaseController extends Controller } $getInfo = I(); + // var_dump($getInfo);die; $this->assign('get_url_info',$getInfo); } diff --git a/Application/Common/View/public/indexheader.html b/Application/Common/View/public/indexheader.html index 8953b8d..22a9841 100644 --- a/Application/Common/View/public/indexheader.html +++ b/Application/Common/View/public/indexheader.html @@ -1,4 +1,4 @@ -<foreach name="get_utl_info" item="v" > +<foreach name="get_url_info" item="v" > <input type="hidden" id="{$key}" value="{$v}"> </foreach> <div class="index_header"> diff --git a/dist/js/index/search.js b/dist/js/index/search.js index 81edfb4..fd3a1d6 100644 --- a/dist/js/index/search.js +++ b/dist/js/index/search.js @@ -1,8 +1,8 @@ $(function () { var indexSearch = { - key: Util.getRequest('key') || "", - type: Util.getRequest('type') || "", - time: Util.getRequest('time') || "", + key: $('#key').val() || '', + type: $('#type').val() || '' || "", + time: $('#time').val() || '' || "", init: function () { this.bindFun(); this.renderPage() @@ -81,8 +81,8 @@ $(function () { } else if (val.length < 3) { layer.msg('搜索内容太短') } else { - console.log(self.type,self.time) - window.location.replace("/" +decodeURIComponent(val)+ '_' + self.type + '_' + self.time); + console.log(self.type, self.time) + window.location.replace("/" + decodeURIComponent(val) + '_' + self.type + '_' + self.time); } }); $('.zz').on('click', '.fl', function () {