|
@@ -27,7 +27,7 @@ $(function(){
|
|
|
//添加按钮
|
|
|
$(".addKeyWord i").on('click',function(){
|
|
|
sessionStorage.removeItem("keyWord");
|
|
|
- window.location.href="/jyapp/front/dataExport/keyWordInput";
|
|
|
+ window.location.href="/front/wx_dataExport/keyWordInput";
|
|
|
});
|
|
|
|
|
|
// 添加keyWords检查输入框内是否有文字,如果有才能点击添加按钮
|
|
@@ -234,7 +234,6 @@ $(function(){
|
|
|
let oSpan = e.target.parentNode.nextElementSibling.children[0];
|
|
|
let val = $(oSpan).val();
|
|
|
|
|
|
- // alert(oSpan.documentElement.scrollTop)
|
|
|
var keyWord = $(this).prev().children().find(".key").text();
|
|
|
for(var i in keyWordArr){
|
|
|
if(keyWordArr[i].keyWord === keyWord){
|
|
@@ -269,6 +268,15 @@ $(function(){
|
|
|
$(oSpan).val('').focus().val(val);
|
|
|
$(".addKeyWord").hide();
|
|
|
});
|
|
|
+ //
|
|
|
+ //防止键盘把当前输入框给挡住
|
|
|
+ $('input[type="text"],textarea').focus(function () {
|
|
|
+ var target = this;
|
|
|
+ setTimeout(function(){
|
|
|
+ target.scrollIntoViewIfNeeded();
|
|
|
+ },400);
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
// 编辑删除
|
|
|
$('.showKeyWord').on('click', '.deleteKey', function(e) {
|