|
@@ -1,5 +1,5 @@
|
|
|
$(function(){
|
|
|
- tel={
|
|
|
+ var tel={
|
|
|
//总入口
|
|
|
init:function(){
|
|
|
var that=this;
|
|
@@ -12,7 +12,7 @@ $(function(){
|
|
|
that.blurValidatetel('keyup');
|
|
|
that.blurValidatetel('blur');
|
|
|
that.message('#message');
|
|
|
- that.focu();
|
|
|
+ that.focu(document);
|
|
|
},
|
|
|
|
|
|
//弹出信息
|
|
@@ -222,9 +222,12 @@ $(function(){
|
|
|
},
|
|
|
//收起键盘
|
|
|
focu:function(id){
|
|
|
- $(document).on('tap',function(){
|
|
|
+ $(id).on('tap',function(event){
|
|
|
+ var eventName=event.target.localName;
|
|
|
+ if(eventName.indexOf('input')!==-1||eventName.indexOf('button')!==-1){
|
|
|
+ return;
|
|
|
+ }
|
|
|
$('input').blur();
|
|
|
- //return false;
|
|
|
})
|
|
|
}
|
|
|
};
|