记得上下班打卡 | 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
2162af19
Commit
2162af19
authored
Aug 11, 2022
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除接口调试
parent
40713420
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
addNewActivity.html
...templates/zhengzai/store/placingOrder/addNewActivity.html
+21
-15
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/placingOrder/addNewActivity.html
View file @
2162af19
...
...
@@ -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
;
}
...
...
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