记得上下班打卡 | 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
573cd7b2
Commit
573cd7b2
authored
Jan 11, 2022
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺审核及首页设置逻辑提交
parent
8e63c40a
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
685 additions
and
137 deletions
+685
-137
info.html
.../main/resources/templates/zhengzai/goblin/store/info.html
+255
-7
store.html
...main/resources/templates/zhengzai/goblin/store/store.html
+149
-8
index.html
...ces/templates/zhengzai/store/goodsIntersection/index.html
+1
-1
RubikArea.html
...resources/templates/zhengzai/store/homeSet/RubikArea.html
+22
-11
carefullyGoods.html
...rces/templates/zhengzai/store/homeSet/carefullyGoods.html
+86
-33
index.html
...ain/resources/templates/zhengzai/store/homeSet/index.html
+2
-3
kingArea.html
.../resources/templates/zhengzai/store/homeSet/kingArea.html
+30
-15
topBanner.html
...resources/templates/zhengzai/store/homeSet/topBanner.html
+127
-50
activityList.html
...s/templates/zhengzai/store/placingOrder/activityList.html
+10
-6
index.html
...in/resources/templates/zhengzai/store/tagStore/index.html
+3
-3
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/goblin/store/info.html
View file @
573cd7b2
This diff is collapsed.
Click to expand it.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/goblin/store/store.html
View file @
573cd7b2
...
...
@@ -2,6 +2,110 @@
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('店铺列表')"
/>
<style>
.layui-layer-btn0
,
.layui-layer-btn1
{
font-size
:
12px
;
font-weight
:
normal
;
margin
:
0
3px
;
margin-right
:
7px
;
margin-left
:
7px
;
padding
:
0
15px
;
color
:
#fff
;
border
:
1px
solid
#0064b6
;
background
:
#0071ce
;
border-radius
:
3px
;
display
:
inline-block
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
vertical-align
:
middle
;
background-repeat
:
no-repeat
;
text-decoration
:
none
;
outline
:
none
;
-moz-box-sizing
:
content-box
;
-webkit-box-sizing
:
content-box
;
box-sizing
:
content-box
;
}
.layui-layer-btn1
{
color
:
#404a58
;
border
:
1px
solid
#c0c4cd
;
background
:
#fff
;
border-radius
:
3px
;
margin-left
:
0
;
}
.layui-layer-btn0
:hover
{
color
:
#fff
;
}
#addClassify
{
padding
:
0
;
display
:
none
;
width
:
540px
;
padding-top
:
20px
;
}
#addClassify
.selectClassify
{
display
:
flex
;
align-items
:
center
;
padding
:
0
20px
;
}
#addClassify
.selectClassify
label
{
display
:
flex
;
margin-right
:
20px
;
align-items
:
center
;
}
#addClassify
.selectClassify
label
input
{
margin
:
0
;
margin-right
:
2px
;
}
.shadeCss
,
.layui-layer-shade
{
background-color
:
rgb
(
0
,
0
,
0
,
0.5
)
!important
;
}
.select-list
ul
{
display
:
flex
;
justify-content
:
space-between
;
}
.selectClassifyOne
{
display
:
flex
;
align-items
:
center
;
margin
:
12px
0
;
padding
:
0
20px
;
}
.selectClassifyOne
span
{
width
:
100px
;
text-align
:
right
;
}
.tagStore
.fixed-table-toolbar
{
display
:
flex
;
}
.tagStore
.fixed-table-toolbar
.bs-bars
{
flex
:
1
;
}
.tagStore
.fixed-table-toolbar
.bs-bars
.btn-group-sm
{
display
:
flex
;
justify-content
:
space-between
;
}
.leftSearchBox
{
display
:
flex
;
align-items
:
center
;
}
.leftSearchBox
input
,
.leftSearchBox
select
{
width
:
200px
;
height
:
34px
;
margin-right
:
12px
;
}
.ibox-content
{
border-style
:
none
;
padding
:
0
;
}
.kv-hidden
{
display
:
none
!important
;
}
.bottomBtn
{
text-align
:
right
;
padding
:
10px
15px
12px
;
background
:
#f0f4f7
;
border-top
:
1px
#c7c7c7
solid
;
}
</style>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
...
...
@@ -38,17 +142,26 @@
<table
id=
"bootstrap-table"
></table>
</div>
</div>
<div
id=
"addClassify"
>
<div
class=
"selectClassifyOne"
>
<span>
驳回原因:
</span>
<input
id=
"reason"
class=
"form-control"
type=
"text"
>
</div>
<div
class=
"bottomBtn"
>
<a
href=
"javascript:;"
class=
"layui-layer-btn0 paddings"
onclick=
"yes()"
>
确定
</a>
<a
class=
"layui-layer-btn1 layui-layer-btn1"
onclick=
"closeModal()"
>
取消
</a>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
acceptFlg
=
[[
$
{@
permission
.
hasPermi
(
'goblin:store:audit:reject'
)}]];
var
dicStoreCertType
=
[[
$
{@
dict
.
getType
(
'zhengzai_store_cert_type'
)}]];
var
dicStoreStatus
=
[[
$
{@
dict
.
getType
(
'zhengzai_store_status'
)}]];
var
rejectFlg
=
[[
$
{@
permission
.
hasPermi
(
'goblin:store:audit:reject'
)}]];
var
infoFlg
=
[[
$
{@
permission
.
hasPermi
(
'goblin:store:info'
)}]];
var
prefix
=
ctx
+
"goblin/store"
;
var
dicStoreCertType
=
[[
$
{@
dict
.
getType
(
'zhengzai_store_cert_type'
)}]];
var
dicStoreStatus
=
[[
$
{@
dict
.
getType
(
'zhengzai_store_status'
)}]];
var
storeIds
=
''
;
$
(
function
()
{
var
options
=
{
url
:
prefix
+
"/list"
,
...
...
@@ -104,13 +217,41 @@
/* 店铺审核:驳回 */
function
auditReject
(
storeId
)
{
storeIds
=
storeId
;
console
.
log
(
storeIds
,
'storeId'
)
if
(
!
rejectFlg
)
{
var
reasonVal
=
"TODO:弹窗输入拒绝原因"
;
alert
(
reasonVal
);
// var reasonVal = "TODO:弹窗输入拒绝原因";
layer
.
open
({
type
:
1
,
shade
:
true
,
title
:
'创建分类'
,
//不显示标题
content
:
$
(
'#addClassify'
),
//捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
cancel
:
function
(
res
){
console
.
log
(
res
,
'111'
)
// layer.msg('捕获就是从页面已经存在的元素上,包裹layer的结构', {time: 5000, icon:6});
}
});
// $.operate.post(prefix + "/audit/reject", { "storeId": storeId, "reason": reasonVal });
}
}
function
closeModal
()
{
$
(
".layui-layer-close1"
).
click
();
}
function
yes
()
{
console
.
log
(
storeIds
,
11111
)
let
value
=
$
(
"#reason"
).
val
();
if
(
!
value
)
{
return
layer
.
msg
(
'请填写原因!'
)
}
$
.
ajax
({
type
:
'post'
,
url
:
prefix
+
"/audit/reject"
,
data
:
{
"storeId"
:
storeIds
,
"reason"
:
value
},
success
:
function
(
res
)
{
closeModal
()
}
})
}
</script>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/goodsIntersection/index.html
View file @
573cd7b2
...
...
@@ -205,7 +205,7 @@
btn
,
content
:
$
(
'#addClassify'
),
//捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
success
:
function
()
{
console
.
log
(
1111
)
console
.
log
(
2
,
2222
)
$
(
".layui-layer-btn0"
).
addClass
(
'paddings'
)
$
(
".layui-layer-shade"
).
addClass
(
'shadeCss'
)
},
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/RubikArea.html
View file @
573cd7b2
...
...
@@ -131,6 +131,14 @@
<input
type=
"radio"
value=
"4"
id=
"optionsRadios4"
name=
"optionsRadios"
><span>
上一下三
</span></label>
</div>
</div>
<div
class=
"function_btn"
>
<div
class=
"hot_title"
>
位置顺序:
</div>
<div
class=
"tags"
>
<input
type=
"text"
class=
"layui-input form-control titleIpt"
id=
"sorting"
value=
""
autocomplete=
"off"
placeholder=
"请输入模块顺序"
>
</div>
</div>
<div
class=
"function_btn"
>
<div
id=
"bannerList"
class=
"banner_list"
>
...
...
@@ -164,7 +172,6 @@
$
(
function
()
{
// addItem (1);
promiseMethods
(
'/goblin-front-cube/list'
,
'post'
).
then
(
res
=>
{
console
.
log
(
res
)
let
{
data
}
=
res
;
if
(
data
&&
data
.
length
>
0
)
{
let
arr
=
data
[
0
].
spuId
.
split
(
','
);
...
...
@@ -177,7 +184,6 @@
}
else
{
$
(
"#optionsRadios4"
).
attr
(
'checked'
,
true
).
parent
().
siblings
().
children
().
removeAttr
(
'checked'
);
}
console
.
log
(
arr
)
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
str
=
''
;
str
+=
`<div class="items" data-id="
${
data
[
i
].
mid
}
">
...
...
@@ -241,7 +247,6 @@
addItem
(
count
);
})
function
addItem
(
num
)
{
console
.
log
(
num
,
'221212颠三倒四多'
)
let
str
=
''
;
for
(
var
i
=
0
;
i
<
num
;
i
++
)
{
str
=
`<div class="items">
...
...
@@ -307,7 +312,6 @@
let
domData
=
$
(
'.items'
);
Array
.
prototype
.
forEach
.
call
(
domData
,
function
(
item
,
index
)
{
console
.
log
(
item
.
querySelector
(
'.txtIpt'
).
value
,
'item'
)
data
[
0
].
spuId
.
push
(
item
.
querySelector
(
'.storeList'
).
getAttribute
(
'data-id'
)
||
''
);
if
(
index
==
0
)
{
data
[
0
].
informationA
=
item
.
querySelector
(
'.txtIpt'
).
value
;
...
...
@@ -320,20 +324,29 @@
}
});
//foreach js6章封装
data
[
0
].
spuId
=
data
[
0
].
spuId
.
toString
();
console
.
log
(
data
)
promiseMethods
(
'/goblin-front-cube/updateOrCreate'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
console
.
log
(
res
)
promiseMethods
(
'/goblin-front-cube/updateOrCreate'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(()
=>
{
let
data
=
{
"mid"
:
4
,
"moudleIndexId"
:
"708754120962334729772770"
,
"moudleName"
:
"moFang"
,
"indexs"
:
$
(
'#sorting'
).
val
(),
"updateTime"
:
"2022-01-06 13:55:31"
,
"createTime"
:
"2022-01-06 13:55:34"
,
"delTag"
:
0
,
"status"
:
0
};
return
promiseMethods
(
'/front-index/update'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
)
}).
then
(()
=>
{
layer
.
msg
(
"保存成功!"
)
refreshItem
()
})
}
function
del
(
num
)
{
console
.
log
(
num
)
$
(
'#goodsImg'
+
num
+
''
).
attr
(
'src'
,
''
);
$
(
'#goodsTitle'
+
num
+
''
).
html
(
''
);
$
(
'#goodsPrice'
+
num
+
''
).
html
(
''
);
$
(
'#del'
+
num
+
''
).
hide
();
console
.
log
(
11
)
}
function
common
(
num
)
{
$
(
".storeList"
).
bsSuggest
({
...
...
@@ -354,7 +367,6 @@
return
data
}
}).
on
(
'onDataRequestSuccess'
,
function
(
e
,
result
)
{
console
.
log
(
'onDataRequestSuccess: '
,
e
,
result
);
}).
on
(
'onSetSelectValue'
,
function
(
e
,
selectedData
,
selectedRawData
)
{
// 当前行的所有值都能拿到
let
index
=
e
.
target
.
id
.
replace
(
/
[^\d]
/g
,
''
);
// 选中的是第几组
$
(
"#goodsImg"
+
index
+
""
).
attr
(
'src'
,
selectedRawData
.
coverPic
);
...
...
@@ -362,7 +374,6 @@
$
(
"#goodsPrice"
+
index
+
""
).
text
(
'¥'
+
selectedRawData
.
priceLe
);
$
(
'#del'
+
index
+
''
).
show
();
}).
on
(
'onUnsetSelectValue'
,
function
(
e
)
{
console
.
log
(
"onUnsetSelectValue"
,
e
);
});;
}
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/carefullyGoods.html
View file @
573cd7b2
...
...
@@ -138,14 +138,14 @@
<label>
<input
type=
"radio"
value=
"2"
id=
"optionsRadios1"
name=
"optionsRadios"
><span>
销量
</span></label>
<label>
<input
type=
"radio"
value=
"
2
"
id=
"optionsRadios1"
name=
"optionsRadios"
><span>
价格高
</span></label>
<input
type=
"radio"
value=
"
3
"
id=
"optionsRadios1"
name=
"optionsRadios"
><span>
价格高
</span></label>
<label>
<input
type=
"radio"
value=
"
2
"
id=
"optionsRadios1"
name=
"optionsRadios"
><span>
价格低
</span></label>
<input
type=
"radio"
value=
"
4
"
id=
"optionsRadios1"
name=
"optionsRadios"
><span>
价格低
</span></label>
</div>
</div>
<div
class=
"list_title"
>
<div
class=
"hot_title"
>
商品列表
<span>
(1998)
</span>
:
商品列表
<span
class=
"goodsNumber"
>
(1998)
</span>
:
</div>
<div
class=
"tags"
>
拖动排序
...
...
@@ -178,45 +178,98 @@
var
prefix2
=
ctx
+
"local"
;
var
platformUrl
=
[[
$
{
platformUrl
}]];
let
num
=
0
;
let
type
=
1
;
let
createTime
=
''
;
let
mid
=
''
;
let
selectGoodsId
=
''
;
let
updateTime
=
''
;
$
(
function
()
{
promiseMethods
(
'/selectGoods/getList'
,
'post'
).
then
(
res
=>
{
console
.
log
(
res
,
121212
)
let
{
data
}
=
res
;
createTime
=
data
[
0
].
createTime
;
mid
=
data
[
0
].
mid
;
selectGoodsId
=
data
[
0
].
selectGoodsId
;
updateTime
=
data
[
0
].
updateTime
;
if
(
data
[
0
].
goblinGoodsList
&&
data
[
0
].
goblinGoodsList
.
length
>
0
)
{
$
(
'.goodsNumber'
).
text
(
res
.
data
.
length
);
let
str
=
''
;
for
(
var
i
=
0
;
i
<
100
;
i
++
)
{
str
+=
`<li id="
${
i
+
1
}
" class="info-element
">
<span>制定工作日程表
</span>
data
[
0
].
goblinGoodsList
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li id="item
${
index
}
" class="info-element" data-spuId="
${
item
.
spuId
}
">
<span>
${
item
.
name
}
</span>
<div class="agile-detail">
<a href="#" class="pull-right btn btn-xs btn-white" style="margin-top:-15px;background: none;border: none;"><i class="fa fa-navicon"></i></a>
<i class="fa fa-clock-o"></i> 2018.09.10
<span>¥</span>
${
item
.
priceGe
}
</div>
</li>`
})
$
(
".connectList"
).
html
(
str
);
}
else
{
creatDom
(
1
);
}
$
(
".connectList"
).
append
(
str
);
})
})
$
(
document
).
ready
(
function
()
{
$
(
".sortable-list"
).
sortable
({
connectWith
:
".connectList"
}).
disableSelection
()
});
function
creatDom
(
num
)
{
promiseMethods
(
'/selectGoods/goodsList?type='
+
num
,
'get'
).
then
(
res
=>
{
console
.
log
(
res
,
121212
)
let
{
data
}
=
res
;
$
(
'.goodsNumber'
).
text
(
data
.
length
);
let
str
=
''
;
data
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li id="item
${
index
}
" class="info-element" data-spuId="
${
item
.
spuId
}
">
<span>
${
item
.
name
}
</span>
<div class="agile-detail">
<a href="#" class="pull-right btn btn-xs btn-white" style="margin-top:-15px;background: none;border: none;"><i class="fa fa-navicon"></i></a>
<span>¥</span>
${
item
.
priceGe
}
</div>
</li>`
})
$
(
".connectList"
).
html
(
str
);
})
}
$
(
"input[name=optionsRadios]"
).
change
(
function
(
e
){
$
(
"#bannerList"
).
empty
();
if
(
e
.
target
.
value
==
2
)
{
addItem
(
8
);
}
else
{
addItem
(
4
);
type
=
e
.
target
.
value
;
creatDom
(
type
);
})
function
save
()
{
let
domBody
=
$
(
".info-element"
);
let
arr
=
[];
let
data
=
{
delTag
:
'0'
,
orderType
:
type
,
createTime
,
mid
,
selectGoodsId
,
updateTime
,
spuId
:
''
}
Array
.
prototype
.
forEach
.
call
(
domBody
,
function
(
item
,
index
){
arr
.
push
(
item
.
getAttribute
(
'data-spuId'
))
})
function
addItem
(
num
)
{
let
str
=
''
;
for
(
var
i
=
0
;
i
<
num
;
i
++
)
{
data
.
spuId
=
arr
.
toString
();
promiseMethods
(
'/selectGoods/createOrUpdate'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
if
(
res
.
code
==
0
)
{
layer
.
msg
(
'保存成功!'
)
refreshItem
()
}
})
}
function
save
()
{
// refreshItem()
// $(".info-element").forEach(item => {
// console.log(item)
// })
let
lis
=
$
(
".info-element"
);
for
(
var
i
=
0
;
i
<
lis
.
length
;
i
++
)
{
console
.
log
(
i
,
lis
[
i
].
getAttribute
(
'id'
),
'id'
)
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
$
.
ajax
({
url
,
type
,
data
,
contentType
,
success
:
function
(
res
)
{
resolve
(
res
);
}
})
})
}
</script>
</body>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/index.html
View file @
573cd7b2
...
...
@@ -75,7 +75,6 @@
<button
type=
"button"
class=
"btn btn-warning"
onclick=
"goArea(2)"
>
活动banner
</button>
<button
type=
"button"
class=
"btn btn-info"
onclick=
"goArea(3)"
>
限时秒杀
</button>
<button
type=
"button"
class=
"btn btn-success"
onclick=
"goArea(4)"
>
魔方
</button>
<button
type=
"button"
class=
"btn"
onclick=
"goArea(5)"
>
搜索
</button>
<button
type=
"button"
class=
"btn"
onclick=
"goArea(6)"
>
顶部banner
</button>
<button
type=
"button"
class=
"btn"
onclick=
"goArea(7)"
>
精选商品
</button>
</div>
...
...
@@ -85,8 +84,8 @@
选择区域
</div>
<div
class=
"function_area"
style=
"position: relative;"
>
<div
class=
"searchAreaMode"
>
<
span
class=
"searchAreaModeSp"
onclick=
"delSearchAreaModeSpp()"
>
X
</span
>
<div
class=
"searchAreaMode"
onclick=
"goArea(5)"
>
<
!-- <span class="searchAreaModeSp" onclick="delSearchAreaModeSpp()">X</span> --
>
</div>
<div
class=
"kingAreaMode"
>
<span
class=
"kingAreaModeSp"
onclick=
"delKingAreaModeSp()"
>
X
</span>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/kingArea.html
View file @
573cd7b2
...
...
@@ -117,6 +117,14 @@
<input
type=
"radio"
value=
"2"
id=
"optionsRadios2"
name=
"optionsRadios"
><span>
两行
</span></label>
</div>
</div>
<div
class=
"function_btn"
>
<div
class=
"hot_title"
>
位置顺序:
</div>
<div
class=
"tags"
>
<input
type=
"text"
class=
"layui-input form-control titleIpt"
id=
"sorting"
value=
""
autocomplete=
"off"
placeholder=
"请输入模块顺序"
>
</div>
</div>
<div
class=
"function_btn"
>
<div
class=
"hot_title"
>
编辑信息:
...
...
@@ -153,11 +161,9 @@
$
(
function
()
{
promiseMethods
(
'/navigation/list'
,
'post'
).
then
(
res
=>
{
console
.
log
(
res
,
12121
)
let
{
data
}
=
res
;
if
(
data
&&
data
.
length
>
0
)
{
if
(
data
[
0
].
displayType
==
1
)
{
console
.
log
(
'zhe?'
)
$
(
'#optionsRadios1'
).
attr
(
'checked'
,
true
)
$
(
'#optionsRadios2'
).
removeAttr
(
'checked'
)
}
else
{
...
...
@@ -248,7 +254,9 @@
common
(
i
)
// setTimeout(() => {
let
type
=
data
[
i
].
navigationType
;
console
.
log
(
type
,
i
,
'看看'
)
showOrhide
(
type
,
i
)
$
(
"#jumpType"
+
i
+
" option[value="
+
type
+
"]"
).
attr
(
'selected'
,
'selected'
);
// }, 500);
}
...
...
@@ -270,7 +278,7 @@
function
addItem
(
num
)
{
let
str
=
''
;
for
(
var
i
=
0
;
i
<
num
;
i
++
)
{
str
=
`<div class="banner_item">
str
=
`<div class="banner_item"
data-id=""
>
<div class="img_show">
<div class="title">
图片展示:
...
...
@@ -347,12 +355,12 @@
let
arr
=
[];
let
obj
=
{};
Array
.
prototype
.
forEach
.
call
(
itmeLength
,
function
(
item
,
index
)
{
if
(
$
(
"jumpType"
+
index
+
""
).
val
()
==
2
)
{
if
(
$
(
"
#
jumpType"
+
index
+
""
).
val
()
==
2
)
{
obj
[
'activityUrl'
]
=
item
.
querySelector
(
".linkUrl"
).
value
;
obj
[
'spuId'
]
=
''
;
}
else
if
(
$
(
"jumpType"
+
index
+
""
).
val
()
==
3
)
{
}
else
if
(
$
(
"
#
jumpType"
+
index
+
""
).
val
()
==
3
)
{
obj
[
'activityUrl'
]
=
''
;
obj
[
'spuId'
]
=
item
.
querySelector
(
".storeList"
).
data
-
id
;
obj
[
'spuId'
]
=
item
.
querySelector
(
".storeList"
).
getAttribute
(
'data-id'
)
;
}
obj
[
'categoryType'
]
=
''
;
obj
[
'createTime'
]
=
''
;
...
...
@@ -361,18 +369,29 @@
obj
[
'indexs'
]
=
index
;
obj
[
'mid'
]
=
item
.
getAttribute
(
'data-id'
)
||
0
;
obj
[
'navigationId'
]
=
''
;
obj
[
'navigationType'
]
=
$
(
"jumpType"
+
index
+
""
).
val
();
obj
[
'navigationType'
]
=
$
(
"
#
jumpType"
+
index
+
""
).
val
();
obj
[
'spuName'
]
=
''
;
obj
[
'picUrl'
]
=
item
.
querySelector
(
".imgBox"
).
getAttribute
(
'src'
);
obj
[
'title'
]
=
item
.
querySelector
(
".titleIpt"
).
value
;
obj
[
'updateTime'
]
=
''
;
arr
.
push
({...
obj
})
});
//foreach js6章封装的方法
console
.
log
(
arr
,
'12121212'
)
promiseMethods
(
'/navigation/createOrUpdate'
,
'post'
,
JSON
.
stringify
(
arr
),
'application/json'
).
then
(
res
=>
{
console
.
log
(
res
,
12121
)
})
promiseMethods
(
'/navigation/createOrUpdate'
,
'post'
,
JSON
.
stringify
(
arr
),
'application/json'
).
then
(()
=>
{
let
data
=
{
"mid"
:
2
,
"moudleIndexId"
:
"708754120962334729770775"
,
"moudleName"
:
"jinGangWei"
,
"indexs"
:
$
(
"#sorting"
).
val
(),
"updateTime"
:
"2022-01-06 13:53:42"
,
"createTime"
:
"2022-01-06 13:53:45"
,
"delTag"
:
0
,
"status"
:
0
};
return
promiseMethods
(
'/front-index/update'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
)
}).
then
((
res
)
=>
{
layer
.
msg
(
'保存成功!'
)
refreshItem
()
})
}
function
common
(
num
)
{
$
(
"#fileinput"
+
num
+
""
).
fileinput
({
...
...
@@ -406,7 +425,6 @@
showOrhide
(
jumpType
,
index
)
}
function
showOrhide
(
jumpType
,
index
)
{
console
.
log
(
jumpType
,
index
,
'sfsf'
)
switch
(
jumpType
.
toString
())
{
case
'1'
:
$
(
'.shwoSelect'
+
index
+
''
).
hide
();
...
...
@@ -454,11 +472,8 @@
return
data
}
}).
on
(
'onDataRequestSuccess'
,
function
(
e
,
result
)
{
console
.
log
(
'onDataRequestSuccess: '
,
e
,
result
);
}).
on
(
'onSetSelectValue'
,
function
(
e
,
selectedData
,
selectedRawData
)
{
// 当前行的所有值都能拿到
console
.
log
(
'211: '
,
e
.
target
.
value
,
selectedData
,
selectedRawData
);
}).
on
(
'onUnsetSelectValue'
,
function
(
e
)
{
console
.
log
(
"onUnsetSelectValue"
,
e
);
});;
}
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/topBanner.html
View file @
573cd7b2
This diff is collapsed.
Click to expand it.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/placingOrder/activityList.html
View file @
573cd7b2
...
...
@@ -98,13 +98,17 @@
<div
class=
"select-list"
>
<ul>
<div
class=
"leftSearchBox"
>
<input
class=
"form-control"
type=
"text"
placeholder=
"请输入名字"
>
类型:
<select
class=
"type form-control"
data-first-title=
"请选择"
>
<option
value=
""
>
请选择
</option>
<input
class=
"form-control"
type=
"text"
name=
"purchaseName"
placeholder=
"请输入名字"
>
类型:
<select
class=
"type form-control"
name=
"status"
data-first-title=
"请选择"
>
<option
value=
"-1"
>
全部
</option>
<option
value=
"0"
>
等待开始
</option>
<option
value=
"1"
>
活动中
</option>
<option
value=
"2"
>
活动结束
</option>
<option
value=
"7"
>
停用
</option>
</select>
时间:
<input
type=
"text"
class=
"layui-input form-control"
id=
"test1"
placeholder=
"请选择时间"
>
时间:
<input
type=
"text"
class=
"layui-input form-control"
id=
"test1"
name=
"startTime"
placeholder=
"请选择时间"
>
~
<input
type=
"text"
class=
"layui-input form-control"
id=
"test1"
style=
"margin-left: 10px;"
placeholder=
"请选择时间"
>
<input
type=
"text"
class=
"layui-input form-control"
id=
"test1"
name=
"endTime"
style=
"margin-left: 10px;"
placeholder=
"请选择时间"
>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
<a
class=
"btn btn-warning btn-rounded btn-sm"
onclick=
"$.form.reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</a>
...
...
@@ -171,7 +175,7 @@
});
$
(
function
()
{
var
options
=
{
url
:
prefix
+
"
/list"
,
url
:
prefix
2
+
"/goblin/marketing/zhengzai
/list"
,
createUrl
:
prefix2
+
"/addNewActivity"
,
detailUrl
:
prefix2
+
"/addNewActivity?id={id}"
,
removeUrl
:
prefix
+
"/cancel/{id}"
,
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/tagStore/index.html
View file @
573cd7b2
...
...
@@ -126,7 +126,7 @@
</div>
<div>
<a
class=
"btn btn-success"
id=
"button-open-10"
>
<i
class=
"fa fa-plus"
></i>
创建
分类
<i
class=
"fa fa-plus"
></i>
创建
标签
</a>
<!-- <a class="btn btn-warning" id="button-open-11">
<i class="fa fa-download"></i> 导出Excel
...
...
@@ -156,7 +156,7 @@
<input
class=
"form-control"
type=
"text"
>
</div>
<div
class=
"bottomBtn"
>
<a
src=
"javascript:;"
class=
"layui-layer-btn0 paddings
"
onclick=
"yes(1,2)"
>
确定
</a>
<a
href=
"javascript:;"
class=
"layui-layer-btn0
"
onclick=
"yes(1,2)"
>
确定
</a>
<a
class=
"layui-layer-btn1 layui-layer-btn1"
onclick=
"closeModal()"
>
取消
</a>
</div>
</div>
...
...
@@ -243,7 +243,7 @@
}
function
yes
(
index
,
layero
)
{
console
.
log
(
index
,
layero
)
closeModal
()
//
closeModal ()
}
function
del
(
id
,
status
,
notice
)
{
...
...
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