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

Commit 2162af19 authored by dongchun's avatar dongchun

删除接口调试

parent 40713420
......@@ -113,7 +113,7 @@
</span>
<div class="activityStore">
<button class="btn btn-primary" onclick="addItem()" style="margin-bottom: 12px;">新增</button>
<div class="activityStore_item" id="activityStore_item1" data-newTag="1">
<div class="activityStore_item activityStore_item_first" id="activityStore_item1" data-newTag="1">
<div class="input-group" style="margin-right: 12px;">
<input type="text" class="form-control storeList item1" placeholder="搜索店铺名称">
<div class="input-group-btn">
......@@ -178,7 +178,7 @@
$("#endTime").val(basisData.data.endTime);
$(".content_item").show();
$(".add_footer").show();
$("#activityStore_item").remove();
$(".activityStore_item_first").remove();
data.forEach((item,index)=>{
addItem(item)
})
......@@ -276,9 +276,26 @@
}
})
if (arr.length < 2) return layer.msg('最少保留一个店铺!')
$.modal.loading("请稍等...");
// console.log(domData.length)
$('#activityStore_item'+num+'').attr('data-id', 1);
$('#activityStore_item'+num+'').css('display', 'none');
console.log(document.querySelector('#activityStore_item'+num+'').querySelector('.storeList').getAttribute('data-id'), '????')
let storeId = document.querySelector('#activityStore_item'+num+'').querySelector('.storeList').getAttribute('data-id');
if (storeId) {
let data = {};
data.marketId = marketId;
data.storeId = storeId;
console.log(data, 'dsasadasd')
promiseMethods('/goblin/marketing/zhengzai/store/del','post',data).then(res => {
$.modal.closeLoading();
if (res.code == 0) {
$('#activityStore_item'+num+'').remove();
layer.msg('修改活动成功,请配置活动对应店铺!')
} else {
layer.msg(res.message)
}
})
};
}
function nextBtn (params) {
if (!$("#selectShow").attr('data-id')) {
......@@ -330,17 +347,6 @@
obj['showTime'] = item.querySelector('.timeSp').value;
obj['storeId'] = item.querySelector('.storeList').getAttribute('data-id');
if (obj['storeId']) {
console.log(item.getAttribute('data-id'), 'dasasd')
if (item.getAttribute('data-id')) {
console.log('??????????')
obj['delTag'] = 1;
} else {
obj['delTag'] = 0;
}
} else {
obj['delTag'] = 0;
}
if (!item.querySelector('.timeSp').value || !item.querySelector('.storeList').getAttribute('data-id')) {
flag = true;
}
......
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