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

Commit a37a28cf authored by sangchunxi's avatar sangchunxi

功能阻塞2

parent 70c83a63
...@@ -309,13 +309,6 @@ ...@@ -309,13 +309,6 @@
$("#activeType").attr('value', 1) $("#activeType").attr('value', 1)
// 选择select
$('#activeType').change(function () {
activeTypeChangeVal = Number($(this).val()) // 1 2 3 4
currentUrl = affiliatedUrl[activeTypeChangeVal - 1] // 获取选中的,对应地址
})
// 监听 模糊搜索 // 监听 模糊搜索
let search = new searchSelect('#search', [], function(val) { let search = new searchSelect('#search', [], function(val) {
let _params = {} let _params = {}
...@@ -367,6 +360,21 @@ ...@@ -367,6 +360,21 @@
}) })
}) })
// 选择select
$('#activeType').change(function () {
activeTypeChangeVal = Number($(this).val()) // 1 2 3 4
currentUrl = affiliatedUrl[activeTypeChangeVal - 1] // 获取选中的,对应地址
search.empty().empty()
$('#search input').attr('value', '')
$('#search input').attr('data-id', '')
})
$('#search input').focus(function () {
search.empty().empty()
$('#search input').attr('value', '')
$('#search input').attr('data-id', '')
})
}) // init end }) // init end
getPageData() // 最开始加载 getPageData() // 最开始加载
......
...@@ -308,13 +308,6 @@ ...@@ -308,13 +308,6 @@
}); });
}); });
// 选择select
$('#activeType').change(function () {
activeTypeChangeVal = Number($(this).val()) // 1 2 3 4
currentUrl = affiliatedUrl[activeTypeChangeVal - 1] // 获取选中的,对应地址
$('#search input').attr('value', '')
})
// 监听 模糊搜索 // 监听 模糊搜索
let search = new searchSelect('#search', [], function(val) { let search = new searchSelect('#search', [], function(val) {
let _params = {} let _params = {}
...@@ -367,6 +360,21 @@ ...@@ -367,6 +360,21 @@
}) })
search.search(true) search.search(true)
// 选择select
$('#activeType').change(function () {
activeTypeChangeVal = Number($(this).val()) // 1 2 3 4
currentUrl = affiliatedUrl[activeTypeChangeVal - 1] // 获取选中的,对应地址
search.empty()
$('#search input').attr('value', '')
$('#search input').attr('data-id', '')
})
$('#search input').focus(function () {
search.empty().empty()
$('#search input').attr('value', '')
$('#search input').attr('data-id', '')
})
}) // init end }) // init end
getPageData() // 最开始加载 getPageData() // 最开始加载
......
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