记得上下班打卡 | 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
1186e597
Commit
1186e597
authored
Jan 10, 2022
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交部分逻辑
parent
815e55c7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
926 additions
and
58 deletions
+926
-58
index.html
...ces/templates/zhengzai/store/goodsIntersection/index.html
+272
-0
RubikArea.html
...resources/templates/zhengzai/store/homeSet/RubikArea.html
+152
-19
kingArea.html
.../resources/templates/zhengzai/store/homeSet/kingArea.html
+241
-14
searchStore.html
...sources/templates/zhengzai/store/homeSet/searchStore.html
+62
-12
topBanner.html
...resources/templates/zhengzai/store/homeSet/topBanner.html
+199
-13
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/goodsIntersection/index.html
0 → 100644
View file @
1186e597
This diff is collapsed.
Click to expand it.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/RubikArea.html
View file @
1186e597
This diff is collapsed.
Click to expand it.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/kingArea.html
View file @
1186e597
This diff is collapsed.
Click to expand it.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/searchStore.html
View file @
1186e597
...
@@ -97,13 +97,13 @@
...
@@ -97,13 +97,13 @@
</div>
</div>
<div
class=
"add_tags"
>
<div
class=
"add_tags"
>
<div>
<div>
<input
type=
"text"
class=
"layui-input form-control"
id=
"test1"
style=
"margin-left: 10px;"
placeholder=
"
请选择时间
"
><button
type=
"button"
class=
"btn btn-success"
onclick=
"addItems()"
>
添加
</button>
<input
type=
"text"
class=
"layui-input form-control"
id=
"test1"
style=
"margin-left: 10px;"
placeholder=
"
输入热门关键词
"
><button
type=
"button"
class=
"btn btn-success"
onclick=
"addItems()"
>
添加
</button>
</div>
</div>
<p
style=
"margin-left: 10px;"
>
允许添加多个关键词,默认显示第一个
</p>
<p
style=
"margin-left: 10px;"
>
允许添加多个关键词,默认显示第一个
</p>
</div>
</div>
<div
class=
"hot_set"
>
<div
class=
"hot_set"
>
热词设置:滚动
热词设置:滚动
<p><input
type=
"text"
class=
"layui-input form-control"
id=
"t
est1
"
style=
"margin-left: 10px;"
placeholder=
"请选择时间"
>
M
</p>
<p><input
type=
"text"
class=
"layui-input form-control"
id=
"t
ime
"
style=
"margin-left: 10px;"
placeholder=
"请选择时间"
>
M
</p>
</div>
</div>
<div
class=
"footer_btn"
>
<div
class=
"footer_btn"
>
<button
type=
"button"
class=
"btn btn-success"
onclick=
"save()"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-success"
onclick=
"save()"
>
保存
</button>
...
@@ -122,25 +122,75 @@
...
@@ -122,25 +122,75 @@
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
var
prefix2
=
ctx
+
"local"
;
var
prefix2
=
ctx
+
"local"
;
let
num
=
0
;
let
num
=
0
;
function
goArea
(
num
)
{
let
hotArr
=
[];
console
.
log
(
num
)
let
mid
=
0
;
switch
(
num
)
{
let
createTime
=
''
;
case
5
:
let
hotWordId
=
''
;
$
.
modal
.
openTab
(
'商品搜索'
,
prefix2
+
"/searchStore?id="
+
1212
)
let
updateTime
=
''
;
break
;
$
(
function
(){
}
promiseMethods
(
'/hotWord/list'
,
'post'
).
then
(
res
=>
{
}
let
data
=
res
.
data
[
0
];
mid
=
data
.
mid
;
createTime
=
data
.
createTime
;
hotWordId
=
data
.
hotWordId
;
updateTime
=
data
.
updateTime
;
let
hotStr
=
data
.
word
.
split
(
','
);
console
.
log
(
hotStr
,
'hotStr'
)
for
(
var
i
=
0
;
i
<
hotStr
.
length
;
i
++
)
{
console
.
log
(
1
,
'1'
)
num
++
let
str
=
`<div class="tag" id="item
${
num
}
">
${
hotStr
[
i
]}
<span onclick="delTags('
${
num
}
')">x</span></div>`
;
hotArr
.
push
(
hotStr
[
i
])
$
(
".tags"
).
append
(
str
);
}
})
})
function
addItems
()
{
function
addItems
()
{
if
(
!
$
(
"#test1"
).
val
())
{
if
(
!
$
(
"#test1"
).
val
())
{
return
layer
.
msg
(
'输入内容不能为空!'
)
return
layer
.
msg
(
'输入内容不能为空!'
)
}
}
num
++
num
++
let
str
=
`<div class="tag">
${
$
(
"#test1"
).
val
()}
<span onclick="delTags('
${
num
}
')">x</span></div>`
;
let
str
=
`<div class="tag" id="item
${
num
}
">
${
$
(
"#test1"
).
val
()}
<span onclick="delTags('
${
num
}
')">x</span></div>`
;
hotArr
.
push
(
$
(
'#test1'
).
val
())
$
(
".tags"
).
append
(
str
);
$
(
".tags"
).
append
(
str
);
$
(
"#test1"
).
val
(
''
);
$
(
"#test1"
).
val
(
''
);
}
}
function
delTags
(
num
)
{
let
name
=
$
(
"#item"
+
num
+
""
).
text
().
slice
(
0
,
$
(
"#item"
+
num
+
""
).
text
().
length
-
1
)
hotArr
.
splice
(
hotArr
.
indexOf
(
name
),
1
);
$
(
"#item"
+
num
+
""
).
remove
();
}
function
save
()
{
function
save
()
{
refreshItem
()
let
data
=
{
"changeTime"
:
$
(
'#time'
).
val
()
*
60
,
"changeType"
:
1
,
"createTime"
:
createTime
?
createTime
:
""
,
"delTag"
:
0
,
"hotWordId"
:
hotWordId
?
hotWordId
:
""
,
"indexs"
:
1
,
"mid"
:
mid
?
mid
:
0
,
"status"
:
''
,
"updateTime"
:
updateTime
?
updateTime
:
''
,
"word"
:
hotArr
.
toString
()
}
console
.
log
(
data
,
'data'
)
promiseMethods
(
'/hotWord/updateOrCreate'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
console
.
log
(
res
,
121212
)
})
// refreshItem()
}
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
$
.
ajax
({
url
,
type
,
data
,
contentType
,
success
:
function
(
res
)
{
resolve
(
res
);
}
})
})
}
}
</script>
</script>
</body>
</body>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/topBanner.html
View file @
1186e597
This diff is collapsed.
Click to expand it.
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