记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
2e1f9c31
Commit
2e1f9c31
authored
Aug 10, 2022
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改小问题
parent
94dc7073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
addNewActivity.html
...templates/zhengzai/store/placingOrder/addNewActivity.html
+13
-8
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/placingOrder/addNewActivity.html
View file @
2e1f9c31
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</span>
</span>
<div
class=
"activityStore"
>
<div
class=
"activityStore"
>
<button
class=
"btn btn-primary"
onclick=
"addItem()"
style=
"margin-bottom: 12px;"
>
新增
</button>
<button
class=
"btn btn-primary"
onclick=
"addItem()"
style=
"margin-bottom: 12px;"
>
新增
</button>
<div
class=
"activityStore_item"
id=
"activityStore_item"
data-newTag=
"1"
>
<div
class=
"activityStore_item"
id=
"activityStore_item
1
"
data-newTag=
"1"
>
<div
class=
"input-group"
style=
"margin-right: 12px;"
>
<div
class=
"input-group"
style=
"margin-right: 12px;"
>
<input
type=
"text"
class=
"form-control storeList item1"
placeholder=
"搜索店铺名称"
>
<input
type=
"text"
class=
"form-control storeList item1"
placeholder=
"搜索店铺名称"
>
<div
class=
"input-group-btn"
>
<div
class=
"input-group-btn"
>
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
</div>
</div>
</div>
</div>
<input
type=
"text"
class=
"layui-input form-control timeSp"
id=
"startTime"
autocomplete=
"off"
placeholder=
"配置活动时间"
>
<input
type=
"text"
class=
"layui-input form-control timeSp"
id=
"startTime"
autocomplete=
"off"
placeholder=
"配置活动时间"
>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"delItem('1')"
>
删除
</button>
</div>
</div>
</div>
</div>
...
@@ -238,12 +238,10 @@
...
@@ -238,12 +238,10 @@
</ul>
</ul>
</div>
</div>
</div>
</div>
<input type="text" class="layui-input form-control timeSp startTime
${
count
}
itemDisabled" id="startTime" value="
${
item
.
showTime
}
" autocomplete="off" placeholder="配置活动时间">`
<input type="text" class="layui-input form-control timeSp startTime
${
count
}
itemDisabled" id="startTime" value="
${
item
.
showTime
}
" autocomplete="off" placeholder="配置活动时间">
if
(
count
!=
2
)
{
<button type="button" class="btn btn-danger" onclick="delItem('
${
count
}
')">删除</button>
body
+=
`<button type="button" class="btn btn-danger" onclick="delItem('
${
count
}
')">删除</button>`
}
body
+=
`
</div>`
</div>`
}
else
{
}
else
{
body
+=
`<div class="activityStore_item" id="activityStore_item
${
count
}
" data-newTag="1">
body
+=
`<div class="activityStore_item" id="activityStore_item
${
count
}
" data-newTag="1">
<div class="input-group" style="margin-right: 12px;">
<div class="input-group" style="margin-right: 12px;">
...
@@ -270,7 +268,14 @@
...
@@ -270,7 +268,14 @@
});
});
}
}
function
delItem
(
num
)
{
function
delItem
(
num
)
{
// let domData = $(".activityStore_item");
let
domData
=
$
(
".activityStore_item"
);
let
arr
=
[];
Array
.
prototype
.
forEach
.
call
(
domData
,
function
(
item
,
index
){
if
(
!
item
.
getAttribute
(
'data-id'
))
{
arr
.
push
(
item
)
}
})
if
(
arr
.
length
<
2
)
return
layer
.
msg
(
'最少保留一个店铺!'
)
// console.log(domData.length)
// console.log(domData.length)
$
(
'#activityStore_item'
+
num
+
''
).
attr
(
'data-id'
,
1
);
$
(
'#activityStore_item'
+
num
+
''
).
attr
(
'data-id'
,
1
);
$
(
'#activityStore_item'
+
num
+
''
).
css
(
'display'
,
'none'
);
$
(
'#activityStore_item'
+
num
+
''
).
css
(
'display'
,
'none'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment