diff --git a/application/extra/site.php b/application/extra/site.php deleted file mode 100755 index 7df4673..0000000 --- a/application/extra/site.php +++ /dev/null @@ -1,46 +0,0 @@ - '神帝', - 'beian' => '2', - 'cdnurl' => '', - 'version' => '1.0.2', - 'timezone' => 'Asia/Shanghai', - 'forbiddenip' => '', - 'languages' => - array ( - 'backend' => 'zh-cn', - 'frontend' => 'zh-cn', - ), - 'fixedpage' => 'dashboard', - 'categorytype' => - array ( - 'default' => 'Default', - 'page' => 'Page', - 'article' => 'Article', - 'test' => 'Test', - ), - 'configgroup' => - array ( - 'basic' => 'Basic', - 'email' => 'Email', - 'dictionary' => 'Dictionary', - 'user' => 'User', - 'example' => 'Example', - ), - 'mail_type' => '1', - 'mail_smtp_host' => 'smtp.qq.com', - 'mail_smtp_port' => '465', - 'mail_smtp_user' => '', - 'mail_smtp_pass' => '', - 'mail_verify_type' => '2', - 'mail_from' => '', - 'attachmentcategory' => - array ( - 'category1' => 'Category1', - 'category2' => 'Category2', - 'custom' => 'Custom', - ), - 'ip_check' => '0', - 'allowip' => '', -); diff --git a/public/assets/js/backend/order.js b/public/assets/js/backend/order.js index a2cfe54..39b09ce 100644 --- a/public/assets/js/backend/order.js +++ b/public/assets/js/backend/order.js @@ -647,10 +647,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function if (!isComposing) handleInput(e); }, 300)) .on('blur', function () { - // 如果还没有选择地址,且列表中有内容,则默认选择第一个 - if (!addressSelected) { + // 如果还没有选择地址,且列表中有内容,则默认选择第一个 + + // 如果还没有选择地址,且列表中有内容,则默认选择第一个 + if (!addressSelected && $('#suggestionList li').length > 0) { + $('#suggestionList li').first().trigger('mousedown'); + } + $('#suggestionList').hide(); - }}) + }) .on('focus', function () { // 如果还没有选择地址,且列表中有内容,则默认选择第一个 $('#suggestionList').show(); @@ -744,12 +749,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function const name = $(this).data('name'); const location = $(this).data('location'); // "经度,纬度" const [lng, lat] = location.split(','); - // console.log('click'); - $('#c-address').val(name); + console.log('click'); + // $('#c-address').val(name); $('#lng').val(lng); $('#lat').val(lat); // 隐藏提示列表 - $('#suggestionList').empty().hide(); + $('#suggestionList').hide(); selectedIndex = -1; addressSelected = true; });