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
94691ac87b6ee7df6bdd7c52e9acfcef36256fcd
1 parent
16ad7fb0
资源内容修改部分图片可拖拽排序
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
263 additions
and
350 deletions
client/js/common/edit2.js
client/js/sourceManage/resourceContentManage.js
server/views/partials/resource/taoyu.html
client/js/common/edit2.js
View file @
94691ac
...
...
@@ -44,7 +44,7 @@ components.prototype={
this
.
__checkboxRadioRender
();
return
this
;
},
validate
:
function
(
isTip
){
validate
:
function
(){
var
that
=
this
;
var
err
=
[];
...
...
@@ -74,6 +74,7 @@ components.prototype={
var
value
=
$
.
trim
(
$
(
this
).
attr
(
"value"
));
if
(
$
(
this
).
attr
(
"required"
)
&&
!
value
)
{
err
.
push
(
"<p>请上传文件</p>"
);
return
false
;
}
});
//下拉选择
...
...
@@ -81,45 +82,13 @@ components.prototype={
var
value
=
$
.
trim
(
$
(
this
).
val
());
var
name
=
$
(
this
).
children
(
":first"
).
text
().
replace
(
/
[
请选择
]
/g
,
""
);
if
(
$
(
this
).
attr
(
"required"
)
&&
(
+
value
==
-
1
||
+
value
==
""
))
{
if
(
$
(
this
).
attr
(
"required"
)
&&
(
value
==
-
1
||
value
==
""
))
{
err
.
push
(
"<p>请选择 "
+
name
+
"</p>"
);
}
});
// var v = Validator.make(data, rules);
// v.mergeAttribute(attributes);
// var err=[];
// if (v.fails()) {
// for(var key in v.messages()){
// err.push("<p>"+v.messages()[key]+"</p>");
// }
// that.__err(err.join(''));
// return false;
// }
if
(
err
.
length
>
0
)
{
if
(
!
isTip
)
{
that
.
__err
(
err
.
join
(
''
));
}
else
{
that
.
errMessage
=
err
.
join
(
''
);
}
return
false
;
}
var
zierr
=
0
;
that
.
__listen
(
"validate"
,
''
,
function
(
data
)
{
if
(
data
==
false
||
typeof
data
==
"string"
)
{
zierr
++
;
typeof
data
==
"string"
?
err
.
push
(
"<p>"
+
data
+
"</p>"
)
:
''
;
}
});
if
(
zierr
>
0
)
{
if
(
!
isTip
)
{
that
.
__err
(
err
.
join
(
''
));
}
else
{
that
.
errMessage
=
err
.
join
(
''
);
}
that
.
__err
(
err
.
join
(
''
));
return
false
;
}
return
true
;
...
...
@@ -164,9 +133,9 @@ components.prototype={
});
var
parent
=
$
(
this
).
parent
(
".fileinput-button"
);
if
(
response
.
data
){
parent
.
find
(
".fileinput-button-icon"
).
html
(
"<img src='"
+
response
.
data
+
"' width=76 height=80/>"
);
parent
.
find
(
".fileinput-button-icon"
).
html
(
"<img src='"
+
response
.
data
+
"' width='100%' height='100%'/>"
);
$
(
this
).
attr
(
"value"
,
response
.
data
);
}
$
(
this
).
attr
(
"value"
,
response
.
data
);
}
else
{
that
.
$tip
(
response
.
message
);
}
...
...
@@ -186,11 +155,17 @@ components.prototype={
},
__checkboxRadioRender
:
function
()
{
var
that
=
this
;
//$(":checkbox").each(function () {
// var chosen = $(this).attr("chosen");
// var value = $(this).attr("value");
//});
$
(
"input:hidden"
,
that
.
el
).
each
(
function
()
{
var
$this
=
$
(
this
);
var
name
=
$this
.
attr
(
"id"
),
values
=
$this
.
val
().
split
(
/
[
|,
]
/g
),
//String.prototype.split.call($this.val(), '|'),
type
=
$this
.
attr
(
"for"
);
//var name = $this.attr("id"),
//values = $this.val().split()
if
(
type
)
{
$
(
":"
+
type
+
"[name="
+
name
+
"]"
).
each
(
function
()
{
...
...
client/js/sourceManage/resourceContentManage.js
View file @
94691ac
...
...
@@ -82,13 +82,12 @@ var Bll = {
},
__editRender
:
function
()
{
edit
.
init
();
edit
.
on
(
"callback"
,
function
(
obj
)
{
if
(
/^file_onComplete/
.
test
(
obj
.
key
))
{
var
names
=
obj
.
field
;
Bll
.
module
.
contentData
.
data
=
common
.
util
.
__buildobj
(
names
,
'.'
,
Bll
.
module
.
contentData
.
data
,
function
(
o
,
name
)
{
o
[
name
]
=
obj
.
data
;
});
}
edit
.
on
(
"file_onComplete"
,
function
(
obj
)
{
var
names
=
obj
.
field
;
Bll
.
module
.
contentData
.
data
=
common
.
util
.
__buildobj
(
names
,
'.'
,
Bll
.
module
.
contentData
.
data
,
function
(
o
,
name
)
{
o
[
name
]
=
obj
.
data
;
});
console
.
log
(
Bll
.
module
.
contentData
.
data
);
});
},
//获取品牌
...
...
server/views/partials/resource/taoyu.html
View file @
94691ac
...
...
@@ -373,36 +373,33 @@
<
option
value
=
"6"
>
一行六个
<
/option
>
<
/select> <font color="#999">注:只有图片列表是选择才会有效</
font
><
/p
>
<
div
id
=
"imageGroup-bottom"
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
选项
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
>
[[
each
contentData
.
data
.
list
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
data
-
field
=
"list.[[index]].src"
class
=
"observe"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"form-control observe"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[item.url.url]]"
placeholder
=
"url"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.url.title]]"
data
-
field
=
"list.[[index]].url.title"
class
=
"form-control observe"
required
=
"required"
/>
<
/div
>
<
/td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
data
-
field
=
"list.[[index]].src"
class
=
"observe"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"form-control observe"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[item.url.url]]"
placeholder
=
"url"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.url.title]]"
data
-
field
=
"list.[[index]].url.title"
class
=
"form-control observe"
required
=
"required"
/>
<
/div
>
<
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
<
/div
>
<
a
href
=
"JavaScript:;"
class
=
"btn btn-primary btn-xs addBtn"
data
-
event
=
"imageGroup.list"
>
添加图片
<
/a
>
<
/div
>
...
...
@@ -463,36 +460,33 @@
<
p
><
input
type
=
"button"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加banner"
style
=
"margin:10px;"
data
-
event
=
"newUserFloor.banner_image"
><
/p
>
<
/div
>
<
div
id
=
"newUserFloor-bottom"
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
选项
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
>
[[
each
contentData
.
data
.
banner_image
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"banner_image.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"form-control observe"
value
=
"[[item.url.action]]"
data
-
field
=
"banner_image.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"banner_image.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"form-control observe"
value
=
"[[item.url.action]]"
data
-
field
=
"banner_image.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
<
/div
>
<
/div
>
</script>
...
...
@@ -501,98 +495,89 @@
<
div
class
=
"panel-body"
id
=
"debrisSlider-baseFrom"
>
<
div
class
=
"debris_slider"
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加左图"
style
=
"margin:10px;"
data
-
event
=
"debrisSlider.left"
><
/p
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
选项
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
>
[[
each
contentData
.
data
.
left
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"left.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"left.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"left.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"left.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"left.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"left.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"left.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"left.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加中间图"
style
=
"margin:10px;"
data
-
event
=
"debrisSlider.big_image"
><
/p
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
选项
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
>
[[
each
contentData
.
data
.
big_image
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"big_image.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"big_image.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"big_image.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"big_image.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"big_image.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"big_image.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"big_image.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"big_image.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加右图"
style
=
"margin:10px;"
data
-
event
=
"debrisSlider.right"
><
/p
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
选项
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
>
[[
each
contentData
.
data
.
right
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"right.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"right.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"right.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"right.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
<
/div
>
<
/div
>
</script>
...
...
@@ -610,38 +595,34 @@
<
/div
>
<
p
><
input
type
=
"button"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加标签"
style
=
"margin:10px;"
data
-
event
=
"editorTalk.list"
><
/p
>
[[
if
contentData
.
data
.
list
.
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"
>
[[
each
contentData
.
data
.
list
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"标签名称"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].title"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"editorTalk.list"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"标签名称"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].title"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"editorTalk.list"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
[[
/if]
]
</script>
<!--热门品类-->
...
...
@@ -656,38 +637,34 @@
<
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加左上图片"
style
=
"margin:10px;"
data
-
event
=
"hotCategory.blocks"
><
/p
>
[[
if
contentData
.
data
.
blocks
.
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"
>
[[
each
contentData
.
data
.
blocks
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"blocks.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"blocks.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"blocks.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"blocks.[[index]].title"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"hotCategory.blocks"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"blocks.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"blocks.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"blocks.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"blocks.[[index]].title"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"hotCategory.blocks"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
[[
/if]
]
<
p
>
添加左下导航:
<
/p
>
[[
each
contentData
.
data
.
list
as
item
index
]]
...
...
@@ -749,38 +726,34 @@
<
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs addBtn"
value
=
"添加图片"
style
=
"margin:10px;"
data
-
event
=
"imageList.list"
><
/p
>
[[
if
contentData
.
data
.
list
.
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"
>
[[
each
contentData
.
data
.
list
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
required
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
data
-
field
=
"list.[[index]].title"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"imageList.list"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
required
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
data
-
field
=
"list.[[index]].title"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"imageList.list"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
[[
/if]
]
</script>
<!--文本导航-->
...
...
@@ -803,24 +776,21 @@
<script
type=
"text/template"
id=
"carouselBanner-template"
>
<
input
type
=
"button"
name
=
"select-pic"
value
=
"添加图片"
class
=
"btn btn-info btn-xs addBtn"
style
=
"margin:10px;"
data
-
event
=
"carouselBanner.list"
>
轮播速度:
<
input
type
=
"text"
placeholder
=
"轮播速度"
class
=
"observe"
data
-
field
=
"speed"
value
=
"[[contentData.data.speed]]"
>
秒
<
br
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
<
th
>
序号
<
/th
>
<
th
>
资源位
<
/th
>
<
th
>
操作
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
ul
class
=
"draggable"
>
[[
each
contentData
.
data
.
list
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
/><
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
type
=
"button"
data
-
event
=
"carouselBanner.list"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
/><
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
type
=
"button"
data
-
event
=
"carouselBanner.list"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
</script>
<!--添加促销-->
<script
type=
"text/template"
id=
"promotion-template"
>
...
...
@@ -867,41 +837,37 @@
<
option
value
=
"2"
>
左右滑动
<
/option
>
<
option
value
=
"3"
>
手风琴
<
/option
>
<
/select
>
<
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"
>
[[
each
contentData
.
data
as
item
index
]]
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"[[index]].src"
required
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.alt]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].alt"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"通栏背景色"
value
=
"[[item.bgColor]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].bgColor"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"focus.data"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
li
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
tbody
>
<
tr
>
<
td
>
[[
index
+
1
]]
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"[[index]].src"
required
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"observe form-control"
value
=
"[[item.url.action]]"
data
-
field
=
"[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.alt]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].alt"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"通栏背景色"
value
=
"[[item.bgColor]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].bgColor"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"focus.data"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/ul
>
</script>
<!--select选项-->
<script
type=
"text/template"
id=
"action_template"
>
...
...
@@ -942,31 +908,4 @@
<script
type=
"text/template"
id=
"noEdit-template"
>
<
div
>
固定内容,暂时无法编辑
!<
/div
>
</script>
<!--有序焦点-->
<script
type=
"text/template"
id=
"debrisSlider-grid"
>
<
li
>
<
table
style
=
"width:100%;z-index:-1;"
id
=
"tableImageBox"
>
<
tbody
>
<
tr
>
<
td
style
=
"width:100px;"
><
img
class
=
"bImgBox"
src
=
"[[src]]"
><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"recommendContent-observe"
value
=
"[[url.action]]"
data
-
rows
=
"[[__index]]"
data
-
index
=
"[[index]]"
data
-
observe
=
"list-action"
>
[[
layout
action_template
]]
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[url.url]]"
class
=
"recommendContent-observe"
required
=
"required"
data
-
rows
=
"[[__index]]"
data
-
index
=
"[[index]]"
data
-
observe
=
"list-url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[url.title]]"
class
=
"recommendContent-observe"
required
=
"required"
data
-
rows
=
"[[__index]]"
data
-
index
=
"[[index]]"
data
-
observe
=
"list-url"
/>
<
/div
>
<
/td
>
<
td
><
input
type
=
"button"
value
=
"更换图片"
class
=
"btn btn-info btn-xs change-big-pic"
data
-
id
=
""
>
<
input
class
=
"btn btn-danger btn-xs del-pic"
type
=
"button"
value
=
"删除"
data
-
id
=
""
><
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
<
/li
>
</script>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment