ios搜索兼容优化,更多细节优化

feat/task1-c-wallet
devil_gong 2019-09-10 21:03:03 +08:00
parent bf8a67e97a
commit 20fcc73d82
6 changed files with 7 additions and 12 deletions

View File

@ -44,13 +44,6 @@ class Ueditor extends Common
*/ */
public function Index() public function Index()
{ {
// 是否ajax请求
if(!IS_AJAX)
{
$this->error('非法访问');
}
// 调用附件服务层
$ret = UeditorService::Run(input()); $ret = UeditorService::Run(input());
if($ret['code'] == 0) if($ret['code'] == 0)
{ {

View File

@ -1,5 +1,5 @@
<!-- commom html --> <!-- commom html -->
<textarea id="upload-editor-view" data-url="{{:MyUrl('index/ueditor/index', ['path_type'=>empty($editor_path_type) ? 'common' : $editor_path_type])}}" style="display: none;"></textarea> <textarea id="upload-editor-view" data-url="{{if !empty($user)}}{{:MyUrl('index/ueditor/index', ['path_type'=>empty($editor_path_type) ? 'common' : $editor_path_type])}}{{/if}}" style="display: none;"></textarea>
<!-- footer start --> <!-- footer start -->
{{if !isset($is_footer) or $is_footer eq 1}} {{if !isset($is_footer) or $is_footer eq 1}}

View File

@ -44,7 +44,7 @@
<div class="search-container am-u-sm-12 am-u-md-12 am-padding-left-0 am-padding-right-0" data-category-id="{{$params.category_id}}"> <div class="search-container am-u-sm-12 am-u-md-12 am-padding-left-0 am-padding-right-0" data-category-id="{{$params.category_id}}">
<div class="theme-popover"> <div class="theme-popover">
<ul class="select"> <ul class="select am-cf">
<p class="title-tips"> <p class="title-tips">
<span>筛选出</span> <span>筛选出</span>
<strong>...</strong> <strong>...</strong>

View File

@ -93,7 +93,7 @@ class UeditorService
{ {
if(preg_match("/^[\w_]+$/", $params['callback'])) if(preg_match("/^[\w_]+$/", $params['callback']))
{ {
return DataReturn(htmlspecialchars($params['callback']) . '(' . self::$current_result . ')', -1); return DataReturn(htmlspecialchars($params['callback']), -1);
} else { } else {
return DataReturn('callback参数不合法', -1); return DataReturn('callback参数不合法', -1);
} }

View File

@ -1,7 +1,7 @@
.search-container { float: none; } .search-container { float: none; }
.items img{ width:100%;} .items img{ width:100%;}
.items .price strong{ font-size: 14px; } .items .price strong{ font-size: 14px; }
.theme-popover {z-index: 1011;overflow:hidden;background:#fff; width: 100%; } .theme-popover {z-index: 1011;background:#fff; width: 100%; }
.sort-nav a:hover, .sort-nav a:focus { color: #d2364c; } .sort-nav a:hover, .sort-nav a:focus { color: #d2364c; }
.select .title-tips { font-size: 12px; color: #888; } .select .title-tips { font-size: 12px; color: #888; }
.select .title-tips strong { font-weight: 500; color: #fe90a0; } .select .title-tips strong { font-weight: 500; color: #fe90a0; }

View File

@ -100,7 +100,9 @@ $(function()
$(".theme-popover").css({"position":"static", "top":0}); $(".theme-popover").css({"position":"static", "top":0});
} }
}); });
$(document).on("click", ".theme-popover-mask", function()
// 关闭弹层
$('.theme-popover-mask').on('click', function()
{ {
$(".dd-conent").slideUp(300); $(".dd-conent").slideUp(300);
$(".theme-popover-mask").hide(); $(".theme-popover-mask").hide();