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

Commit f2792ce4 authored by dongchun's avatar dongchun

修改后台bug

parent 4a62f797
......@@ -160,7 +160,7 @@
</div>
<div class="list_title">
<div class="hot_title">
商品列表<span class="goodsNumber">(1998)</span>
商品列表<span class="goodsNumber">(0)</span>
</div>
<div class="tags">
拖动排序
......@@ -293,6 +293,9 @@
function addBox () {
let str = '';
// console.log($('.goodsNumber').text()+1, 'sf')
if (!selectObj.spuId) {
return layer.msg('输出不能为空!')
}
let num = Number($('.goodsNumber').text()) + 1;
$('.goodsNumber').text(num)
str+= `<li id="item${Number($('.goodsNumber').text())-1}" class="info-element" data-spuId="${selectObj.spuId}">
......
......@@ -252,6 +252,9 @@
});
}
function nextBtn (params) {
if (!$("#endTime").val() || !$("#startTime").val() || !$("#selectShow").val()) {
return layer.msg('请输入必填项!')
}
let data = {
endTime: $("#endTime").val(),
startTime: $("#startTime").val(),
......
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