@@ -340,9 +340,13 @@ var EntSearch = {
$("#entsearchPage .jydqsure").removeClass("jydqsure_active");
EntSearch.resetSx();
if(flag){
- setTimeout(function(){
+ if(mySysIsIos()){
$("#entsearchPage #ent_searchinput").focus();
- },100);
+ }else{
+ setTimeout(function(){
+ $("#entsearchPage #ent_searchinput").focus();
+ },100);
+ }
}
},
afterFocus: function(){
@@ -516,10 +516,15 @@ var SuperSearch = {
$("#supersearchPage input[name=super_searchinput]").val("");
var thisClass = this;
$("#supersearchPage input[name=super_searchinput]").focus();
thisClass.afterFocus();
+ $("#supersearchPage input[name=super_searchinput]").focus();
+ thisClass.afterFocus();
this.getIndustry();
this.resetSx();//重置筛选
@@ -356,6 +356,9 @@ function moveEnd(obj) {
obj.selectionStart = obj.selectionEnd = len;
+function mySysIsIos(){
+ return !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+}
$(function(){
//自定义tap
$(document).on("touchstart", function(e) {
@@ -333,9 +333,13 @@ var EntSearch = {
@@ -501,10 +501,15 @@ var SuperSearch = {