记得上下班打卡 | git大法好,push需谨慎

Commit 5dce2506 authored by sangchunxi's avatar sangchunxi

推荐活动input调整

parent f1093bab
...@@ -385,6 +385,11 @@ ...@@ -385,6 +385,11 @@
createListenerSearch(i + 1) createListenerSearch(i + 1)
$(`#listActiveType${i+1}`).change(function () { $(`#listActiveType${i+1}`).change(function () {
$('#listRemoteSearch' + (i + 1) + ' input').attr('value', '') $('#listRemoteSearch' + (i + 1) + ' input').attr('value', '')
})
$('#listRemoteSearch' + (i + 1) + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
}) })
} }
}, 500) }, 500)
...@@ -476,6 +481,10 @@ ...@@ -476,6 +481,10 @@
$(`#listActiveType${count}`).change(function () { $(`#listActiveType${count}`).change(function () {
$('#listRemoteSearch' + (count) + ' input').attr('value', '') $('#listRemoteSearch' + (count) + ' input').attr('value', '')
}) })
$('#listRemoteSearch' + (count) + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
})
}, 800) }, 800)
...@@ -649,7 +658,7 @@ ...@@ -649,7 +658,7 @@
return return
} }
let idList = listData.filter(item => item.recommendBindId == undefined) let idList = listData.filter(item => !item.recommendBindId)
if (idList.length >= 1) { if (idList.length >= 1) {
layer.msg('推荐活动需填写完整') layer.msg('推荐活动需填写完整')
......
...@@ -413,6 +413,10 @@ ...@@ -413,6 +413,10 @@
$(`#listActiveType${i+1}`).change(function () { $(`#listActiveType${i+1}`).change(function () {
$('#listRemoteSearch' + (i + 1) + ' input').attr('value', '') $('#listRemoteSearch' + (i + 1) + ' input').attr('value', '')
}) })
$('#listRemoteSearch' + (i + 1) + ' input').focus(function (e) {
$(this).val('')
$(this).attr('data-id', '')
})
} }
}, 500) }, 500)
...@@ -512,6 +516,10 @@ ...@@ -512,6 +516,10 @@
$(`#listActiveType${count}`).change(function () { $(`#listActiveType${count}`).change(function () {
$('#listRemoteSearch' + count + ' input').attr('value', '') $('#listRemoteSearch' + count + ' input').attr('value', '')
}) })
$('#listRemoteSearch' + count + ' input').focus(function () {
$(this).val('')
$(this).attr('data-id', '')
})
}, 800) }, 800)
...@@ -549,7 +557,7 @@ ...@@ -549,7 +557,7 @@
}) })
}) })
let idList = listData.filter(item => item.recommendBindId == undefined) let idList = listData.filter(item => !item.recommendBindId)
if (idList.length >= 1) { if (idList.length >= 1) {
layer.msg('推荐活动需填写完整') layer.msg('推荐活动需填写完整')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment