Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陶雨
9 years ago
Commit
28aae5d273310b5546c6ea81345e3d66b318b8af
1 parent
5f25b6f1
资源管理热门品类楼层样式修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
40 deletions
server/views/partials/resource/taoyu.html
server/views/partials/resource/taoyu2.html
server/views/partials/resource/taoyu.html
View file @
28aae5d
...
...
@@ -994,46 +994,40 @@
<
p
>
<
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加右侧图片"
style
=
"margin:10px;"
data
-
event
=
"hotCategory.imgs"
>
<
/p
>
[[
if
contentData
.
data
.
imgs
.
length
]]
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
选项
<
/th
>
<
th
>
操作
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
data
-
array
=
"data.imgs"
>
[[
each
contentData
.
data
.
imgs
as
item
index
]]
<
tr
>
<
td
align
=
"center"
>
[[
index
+
1
]]
<
/td
>
<
td
align
=
"center"
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"imgs.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-10"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"imgs.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"imgs.[[index]].url.url"
/>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
data
-
field
=
"imgs.[[index]].title"
/>
<
/div
>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"hotCategory.imgs"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
align
=
"center"
>
[[
index
+
1
]]
<
/td
>
<
td
align
=
"center"
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"imgs.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-10"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"imgs.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"imgs.[[index]].url.url"
/>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-10"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
data
-
field
=
"imgs.[[index]].title"
/>
<
/div
>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"hotCategory.imgs"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
[[
/if]
]
<
/ul
>
<
/div
>
</script>
<!--图片列表-->
...
...
server/views/partials/resource/taoyu2.html
View file @
28aae5d
...
...
@@ -217,7 +217,7 @@
<div
style=
"clear:both;"
></div>
<div
style=
"width:150px;float:right;"
>
[[each module.contentData.data.imgs as item index]]
[[if
index>=module.contentData.data.imgs.length - 6
]]
[[if
(index != 0
&&
module.contentData.data.imgs.length == 7) || (index % 4 != 0
&&
module.contentData.data.imgs.length == 8)
]]
<img
style=
"width:45px;height:90px;margin-left:5px;margin-bottom:10px;float:left;"
src=
"[[item.src]]"
>
[[/if]]
[[/each]]
...
...
@@ -228,7 +228,7 @@
</div>
<div
style=
"width:100px;height:100%;float:right;"
>
[[each module.contentData.data.imgs as item index]]
[[if
index
< module
.
contentData
.
data
.
imgs
.
length
-
6
]]
[[if
(index == 0
&&
module.contentData.data.imgs.length == 7) || (index % 4 == 0
&&
module.contentData.data.imgs.length == 8)
]]
<img
style=
"width:100px;height:100%;"
src=
"[[module.contentData.data.imgs[index].src]]"
>
[[/if]]
[[/each]]
...
...
Please
register
or
login
to post a comment