记得上下班打卡 | 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
47dce523
Commit
47dce523
authored
Aug 12, 2022
by
sangchunxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制
parent
8db1b012
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
add.html
...rces/templates/zhengzai/sweet/affiliatedActivity/add.html
+7
-1
edit.html
...ces/templates/zhengzai/sweet/affiliatedActivity/edit.html
+6
-2
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/affiliatedActivity/add.html
View file @
47dce523
...
...
@@ -491,13 +491,19 @@
// 删除list item
function
removeListItem
(
index
)
{
console
.
log
(
'removeListItem'
,
index
)
let
evryGroup
=
$
(
'#addClassify2'
).
find
(
$
(
'.addAvatarItem'
))
console
.
log
(
evryGroup
.
length
,
index
)
if
(
evryGroup
.
length
<=
1
)
{
layer
.
msg
(
'至少保留一个'
)
}
else
{
$
(
`#addClassify2 .addAvatarItem:eq(
${
index
}
)`
).
parent
().
remove
()
$
.
modal
.
loading
(
"请稍等..."
);
setTimeout
(
function
()
{
$
.
modal
.
closeLoading
();
},
500
)
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/affiliatedActivity/edit.html
View file @
47dce523
...
...
@@ -493,7 +493,7 @@
</div>
</div>
<div><a href="#" class="pull-right btn btn-xs btn-white" style="margin-top: 5px;background: none;border: none;"><i class="fa fa-navicon"></i></a></div>
<div style="position: relative;"><i class="fa fa-remove" onclick="removeListItem(
${
dynamicDomLength
}
)" style="margin-top: 8px; position: absolute; left: 10px;"></i></div>
<div style="position: relative;"><i class="fa fa-remove" onclick="removeListItem(
${
dynamicDomLength
+
1
}
)" style="margin-top: 8px; position: absolute; left: 10px;"></i></div>
</li>`
...
...
@@ -525,13 +525,17 @@
// 删除list item
function
removeListItem
(
index
)
{
console
.
log
(
'removeListItem'
,
index
)
let
evryGroup
=
$
(
'#addClassify2'
).
find
(
$
(
'.addAvatarItem'
))
if
(
evryGroup
.
length
<=
1
)
{
layer
.
msg
(
'至少保留一个'
)
}
else
{
$
(
`#addClassify2 .addAvatarItem:eq(
${
index
}
)`
).
parent
().
remove
()
$
.
modal
.
loading
(
"请稍等..."
);
setTimeout
(
function
()
{
$
.
modal
.
closeLoading
();
},
500
)
}
}
...
...
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