记得上下班打卡 | 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
497d3ead
Commit
497d3ead
authored
Aug 10, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/0727RecommendActive' into 0727RecommendActive
parents
8dfbe68e
1e7b1e99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
21 deletions
+27
-21
add.html
...rces/templates/zhengzai/sweet/affiliatedActivity/add.html
+3
-6
edit.html
...ces/templates/zhengzai/sweet/affiliatedActivity/edit.html
+24
-15
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/affiliatedActivity/add.html
View file @
497d3ead
...
@@ -326,11 +326,12 @@
...
@@ -326,11 +326,12 @@
}
else
if
(
activeTypeChangeVal
==
2
)
{
// 组合购
}
else
if
(
activeTypeChangeVal
==
2
)
{
// 组合购
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
activeTypeChangeVal
==
3
)
{
// 演出
}
else
if
(
activeTypeChangeVal
==
3
)
{
// 演出
_params
[
'status'
]
=
'(3,6,7,9,10)'
_params
[
'status'
]
=
'(3,6,7,
8,
9,10)'
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
activeTypeChangeVal
==
4
)
{
// 商品
}
else
if
(
activeTypeChangeVal
==
4
)
{
// 商品
_params
[
'name'
]
=
val
_params
[
'name'
]
=
val
}
}
console
.
log
(
'searchSelect'
,
activeTypeChangeVal
,
_params
)
$
.
ajax
({
$
.
ajax
({
type
:
'get'
,
type
:
'get'
,
url
:
ctx
+
currentUrl
,
url
:
ctx
+
currentUrl
,
...
@@ -535,8 +536,6 @@
...
@@ -535,8 +536,6 @@
searchAjax
(
val
,
index
)
searchAjax
(
val
,
index
)
})
})
console
.
log
(
'varObj'
,
varObj
)
}
}
function
searchAjax
(
val
,
index
)
{
function
searchAjax
(
val
,
index
)
{
...
@@ -550,7 +549,7 @@
...
@@ -550,7 +549,7 @@
}
else
if
(
_selectVal
==
2
)
{
// 组合购
}
else
if
(
_selectVal
==
2
)
{
// 组合购
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
_selectVal
==
3
)
{
// 演出
}
else
if
(
_selectVal
==
3
)
{
// 演出
_params
[
'status'
]
=
'(3,6,7,9,10)'
_params
[
'status'
]
=
'(3,6,7,
8,
9,10)'
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
_selectVal
==
4
)
{
// 商品
}
else
if
(
_selectVal
==
4
)
{
// 商品
_params
[
'name'
]
=
val
_params
[
'name'
]
=
val
...
@@ -568,8 +567,6 @@
...
@@ -568,8 +567,6 @@
let
yan
=
res
.
value
||
[]
let
yan
=
res
.
value
||
[]
let
sp
=
res
.
data
||
[]
let
sp
=
res
.
data
||
[]
console
.
log
(
'_selectVal'
,
_selectVal
)
if
(
_selectVal
==
1
)
{
if
(
_selectVal
==
1
)
{
_data
=
nft
?.
map
(
item
=>
{
// 组装返回nft数据
_data
=
nft
?.
map
(
item
=>
{
// 组装返回nft数据
return
{
id
:
item
.
spuId
,
value
:
item
.
spuName
}
return
{
id
:
item
.
spuId
,
value
:
item
.
spuName
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/affiliatedActivity/edit.html
View file @
497d3ead
...
@@ -311,7 +311,6 @@
...
@@ -311,7 +311,6 @@
$
(
'#activeType'
).
change
(
function
()
{
$
(
'#activeType'
).
change
(
function
()
{
activeTypeChangeVal
=
Number
(
$
(
this
).
val
())
// 1 2 3 4
activeTypeChangeVal
=
Number
(
$
(
this
).
val
())
// 1 2 3 4
currentUrl
=
affiliatedUrl
[
activeTypeChangeVal
-
1
]
// 获取选中的,对应地址
currentUrl
=
affiliatedUrl
[
activeTypeChangeVal
-
1
]
// 获取选中的,对应地址
})
})
// 监听 模糊搜索
// 监听 模糊搜索
...
@@ -323,30 +322,41 @@
...
@@ -323,30 +322,41 @@
}
else
if
(
activeTypeChangeVal
==
2
)
{
// 组合购
}
else
if
(
activeTypeChangeVal
==
2
)
{
// 组合购
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
activeTypeChangeVal
==
3
)
{
// 演出
}
else
if
(
activeTypeChangeVal
==
3
)
{
// 演出
_params
[
'status'
]
=
'(3,6,7,9,10)'
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
_params
[
'status'
]
=
'(3,6,7,8,9,10)'
}
else
if
(
activeTypeChangeVal
==
4
)
{
// 商品
}
else
if
(
activeTypeChangeVal
==
4
)
{
// 商品
_params
[
'name'
]
=
val
_params
[
'name'
]
=
val
// _params['title'] = val
}
}
$
.
ajax
({
$
.
ajax
({
type
:
'get'
,
type
:
'get'
,
url
:
ctx
+
currentUrl
,
url
:
ctx
+
currentUrl
,
contentType
:
"application/json;charset=UTF-8"
,
contentType
:
"application/json;charset=UTF-8"
,
data
:
_params
,
data
:
_params
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
forData
=
activeTypeChangeVal
===
3
?
res
.
value
:
res
.
data
let
_data
=
[]
let
_data
=
forData
.
map
(
item
=>
{
let
nft
=
res
.
data
||
[]
if
(
activeTypeChangeVal
===
1
)
{
// NFT
let
group
=
res
.
data
||
[]
let
yan
=
res
.
value
||
[]
let
sp
=
res
.
data
||
[]
if
(
activeTypeChangeVal
==
1
)
{
_data
=
nft
?.
map
(
item
=>
{
// 组装返回nft数据
return
{
id
:
item
.
spuId
,
value
:
item
.
spuName
}
return
{
id
:
item
.
spuId
,
value
:
item
.
spuName
}
}
else
if
(
activeTypeChangeVal
===
2
)
{
})
}
else
if
(
activeTypeChangeVal
==
2
)
{
_data
=
group
?.
map
(
item
=>
{
return
{
id
:
item
.
mixId
,
value
:
item
.
sellName
}
return
{
id
:
item
.
mixId
,
value
:
item
.
sellName
}
}
else
if
(
activeTypeChangeVal
===
3
)
{
})
}
else
if
(
activeTypeChangeVal
==
3
)
{
_data
=
yan
?.
map
(
item
=>
{
return
{
id
:
item
.
performancesId
,
value
:
item
.
title
}
return
{
id
:
item
.
performancesId
,
value
:
item
.
title
}
}
else
if
(
activeTypeChangeVal
===
4
)
{
// 商品
})
}
else
if
(
activeTypeChangeVal
==
4
)
{
_data
=
sp
?.
map
(
item
=>
{
return
{
id
:
item
.
spuId
,
value
:
item
.
name
}
return
{
id
:
item
.
spuId
,
value
:
item
.
name
}
}
}
)
}
)
}
search
.
update
(
_data
)
search
.
update
(
_data
)
}
}
...
@@ -375,6 +385,8 @@
...
@@ -375,6 +385,8 @@
$
(
'#activeType'
).
find
(
`option[value=
${
res
.
activeType
}
]`
).
attr
(
'selected'
,
true
)
$
(
'#activeType'
).
find
(
`option[value=
${
res
.
activeType
}
]`
).
attr
(
'selected'
,
true
)
activeTypeChangeVal
=
res
.
activeType
currentUrl
=
affiliatedUrl
[
res
.
activeType
-
1
]
currentUrl
=
affiliatedUrl
[
res
.
activeType
-
1
]
$
(
'#search input'
).
attr
(
'value'
,
res
.
name
)
$
(
'#search input'
).
attr
(
'value'
,
res
.
name
)
...
@@ -569,8 +581,6 @@
...
@@ -569,8 +581,6 @@
searchAjax
(
val
,
index
)
searchAjax
(
val
,
index
)
})
})
console
.
log
(
'varObj'
,
varObj
)
}
}
function
searchAjax
(
val
,
index
)
{
function
searchAjax
(
val
,
index
)
{
...
@@ -584,7 +594,7 @@
...
@@ -584,7 +594,7 @@
}
else
if
(
_selectVal
==
2
)
{
// 组合购
}
else
if
(
_selectVal
==
2
)
{
// 组合购
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
_selectVal
==
3
)
{
// 演出
}
else
if
(
_selectVal
==
3
)
{
// 演出
_params
[
'status'
]
=
'(3,6,7,9,10)'
_params
[
'status'
]
=
'(3,6,7,
8,
9,10)'
_params
[
'title'
]
=
val
_params
[
'title'
]
=
val
}
else
if
(
_selectVal
==
4
)
{
// 商品
}
else
if
(
_selectVal
==
4
)
{
// 商品
_params
[
'name'
]
=
val
_params
[
'name'
]
=
val
...
@@ -645,7 +655,6 @@
...
@@ -645,7 +655,6 @@
status
:
Number
(
$
(
"#status"
).
find
(
"option:selected"
).
val
())
status
:
Number
(
$
(
"#status"
).
find
(
"option:selected"
).
val
())
}
}
if
(
!
_params
.
activeName
)
{
if
(
!
_params
.
activeName
)
{
layer
.
msg
(
'请填写活动名称'
)
layer
.
msg
(
'请填写活动名称'
)
return
return
...
...
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