细节优化
parent
0adfbc9714
commit
e332135dac
|
|
@ -69,9 +69,6 @@ class Cache extends Common
|
|||
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'cache');
|
||||
\base\FileUtil::UnlinkDir(ROOT.'runtime'.DS.'data');
|
||||
|
||||
// 缓存操作清除
|
||||
\think\facade\Cache::clear();
|
||||
|
||||
return $this->success('更新成功');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -603,6 +603,12 @@ class Common extends BaseController
|
|||
// 公共搜索框右侧
|
||||
MyViewAssign('plugins_view_common_search_right_data', MyEventTrigger('plugins_view_common_search_right', ['hook_name'=>'plugins_view_common_search_right', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共搜索框内左侧
|
||||
MyViewAssign('plugins_view_common_search_inside_left_data', MyEventTrigger('plugins_view_common_search_inside_left', ['hook_name'=>'plugins_view_common_search_inside_left', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共搜索框内右侧
|
||||
MyViewAssign('plugins_view_common_search_inside_right_data', MyEventTrigger('plugins_view_common_search_inside_right', ['hook_name'=>'plugins_view_common_search_inside_right', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共表格钩子名称动态处理
|
||||
$current = 'plugins_view_index_'.$this->controller_name;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,21 @@
|
|||
{{/if}}
|
||||
|
||||
<div class="search-bar">
|
||||
<!-- 公共搜索框内左侧 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_search_inside_left</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_search_inside_left_data) and is_array($plugins_view_common_search_inside_left_data)}}
|
||||
{{foreach $plugins_view_common_search_inside_left_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
<!-- 搜索框 -->
|
||||
<form action="{{:MyUrl('index/search/index')}}" method="POST">
|
||||
<div class="search-group">
|
||||
<input id="search-input" name="wd" type="text" placeholder="其实搜索很简单^_^ !" value="{{if !empty($params['wd'])}}{{$params.wd}}{{/if}}" autocomplete="off" />
|
||||
|
|
@ -43,6 +58,20 @@
|
|||
</ul>
|
||||
{{/if}}
|
||||
</form>
|
||||
|
||||
<!-- 公共搜索框内右侧 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_search_inside_right</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_search_inside_right_data) and is_array($plugins_view_common_search_inside_right_data)}}
|
||||
{{foreach $plugins_view_common_search_inside_right_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<!-- 公共搜索框右侧 -->
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ input.add,input.min{width:15px}
|
|||
#ai-topsearch { width:27%;height:26px;border:none;background: #d2364c none repeat scroll 0% 0%; color: #F5F5F2;font-size: 12px;cursor:pointer;border-radius:0px 0px; position: absolute;top: 0;right: 0;}
|
||||
.search-group:hover {border: 2px solid #ea304b !important;}
|
||||
.search-group:hover #ai-topsearch {background: #ea304b;}
|
||||
.search-hot-keywords { margin-top: 5px; height: 16px; overflow: hidden; display: none; }
|
||||
.search-hot-keywords { margin-top: 5px; height: 16px; overflow: hidden; display: none; padding-left: 2px; }
|
||||
.search-hot-keywords li { float: left; }
|
||||
.search-hot-keywords li:not(:last-child) { margin-right: 10px; }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue