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

Commit 183839ff authored by sangchunxi's avatar sangchunxi

推荐活动edit 2

parent 8cebb2bd
......@@ -382,7 +382,7 @@
function searchAjax (val, index) {
let _selectVal = $("#listActiveType" + index).find("option:selected").val() // 当前子select
console.log('ajax', _selectVal)
if (_selectVal) {
let _params = {}
if (_selectVal === 1) {
_params['type'] = 1
......@@ -398,7 +398,7 @@
}
$.ajax({
type: 'get',
url: ctx + affiliatedUrl[_selectVal - 1],
url: ctx + affiliatedUrl[_selectVal],
contentType: "application/json;charset=UTF-8",
data: _params,
success: function(res) {
......@@ -420,6 +420,8 @@
})
}
}
// 保存/更新
function save () {
......
......@@ -420,6 +420,8 @@
// 监听 模糊搜索 list
let listRemoteSearch1 = new searchSelect('#listRemoteSearch1', [], function(val) {
console.log('activeTypeChangeValChild', activeTypeChangeValChild)
let _params = {}
if (activeTypeChangeValChild === 1) {
_params['type'] = 1
......@@ -540,6 +542,9 @@
// 设置 代入的 点击
$('#listActiveType1').find(`option[value=${index}]`).attr('selected', true)
activeTypeChangeValChild = index
currentChildUrl = affiliatedUrl[activeTypeChangeValChild]
}
......
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