|
|
|
@ -70,15 +70,6 @@ Page({ |
|
|
|
onFocusChange: function(){ |
|
|
|
this.setData({ focus: true }) |
|
|
|
}, |
|
|
|
onBlurChange: function(){ |
|
|
|
if(util.isEmpty(this.data.form.searchKey)){ |
|
|
|
return |
|
|
|
} |
|
|
|
if(!util.isEmpty(this.data.form.searchKey) && this.data.keyIndex && this.data.focus){ |
|
|
|
return |
|
|
|
} |
|
|
|
this.setData({ focus: false }) |
|
|
|
}, |
|
|
|
onTabChange: function({detail}){ |
|
|
|
if(this.data.tabIndex == Number(detail.index)){ |
|
|
|
return |
|
|
|
|