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
ac9be3a9b7c69e97a6d45379392fc7fd4765d52f
1 parent
c4072f8f
master
...
feature/feature_v4.5_20160525
feature/feature_v4.6_20160525
yohobuy_portal_dev_v4.4_20160525
yohobuy_portal_dev_v4.5_20160601
yohobuy_portal_dev_v4.6_20160601
yohobuy_portal_dev_v4.7_20160616
4.4.0_20160531
4.3.6_20160517
4.3.3_20160512
4.3.2_20160511
4.3.1_20160509
yohobuy_portal_dev_v4.6_20160622
资源内容改用edit2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
446 additions
and
396 deletions
client/js/common/common.js
client/js/common/edit2.js
client/js/sourceManage/partials/addObj.js
client/js/sourceManage/resourceContentManage.js
server/views/partials/resource/jiangming.html
server/views/partials/resource/taoyu.html
client/js/common/common.js
View file @
ac9be3a
...
...
@@ -3,6 +3,7 @@ require('../util/jquery.gritter');
var
grid
=
require
(
'./grid'
),
edit
=
require
(
'./edit'
),
edit2
=
require
(
'./edit2'
),
dropDown
=
require
(
'./dropDown'
),
dialog
=
require
(
'./dialog'
),
tab
=
require
(
'./tab'
),
...
...
@@ -17,6 +18,7 @@ var common={
tab
:
tab
,
dropDown
:
dropDown
,
edit
:
edit
,
edit2
:
edit2
,
util
:
util
,
tabTree
:
tabTree
,
drag
:
drag
,
...
...
client/js/common/edit2.js
View file @
ac9be3a
...
...
@@ -40,10 +40,99 @@ components.prototype={
init
:
function
()
{
var
__self
=
this
;
this
.
__fileRender
();
this
.
__dropDownRender
();
this
.
__datePickerRender
();
this
.
__checkboxRadioRender
();
return
this
;
},
validate
:
function
(){
return
true
;
validate
:
function
(
isTip
){
var
that
=
this
;
var
err
=
[];
$
(
"input:text"
,
that
.
el
)
.
add
(
"input[type=number]"
,
that
.
el
)
.
add
(
"input:hidden"
,
that
.
el
)
.
add
(
"textarea"
,
that
.
el
)
.
each
(
function
()
{
var
name
=
$
(
this
).
attr
(
"name"
)
||
$
(
this
).
attr
(
"placeholder"
)
||
$
(
this
).
parents
(
".form-group"
).
find
(
"label"
).
text
();
var
value
=
$
.
trim
(
$
(
this
).
val
());
if
(
$
(
this
).
attr
(
"required"
))
{
new
Validator
.
init
(
$
(
this
)[
0
],
{
rules
:
{
required
:
true
}
}).
validate
(
function
(
obj
)
{
err
.
push
(
"<p>"
+
name
+
"不可为空</p>"
);
});
return
false
;
}
if
(
name
&&
$
(
this
).
attr
(
"match"
)
&&
$
.
trim
(
$
(
this
).
val
()))
{
new
Validator
.
init
(
$
(
this
)[
0
],
{
rules
:
{
match
:
$
(
this
).
attr
(
"match"
)
}
}).
validate
(
function
(
obj
)
{
err
.
push
(
"<p>"
+
name
+
"请输入正确的格式</p>"
);
});
}
});
//文件上传
$
(
"input[type=file]"
,
that
.
el
).
each
(
function
()
{
var
value
=
$
.
trim
(
$
(
this
).
attr
(
"value"
));
if
(
$
(
this
).
attr
(
"required"
)
&&
!
value
)
{
err
.
push
(
"<p>请上传文件</p>"
);
}
});
//下拉选择
$
(
"select"
,
that
.
el
).
each
(
function
()
{
var
value
=
$
.
trim
(
$
(
this
).
val
());
var
name
=
$
(
this
).
children
(
":first"
).
text
().
replace
(
/
[
请选择
]
/g
,
""
);
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
(
''
);
}
return
false
;
}
return
true
;
},
__fileRender
:
function
(){
...
...
@@ -85,9 +174,9 @@ components.prototype={
});
var
parent
=
$
(
this
).
parent
(
".fileinput-button"
);
if
(
response
.
data
){
parent
.
find
(
".fileinput-button-icon"
).
html
(
"<img src='"
+
response
.
data
+
"' width=
100 height=10
0/>"
);
parent
.
find
(
".fileinput-button-icon"
).
html
(
"<img src='"
+
response
.
data
+
"' width=
76 height=8
0/>"
);
}
$
(
this
).
attr
(
"value"
,
response
.
data
);
}
else
{
that
.
$tip
(
response
.
message
);
}
...
...
@@ -97,6 +186,67 @@ components.prototype={
}
},
__dropDownRender
:
function
()
{
$
(
"select"
).
each
(
function
()
{
var
_value
=
$
(
this
).
attr
(
"value"
);
if
(
_value
)
{
$
(
"option[value='"
+
_value
+
"']"
,
$
(
this
)).
attr
(
"selected"
,
true
);
}
});
},
__datePickerRender
:
function
()
{
var
that
=
this
;
var
fdatepicker
=
{};
$
(
"input[jsaction]"
,
that
.
el
)
.
add
(
"input[jsaction]"
,
that
.
el
)
.
each
(
function
()
{
var
$this
=
$
(
this
);
var
name
=
$this
.
attr
(
"id"
),
arr
=
String
.
prototype
.
split
.
call
(
$this
.
attr
(
"jsaction"
),
':'
);
var
obj
=
$
(
"#"
+
name
).
fdatepicker
({
format
:
arr
[
0
]
==
"date"
?
'yyyy-mm-dd'
:
'yyyy-mm-dd hh:ii:ss'
,
pickTime
:
arr
[
0
]
==
"date"
?
false
:
true
}).
data
(
"datepicker"
);
fdatepicker
[
name
]
=
{
obj
:
obj
,
action
:
arr
[
1
]
?
(
arr
[
1
]
===
"end"
?
"setEndDate"
:
"setStartDate"
)
:
false
,
target
:
arr
[
2
]
?
"#"
+
arr
[
2
]
:
false
};
});
for
(
var
key
in
fdatepicker
)
{
var
obj
=
fdatepicker
[
key
].
obj
;
var
action
=
fdatepicker
[
key
].
action
;
var
target
=
fdatepicker
[
key
].
target
;
if
(
action
)
{
(
function
(
obj
,
action
,
target
)
{
$
(
"#"
+
key
).
click
(
function
()
{
obj
[
action
](
$
(
target
).
val
().
replace
(
/
\s
.*/
,
''
));
});
})(
obj
,
action
,
target
);
}
}
},
__checkboxRadioRender
:
function
()
{
var
that
=
this
;
$
(
"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"
);
if
(
type
)
{
$
(
":"
+
type
+
"[name="
+
name
+
"]"
).
each
(
function
()
{
var
$that
=
$
(
this
);
$
.
each
(
values
,
function
(
index
,
value
)
{
if
(
$that
.
val
()
===
value
)
{
$that
.
prop
(
"checked"
,
true
);
}
})
});
}
});
},
__listen
:
function
(
key
,
o
,
callback
)
{
var
__self
=
this
;
if
(
__self
.
registerEvent
[
key
]
&&
__self
.
registerEvent
[
key
].
length
>
0
)
{
...
...
client/js/sourceManage/partials/addObj.js
0 → 100644
View file @
ac9be3a
/**
* Created by ty on 2016/4/18.
*/
var
addObj
=
{
multiLabelImage_image
:
{
//多标签->图片
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
multiLabelImage_label
:
{
//多标签->标签
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
imageGroup_list
:
{
//图片广告->图片
"src"
:
""
,
"title"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
matchImage_list
:
{
//搭配(2T-nF)->小图
"title"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
icon_data
:
{
//图标
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
nav_list
:
{
//标题标签->标签
"name"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
coupon_data
:
{
//领券楼层->资源位
"title"
:
"标题内容"
,
"isShow"
:
"YES"
,
"image"
:
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
"couponID"
:
""
},
paramsGroup_list
:
{
//自定义参数->参数
"title"
:
""
,
"params"
:
""
},
newUserFloor_banner_image
:
{
//新人专享->banner
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
debrisSlider_left
:
{
//有序焦点->左边的图
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
debrisSlider_big_image
:
{
//有序焦点->中间的图
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
debrisSlider_right
:
{
//有序焦点->右边的图
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
hotCategory_blocks
:
{
//热门品类->左边图
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
hotCategory_imgs
:
{
//热门品类->右边图
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
imageList_list
:
{
//图片列表->图片
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
},
textNav_data
:
{
//文本导航->导航
"name"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
focus_data
:
{
//焦点图->焦点
"src"
:
""
,
"alt"
:
""
,
"url"
:
{},
"bgColor"
:
""
,
"imgId"
:
"0"
},
carouselBanner_list
:
{
//轮播banner->banner
"src"
:
""
,
"url"
:
{}
},
editorTalk_list
:
{
//编辑推荐->标签图片
"src"
:
""
,
"title"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
title_nav
:
{
"name"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
getCoupon_data
:
{
"title"
:
"标题内容"
,
"isShow"
:
"YES"
,
"image"
:
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
"couponID"
:
""
}
};
module
.
exports
=
addObj
;
\ No newline at end of file
...
...
client/js/sourceManage/resourceContentManage.js
View file @
ac9be3a
...
...
@@ -2,6 +2,7 @@ var $ = require('jquery'),
common
=
require
(
'../common/common'
);
var
Button
=
require
(
'./partials/Button1'
);
var
resourceObj
=
require
(
'./partials/resourceObj'
);
var
addObj
=
require
(
'./partials/addObj'
);
/*获取数据*/
var
ViewModel
=
{};
...
...
@@ -16,7 +17,7 @@ common.util.__ajax({
},
true
);
/*配置模块*/
var
edit
=
new
common
.
edit
(
".modal-body"
,
{
var
edit
=
new
common
.
edit
2
(
".modal-body"
,
{
bucket
:
"yhb-img01"
});
...
...
@@ -251,106 +252,38 @@ $(document).on("change", ".observe", function () {
}
});
});
var
clickBtns
=
{
multiLabelImage
:{
}
};
$
(
document
).
on
(
"click"
,
'#multiLabelImage-addImage'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
image
.
push
({
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
});
Bll
.
renderDialog
(
"multiLabelImage-template"
);
});
$
(
document
).
on
(
"click"
,
'#multiLabelImage-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
label
.
push
({
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
/*根据limit判断最多添加条数, 根据event判断添加的类型, data-event:template_name + "-template"*/
$
(
document
).
on
(
"click"
,
".addBtn"
,
function
()
{
var
length
=
$
(
this
).
data
(
"limit"
);
var
arr
=
$
(
this
).
data
(
"event"
).
split
(
"."
);
if
(
arr
[
1
]
==
"data"
)
{
if
(
Bll
.
module
.
contentData
.
data
.
length
>=
length
)
{
common
.
util
.
__tip
(
"最多"
+
length
+
"条!"
,
"warning"
);
return
;
}
});
Bll
.
renderDialog
(
"multiLabelImage-template"
);
});
$
(
document
).
on
(
"click"
,
'#imageGroup-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
push
({
"src"
:
""
,
"title"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
Bll
.
module
.
contentData
.
data
.
push
(
addObj
[
arr
.
join
(
"_"
)]);
}
else
{
if
(
Bll
.
module
.
contentData
.
data
[
arr
[
1
]].
length
>=
length
)
{
common
.
util
.
__tip
(
"最多"
+
length
+
"条!"
,
"warning"
);
return
;
}
});
Bll
.
renderDialog
(
"imageGroup-template"
);
Bll
.
module
.
contentData
.
data
[
arr
[
1
]].
push
(
addObj
[
arr
.
join
(
"_"
)]);
}
Bll
.
renderDialog
(
arr
[
0
]
+
"-template"
);
});
$
(
document
).
on
(
"click"
,
'#matchImage-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
push
({
"title"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
});
Bll
.
renderDialog
(
"matchImage-template"
);
});
//添加一个图标
$
(
document
).
on
(
"click"
,
'#icon-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
push
({
//"title": "",
"url"
:
{
"action"
:
""
,
"url"
:
""
}
});
Bll
.
renderDialog
(
"icon-template"
);
});
//删除一个图标
$
(
document
).
on
(
"click"
,
'#icon-delOne'
,
function
()
{
/*删除行*/
$
(
document
).
on
(
"click"
,
".delBtn"
,
function
()
{
var
arr
=
$
(
this
).
data
(
"event"
).
split
(
"."
);
var
index
=
$
(
this
).
data
(
"index"
);
Bll
.
module
.
contentData
.
data
.
splice
(
index
,
1
);
Bll
.
renderDialog
(
"icon-template"
);
});
//添加一个标签
$
(
document
).
on
(
"click"
,
'#nav-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
nav
.
push
({
"name"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
});
Bll
.
renderDialog
(
"title-template"
);
});
//添加领券
$
(
document
).
on
(
"click"
,
'#coupon-addOne'
,
function
()
{
var
length
=
Bll
.
module
.
contentData
.
data
.
length
;
if
(
length
>=
4
)
{
common
.
util
.
__tip
(
"最多添加四条!"
,
"warning"
);
if
(
arr
[
1
]
==
"data"
)
{
Bll
.
module
.
contentData
.
data
.
splice
(
index
,
1
);
}
else
{
Bll
.
module
.
contentData
.
data
.
push
({
"title"
:
"标题内容"
,
"isShow"
:
"YES"
,
"image"
:
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
},
"couponID"
:
""
});
Bll
.
renderDialog
(
"getCoupon-template"
);
Bll
.
module
.
contentData
.
data
[
arr
[
1
]].
splice
(
index
,
1
);
}
Bll
.
renderDialog
(
arr
[
0
]
+
"-template"
);
});
//获取品牌
Bll
.
getBrands
();
/*渲染品牌*/
...
...
@@ -387,159 +320,14 @@ $(document).on('click', '.brand-index', function () {
var
brandIndex
=
$
(
this
).
text
();
$
(
'.brand-wrap'
).
find
(
'[name="'
+
brandIndex
+
'"]'
).
show
().
siblings
().
hide
();
});
//删除一个品牌
$
(
document
).
on
(
"click"
,
'#remove_brand'
,
function
()
{
var
index
=
$
(
this
).
data
(
"index"
);
Bll
.
module
.
contentData
.
data
.
list
.
splice
(
index
,
1
);
Bll
.
renderDialog
(
"brands-template"
);
});
/*自定义参数*/
$
(
document
).
on
(
"click"
,
'.paramsGroupDel'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"paramsGroup-template"
);
});
$
(
document
).
on
(
"click"
,
'#paramsGroup-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
push
(
{
"title"
:
""
,
"params"
:
""
}
);
Bll
.
renderDialog
(
"paramsGroup-template"
);
});
/*新人专享*/
$
(
document
).
on
(
"click"
,
'#newUserFloor-addBanner'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
banner_image
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"newUserFloor-template"
);
});
/*有序焦点添加*/
$
(
document
).
on
(
"click"
,
'#debrisSlider-addLeft'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
left
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"debrisSlider-template"
);
});
$
(
document
).
on
(
"click"
,
'#debrisSlider-addCenter'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
big_image
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"debrisSlider-template"
);
});
$
(
document
).
on
(
"click"
,
'#debrisSlider-addRight'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
right
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"debrisSlider-template"
);
});
//*****************************************************************//
/*热门品类*/
$
(
document
).
on
(
"click"
,
'#hotCategory-addLeft'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
blocks
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"hotCategory-template"
);
});
$
(
document
).
on
(
"click"
,
'#hotCategory-addRight'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
imgs
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"hotCategory-template"
);
});
$
(
document
).
on
(
"click"
,
'.hotCategory-delLeft'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
blocks
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"hotCategory-template"
);
});
$
(
document
).
on
(
"click"
,
'.hotCategory-delRight'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
imgs
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"hotCategory-template"
);
});
//*****************************************************************//
/*图片列表*/
$
(
document
).
on
(
"click"
,
'#imageList-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
push
(
{
"src"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
},
"title"
:
""
}
);
Bll
.
renderDialog
(
"imageList-template"
);
});
$
(
document
).
on
(
"click"
,
'.imageList-del'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"imageList-template"
);
});
$
(
document
).
on
(
"click"
,
'.is_show_name'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
title
.
is_show_name
=
$
(
this
).
val
();
Bll
.
renderDialog
(
"imageList-template"
);
});
//*****************************************************************//
/*文本导航*/
$
(
document
).
on
(
"click"
,
'#textNav-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
push
(
{
"name"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
}
);
Bll
.
renderDialog
(
"textNav-template"
);
});
$
(
document
).
on
(
"click"
,
'.textNav-delOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"textNav-template"
);
});
//*****************************************************************//
/*推荐(标题 + 12张图)*/
$
(
document
).
on
(
"change"
,
'#recommendContentFive-is_show'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
title
.
is_show
=
1
-
Bll
.
module
.
contentData
.
data
.
title
.
is_show
;
...
...
@@ -547,60 +335,12 @@ $(document).on("change", '#recommendContentFive-is_show', function () {
});
//*****************************************************************//
/*焦点图*/
$
(
document
).
on
(
"click"
,
'#focus-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
push
(
{
"src"
:
""
,
"alt"
:
""
,
"url"
:
{},
"bgColor"
:
""
,
"imgId"
:
"0"
}
);
Bll
.
renderDialog
(
"focus-template"
);
});
$
(
document
).
on
(
"click"
,
'.focus-del'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"focus-template"
);
});
$
(
document
).
on
(
"change"
,
'#focus-select'
,
function
()
{
Bll
.
module
.
contentData
.
focus_type
=
$
(
this
).
val
();
Bll
.
renderDialog
(
"focus-template"
);
});
//*****************************************************************//
/*轮播banner*/
$
(
document
).
on
(
"click"
,
'#carouselBanner-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
push
(
{
"src"
:
""
,
"url"
:
{}
}
);
Bll
.
renderDialog
(
"carouselBanner-template"
);
});
$
(
document
).
on
(
"click"
,
'.carouselBanner-del'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"carouselBanner-template"
);
});
//*****************************************************************//
/*编辑推荐*/
$
(
document
).
on
(
"click"
,
'#editorTalk-addOne'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
push
(
{
"src"
:
""
,
"title"
:
""
,
"url"
:
{
"action"
:
""
,
"url"
:
""
}
}
);
Bll
.
renderDialog
(
"editorTalk-template"
);
});
$
(
document
).
on
(
"click"
,
'.editorTalk-del'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
list
.
splice
(
$
(
this
).
data
(
"index"
),
1
);
Bll
.
renderDialog
(
"editorTalk-template"
);
});
$
(
document
).
on
(
"change"
,
'#editorTalk-is_show'
,
function
()
{
Bll
.
module
.
contentData
.
data
.
title
.
is_show
=
1
-
Bll
.
module
.
contentData
.
data
.
title
.
is_show
;
Bll
.
renderDialog
(
"editorTalk-template"
);
...
...
server/views/partials/resource/jiangming.html
View file @
ac9be3a
...
...
@@ -16,7 +16,6 @@
<
tr
>
<
td
>
[[
index
+
1
]]
<!--
<
input
type
=
"hidden"
value
=
"[[index]]"
data
-
field
=
"[[index]].imgId"
>-->
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"[[index]].src"
/>
<
/td
>
...
...
@@ -46,14 +45,14 @@
[[
/if]
]
<
/td
>
<
td
>
<
a
class
=
"btn btn-danger
"
id
=
"icon-delOne
"
data_index
=
"[[index]]"
>
删除
<
/a
>
<
a
class
=
"btn btn-danger
delBtn"
data
-
event
=
"icon.data
"
data_index
=
"[[index]]"
>
删除
<
/a
>
<
/td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
<
/table
>
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"icon-addOne"
class
=
"btn btn-primary btn-xs
"
>
添加一个
<
/a
>
<
a
href
=
"JavaScript:;"
data
-
event
=
"icon.data"
class
=
"btn btn-primary btn-xs addBtn
"
>
添加一个
<
/a
>
<
/div
>
</script>
<!-- 推荐品牌-->
...
...
@@ -183,7 +182,7 @@
<
/div
>
<
/td
>
<
td
>
<
a
class
=
"btn btn-danger
"
id
=
"remove_brand
"
data_index
=
"[[index]]"
>
删除
<
/a
>
<
a
class
=
"btn btn-danger
delBtn"
data
-
event
=
"brands.list
"
data_index
=
"[[index]]"
>
删除
<
/a
>
<
/td
>
<
/tr
>
[[
/each]
]
...
...
@@ -310,7 +309,7 @@
<
/tbody
>
<
/table
>
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"nav-addOne"
class
=
"btn btn-primary btn-xs
"
>
添加一个
<
/a
>
<
a
href
=
"JavaScript:;"
data
-
event
=
"title.nav"
class
=
"btn btn-primary btn-xs addBtn
"
>
添加一个
<
/a
>
<
/div
>
</script>
<!-- 领券频道 -->
...
...
@@ -330,7 +329,7 @@
<
td
>
<
div
class
=
"form-group"
>
<
input
type
=
"file"
name
=
"file"
value
=
"[[item.image.src]]"
class
=
"form-control observe"
data
-
field
=
"[[index]].image.src"
/>
data
-
field
=
"[[index]].image.src"
required
placeholder
=
"图片"
/>
<
/div
>
<
/td
>
<
td
>
...
...
@@ -348,7 +347,7 @@
<
/div
>
<
div
class
=
"form-group"
>
<
input
value
=
"[[item.image.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"[[index]].image.url.url"
placeholder
=
"图片链接"
/>
data
-
field
=
"[[index]].image.url.url"
placeholder
=
"图片链接"
type
=
"text"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
链接中不能有英文单引号
<
/p
>
<
/div
>
...
...
@@ -358,7 +357,7 @@
<
/tbody
>
<
/table
>
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"coupon-addOne"
class
=
"btn btn-primary btn-xs
"
>
添加一个
<
/a
>
<
a
href
=
"JavaScript:;"
id
=
"coupon-addOne"
data
-
event
=
"getCoupon.data"
data
-
limit
=
"4"
class
=
"btn btn-primary btn-xs addBtn
"
>
添加一个
<
/a
>
<
/div
>
</script>
...
...
server/views/partials/resource/taoyu.html
View file @
ac9be3a
<!--领券楼层-->
<!--<script type="text/template" id="getCoupon-template">-->
<!--<p>-->
<!--标题:<input type="text" class="observe" data-field="title.title" value="[[contentData.data.title]]" style="width:100px;">-->
<!--是否显示: <input type="radio" name="isShow" class="isShow" value="YES"> 是 <input type="radio" name="isShow" class="isShow" value="NO"> 否 -->
<!--<input type="hidden" id="isShow" for="radio" value="[[contentData.data.isShow]]" />-->
<!--</p>-->
<!--</script>-->
<!-- 标题图片 -->
<script
type=
"text/template"
id=
"titleImage-template"
>
<
div
class
=
"panel-body"
id
=
"titleImage-baseFrom"
>
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"form-control observe"
data
-
field
=
"title"
value
=
"[[contentData.data.title]]"
required
=
"required"
>
<
input
type
=
"text"
class
=
"form-control observe"
placeholder
=
"标题"
data
-
field
=
"title"
value
=
"[[contentData.data.title]]"
required
=
"required"
>
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
更多名称
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
data
-
field
=
"more_name"
value
=
"[[contentData.data.more_name]]"
class
=
"form-control observe"
>
<
input
type
=
"text"
data
-
field
=
"more_name"
placeholder
=
"更多名称"
value
=
"[[contentData.data.more_name]]"
class
=
"form-control observe"
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
...
...
@@ -28,7 +20,7 @@
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
跳转地址
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
value
=
"[[contentData.data.more_url.url]]"
data
-
field
=
"more_url.url"
class
=
"form-control observe"
required
=
"required"
/>
<
input
value
=
"[[contentData.data.more_url.url]]"
placeholder
=
"url"
data
-
field
=
"more_url.url"
class
=
"form-control observe"
required
=
"required"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/div
>
...
...
@@ -44,7 +36,7 @@
<
tbody
>
<
tr
>
<
td
>
1
<
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[contentData.data.image.src]]"
data
-
field
=
"image.src"
class
=
"observe"
required
=
"required"
/><
/td
>
<
td
><
input
type
=
"file"
name
=
"file"
placeholder
=
"图片"
value
=
"[[contentData.data.image.src]]"
data
-
field
=
"image.src"
class
=
"observe"
required
=
"required"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
select
name
=
"goTo"
class
=
"form-control observe"
data
-
field
=
"image.url.action"
value
=
"[[contentData.data.image.url.action]]"
>
...
...
@@ -52,7 +44,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
value
=
"[[contentData.data.image.url.url]]"
class
=
"form-control observe"
data
-
field
=
"image.url.url"
required
=
"required"
/>
<
input
type
=
"text"
value
=
"[[contentData.data.image.url.url]]"
placeholder
=
"url"
class
=
"form-control observe"
data
-
field
=
"image.url.url"
required
=
"required"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/td
>
...
...
@@ -68,16 +60,16 @@
<
div
class
=
"form-group"
>
[[
each
contentData
.
data
.
label
as
item
index
]]
<
label
class
=
"control-label"
>
标签
[[
index
+
1
]]
:
<
/label
>
<
input
type
=
"text"
class
=
"observe"
value
=
"[[item.title]]"
data
-
field
=
"label.[[index]].title"
required
=
"required"
style
=
"width: 100px"
>
<
input
type
=
"text"
class
=
"observe"
placeholder
=
"名称"
value
=
"[[item.title]]"
data
-
field
=
"label.[[index]].title"
required
=
"required"
style
=
"width: 100px"
>
<
label
class
=
"control-label"
>
跳转目的
<
/label
>
<
select
name
=
"goTo"
class
=
"observe"
value
=
"[[item.url.action]]"
data
-
field
=
"label.[[index]].url.action"
style
=
"width: 120px"
>
[[
layout
action_template
]]
<
/select
>
<
label
>
跳转地址
<
/label
>
<
input
type
=
"text"
class
=
"observe"
value
=
"[[item.url.url]]"
data
-
field
=
"label.[[index]].url.url"
required
=
"required"
style
=
"width: 120px"
/><
br
>
<
input
type
=
"text"
class
=
"observe"
placeholder
=
"跳转地址"
value
=
"[[item.url.url]]"
data
-
field
=
"label.[[index]].url.url"
required
=
"required"
style
=
"width: 120px"
/><
br
>
[[
/each]
]
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"multiLabelImage-addOne"
class
=
"btn btn-primary btn-xs
"
>
添加标签
<
/a
>
<
a
href
=
"JavaScript:;"
class
=
"btn btn-primary btn-xs addBtn"
data
-
event
=
"multiLabelImage.label
"
>
添加标签
<
/a
>
<
div
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
...
...
@@ -99,7 +91,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
data
-
field
=
"image.[[index]].url.url"
required
=
"required"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
data
-
field
=
"image.[[index]].url.url"
required
=
"required"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/td
>
...
...
@@ -108,7 +100,7 @@
<
/tbody
>
<
/table
>
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"multiLabelImage-addImage"
class
=
"btn btn-primary btn-xs
"
>
添加图片
<
/a
>
<
a
href
=
"JavaScript:;"
class
=
"btn btn-primary btn-xs addBtn"
data
-
event
=
"multiLabelImage.image
"
>
添加图片
<
/a
>
<
/div
>
</script>
<!--搭配(2T-nF)-->
...
...
@@ -117,11 +109,11 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"form-control observe"
data
-
field
=
"title.name"
value
=
"[[contentData.data.title.name]]"
required
=
"required"
>
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"form-control observe"
data
-
field
=
"title.name"
value
=
"[[contentData.data.title.name]]"
required
=
"required"
>
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
更多名称
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
value
=
"[[contentData.data.title.more_name]]"
data
-
field
=
"title.more_name"
class
=
"form-control observe"
>
<
input
type
=
"text"
placeholder
=
"更多名称"
value
=
"[[contentData.data.title.more_name]]"
data
-
field
=
"title.more_name"
class
=
"form-control observe"
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
...
...
@@ -133,7 +125,7 @@
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
跳转地址
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
input
value
=
"[[contentData.data.title.more_url.url]]"
placeholder
=
"url"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/div
>
...
...
@@ -158,7 +150,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
data
-
field
=
"top_image.[[index]].url.url"
required
=
"required"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
data
-
field
=
"top_image.[[index]].url.url"
required
=
"required"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/td
>
...
...
@@ -175,7 +167,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
type
=
"text"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
data
-
field
=
"list.[[index]].url.url"
required
=
"required"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"form-control observe"
data
-
field
=
"list.[[index]].url.url"
required
=
"required"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/td
>
...
...
@@ -184,7 +176,7 @@
<
/tbody
>
<
/table
>
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"matchImage-addOne"
class
=
"btn btn-primary btn-xs
"
>
添加一个
<
/a
>
<
a
href
=
"JavaScript:;"
class
=
"btn btn-primary btn-xs addBtn"
data
-
event
=
"matchImage.list
"
>
添加一个
<
/a
>
<
/div
>
</script>
<!--推荐-->
...
...
@@ -195,11 +187,11 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"form-control observe"
value
=
"[[contentData.data.title.name]]"
required
=
"required"
data
-
field
=
"title.name"
>
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"form-control observe"
value
=
"[[contentData.data.title.name]]"
required
=
"required"
data
-
field
=
"title.name"
>
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
更多名称
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
value
=
"[[contentData.data.title.more_name]]"
class
=
"form-control observe"
data
-
field
=
"title.more_name"
>
<
input
type
=
"text"
placeholder
=
"更多名称"
value
=
"[[contentData.data.title.more_name]]"
class
=
"form-control observe"
data
-
field
=
"title.more_name"
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
...
...
@@ -211,7 +203,7 @@
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
跳转地址
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/div
>
...
...
@@ -220,11 +212,10 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"form-control observe"
value
=
"[[contentData.data.title.title]]"
required
=
"required"
data
-
field
=
"title.title"
>
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"form-control observe"
value
=
"[[contentData.data.title.title]]"
required
=
"required"
data
-
field
=
"title.title"
>
<
/div
>
<
label
class
=
"col-sm-4 control-label"
>
是否显示
<
input
type
=
"checkbox"
name
=
"is_show"
value
=
"1"
id
=
"recommendContentFive-is_show"
>
<
input
type
=
"hidden"
id
=
"is_show"
for
=
"checkbox"
value
=
"[[contentData.data.title.is_show]]"
/>
<
input
type
=
"checkbox"
name
=
"is_show"
value
=
"1"
id
=
"recommendContentFive-is_show"
[[
contentData
.
data
.
title
.
is_show
==
1
?
'checked'
:
''
]]
>
<
/label
>
<
/div
>
[[
/if]
]
...
...
@@ -250,7 +241,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[item.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"big_image.[[index]].url.url"
/>
<
input
value
=
"[[item.url.url]]"
placeholder
=
"url"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"big_image.[[index]].url.url"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/td
>
...
...
@@ -272,7 +263,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[item.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
input
value
=
"[[item.url.url]]"
placeholder
=
"url"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/td
>
...
...
@@ -287,7 +278,7 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
左边图片标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"observe form-control"
data
-
field
=
"left.title"
value
=
"[[contentData.data.left.title]]"
required
=
"required"
>
<
input
type
=
"text"
placeholder
=
"左边图片标题"
class
=
"observe form-control"
data
-
field
=
"left.title"
value
=
"[[contentData.data.left.title]]"
required
=
"required"
>
<
/div
>
<
/div
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
...
...
@@ -324,7 +315,7 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
右边图片标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"observe form-control"
data
-
field
=
"right.title"
value
=
"[[contentData.data.right.title]]"
required
=
"required"
>
<
input
type
=
"text"
class
=
"observe form-control"
placeholder
=
"右边图片标题"
data
-
field
=
"right.title"
value
=
"[[contentData.data.right.title]]"
required
=
"required"
>
<
/div
>
<
/div
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
...
...
@@ -362,9 +353,9 @@
<!--图片广告-->
<script
type=
"text/template"
id=
"imageGroup-template"
>
<
div
class
=
"panel-body"
id
=
"imageGroup-baseFrom"
>
<
p
>
标题设置:
<
input
name
=
"title"
type
=
"text"
class
=
"observe"
value
=
"[[contentData.data.title]]"
data
-
field
=
"title"
required
>
更多设置:
<
input
type
=
"text
"
class
=
"observe"
style
=
"width:120px;"
value
=
"[[contentData.data.more]]"
data
-
field
=
"more"
><
/p
>
<
p
>
标题设置:
<
input
name
=
"title"
type
=
"text"
class
=
"observe"
placeholder
=
"标题"
value
=
"[[contentData.data.title]]"
data
-
field
=
"title"
required
>
更多设置:
<
input
type
=
"text"
placeholder
=
"更多
"
class
=
"observe"
style
=
"width:120px;"
value
=
"[[contentData.data.more]]"
data
-
field
=
"more"
><
/p
>
<
p
>
更多链接
:
<
input
type
=
"text"
value
=
"[[contentData.data.more_url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"more_url"
/>
更多链接
:
<
input
type
=
"text"
placeholder
=
"更多链接"
value
=
"[[contentData.data.more_url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"more_url"
/>
<
/p
>
<
p
>
样式设置:
<
select
name
=
"image_style"
value
=
"[[contentData.data.image_style]]"
data
-
field
=
"image_style"
class
=
"observe"
>
...
...
@@ -402,7 +393,7 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[item.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
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"
/>
...
...
@@ -413,7 +404,7 @@
<
/tbody
>
<
/table
>
<
/div
>
<
a
href
=
"JavaScript:;"
id
=
"imageGroup-addOne"
class
=
"btn btn-primary btn-xs
"
>
添加图片
<
/a
>
<
a
href
=
"JavaScript:;"
class
=
"btn btn-primary btn-xs addBtn"
data
-
event
=
"imageGroup.list
"
>
添加图片
<
/a
>
<
/div
>
</script>
<!--自定义参数-->
...
...
@@ -422,17 +413,17 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
标题设置:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"form-control observe"
value
=
"[[contentData.data.title]]"
required
=
"required"
data
-
field
=
"title"
>
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"form-control observe"
value
=
"[[contentData.data.title]]"
required
=
"required"
data
-
field
=
"title"
>
<
/div
>
<
label
class
=
"col-sm-2 control-label"
>
更多设置:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
value
=
"[[contentData.data.more]]"
class
=
"form-control observe"
data
-
field
=
"more"
>
<
input
type
=
"text"
placeholder
=
"更多"
value
=
"[[contentData.data.more]]"
class
=
"form-control observe"
data
-
field
=
"more"
>
<
/div
>
<
/div
>
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
跳转地址
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
value
=
"[[contentData.data.more_url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"more_url.url"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[contentData.data.more_url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"more_url.url"
/>
<
p
style
=
"color:#999;margin-top: 5px;"
>
注:链接中不能有英文单引号
<
/p
>
<
/div
>
<
/div
>
...
...
@@ -443,9 +434,9 @@
<
table
style
=
"width:100%;z-index:-1;"
>
<
tbody
>
<
tr
>
<
td
width
=
"100px"
>
标题:
<
input
type
=
"text"
required
style
=
"width: 60px;"
class
=
"observe"
value
=
"[[item.title]]"
data
-
field
=
"list.[[index]].title"
><
/td
>
<
td
>
参数:
<
input
type
=
"text"
style
=
"width:300px;"
class
=
"observe"
value
=
"[[item.params]]"
data
-
field
=
"list.[[index]].params"
><
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm paramsGroupDel"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
width
=
"100px"
>
标题:
<
input
type
=
"text"
placeholder
=
"标题"
required
style
=
"width: 60px;"
class
=
"observe"
value
=
"[[item.title]]"
data
-
field
=
"list.[[index]].title"
><
/td
>
<
td
>
参数:
<
input
type
=
"text"
placeholder
=
"参数"
style
=
"width:300px;"
class
=
"observe"
value
=
"[[item.params]]"
data
-
field
=
"list.[[index]].params"
><
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm delBtn"
data
-
event
=
"paramsGroup.list"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
<
/tbody
>
<
/table
>
...
...
@@ -453,7 +444,7 @@
<
/li
>
[[
/each]
]
<
/ul
>
<
button
type
=
"button"
class
=
"btn btn-sm
"
id
=
"paramsGroup-addOne
"
>
添加一个
<
/button
>
<
button
type
=
"button"
class
=
"btn btn-sm
addBtn"
data
-
event
=
"paramsGroup.list
"
>
添加一个
<
/button
>
<
/div
>
<
/div
>
</script>
...
...
@@ -461,15 +452,15 @@
<script
type=
"text/template"
id=
"newUserFloor-template"
>
<
div
class
=
"panel-body"
id
=
"newUserFloor-baseFrom"
>
<
div
class
=
"new_user_floor"
>
<
p
>
标题
:
<
input
type
=
"text"
value
=
"[[contentData.data.title.name]]"
class
=
"observe"
data
-
field
=
"title.name"
>
更多名称
:
<
input
type
=
"text
"
value
=
"[[contentData.data.title.more_name]]"
style
=
"width:50px;"
class
=
"observe"
data
-
field
=
"title.more_name"
>
<
/p
>
<
p
>
标题
:
<
input
type
=
"text"
placeholder
=
"标题"
value
=
"[[contentData.data.title.name]]"
class
=
"observe"
data
-
field
=
"title.name"
>
更多名称
:
<
input
type
=
"text"
placeholder
=
"更多名称
"
value
=
"[[contentData.data.title.more_name]]"
style
=
"width:50px;"
class
=
"observe"
data
-
field
=
"title.more_name"
>
<
/p
>
<
p
>
更多链接
:
<
select
name
=
"goTo"
class
=
"observe"
value
=
"[[contentData.data.title.more_url.action]]"
data
-
field
=
"title.more_url.action"
>
[[
layout
action_template
]]
<
/select
>
<
input
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
input
type
=
"text"
placeholder
=
"更多链接"
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
/p
>
<
p
>
活动
ID
:
<
input
type
=
"text"
class
=
"observe"
value
=
"[[contentData.data.title.active_id]]"
data
-
field
=
"title.active_id"
><
/p
>
<
p
><
input
type
=
"button"
class
=
"btn btn-info btn-xs"
value
=
"添加banner"
style
=
"margin:10px;"
id
=
"newUserFloor-addBanner"
><
/p
>
<
p
>
活动
ID
:
<
input
type
=
"text"
placeholder
=
"活动id"
class
=
"observe"
value
=
"[[contentData.data.title.active_id]]"
data
-
field
=
"title.active_id"
><
/p
>
<
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"
>
...
...
@@ -492,10 +483,10 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[item.url.url]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].url.url"
/>
<
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
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].title"
/>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"form-control observe"
required
=
"required"
data
-
field
=
"banner_image.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
...
...
@@ -509,7 +500,7 @@
<script
type=
"text/template"
id=
"debrisSlider-template"
>
<
div
class
=
"panel-body"
id
=
"debrisSlider-baseFrom"
>
<
div
class
=
"debris_slider"
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加左图"
style
=
"margin:10px;"
id
=
"debrisSlider-addL
eft"
><
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
addBtn"
value
=
"添加左图"
style
=
"margin:10px;"
data
-
event
=
"debrisSlider.l
eft"
><
/p
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
...
...
@@ -540,7 +531,7 @@
[[
/each]
]
<
/tbody
>
<
/table
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加中间图"
style
=
"margin:10px;"
id
=
"debrisSlider-addCenter
"
><
/p
>
<
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
>
...
...
@@ -571,7 +562,7 @@
[[
/each]
]
<
/tbody
>
<
/table
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加右图"
style
=
"margin:10px;"
id
=
"debrisSlider-addR
ight"
><
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
addBtn"
value
=
"添加右图"
style
=
"margin:10px;"
data
-
event
=
"debrisSlider.r
ight"
><
/p
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
...
...
@@ -592,10 +583,10 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].url.url"
/>
<
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
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].title"
/>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"right.[[index]].title"
/>
<
/div
>
<
/td
>
<
/tr
>
...
...
@@ -610,14 +601,14 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
标题:
<
/label
>
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
class
=
"form-control observe"
value
=
"[[contentData.data.title.title]]"
required
=
"required"
data
-
field
=
"title.title"
>
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"form-control observe"
value
=
"[[contentData.data.title.title]]"
required
=
"required"
data
-
field
=
"title.title"
>
<
/div
>
<
label
class
=
"col-sm-4 control-label"
>
是否显示
<
input
type
=
"checkbox"
name
=
"editorTalkIs_show"
value
=
"1"
id
=
"editorTalk-is_show"
>
<
input
type
=
"checkbox"
name
=
"editorTalkIs_show"
value
=
"1"
id
=
"editorTalk-is_show"
[[
contentData
.
data
.
title
.
is_show
==
1
?
'checked'
:
''
]]
>
<
input
type
=
"hidden"
id
=
"editorTalkIs_show"
for
=
"checkbox"
value
=
"[[contentData.data.title.is_show]]"
/>
<
/label
>
<
/div
>
<
p
><
input
type
=
"button"
class
=
"btn btn-info btn-xs
"
value
=
"添加标签"
style
=
"margin:10px;"
id
=
"editorTalk-addOne
"
><
/p
>
<
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
>
...
...
@@ -635,7 +626,7 @@
<
td
><
input
type
=
"file"
name
=
"file"
value
=
"[[item.src]]"
class
=
"observe"
data
-
field
=
"list.[[index]].src"
/><
/td
>
<
td
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"标签名称"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].title"
/>
<
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"
>
...
...
@@ -643,10 +634,10 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
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
editorTalk-del
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
delBtn"
data
-
event
=
"editorTalk.list
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
...
...
@@ -657,13 +648,13 @@
<script
type=
"text/template"
id=
"hotCategory-template"
>
<
div
class
=
"hotCategory"
>
<
p
>
标题
:
<
input
type
=
"text"
class
=
"observe"
data
-
field
=
"title.name"
value
=
"[[contentData.data.title.name]]"
required
>
更多名称
:
<
input
type
=
"text
"
class
=
"observe"
data
-
field
=
"title.more_name"
value
=
"[[contentData.data.title.more_name]]"
style
=
"width:50px;"
><
br
>
标题
:
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"observe"
data
-
field
=
"title.name"
value
=
"[[contentData.data.title.name]]"
required
>
更多名称
:
<
input
type
=
"text"
placeholder
=
"更多名称
"
class
=
"observe"
data
-
field
=
"title.more_name"
value
=
"[[contentData.data.title.more_name]]"
style
=
"width:50px;"
><
br
>
跳转目的
:
<
select
name
=
"goTo"
class
=
"observe"
value
=
"[[contentData.data.title.more_url.action]]"
data
-
field
=
"title.more_url.action"
>
[[
layout
action_template
]]
<
/select
>
跳转
url
:
<
input
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
跳转
url
:
<
input
type
=
"text"
value
=
"[[contentData.data.title.more_url.url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"title.more_url.url"
/>
<
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加左上图片"
style
=
"margin:10px;"
id
=
"hotCategory-addLeft
"
><
/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
>
...
...
@@ -686,13 +677,13 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"blocks.[[index]].url.url"
/>
<
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
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"blocks.[[index]].title"
/>
<
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
hotCategory-delLeft
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
delBtn"
data
-
event
=
"hotCategory.blocks
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
...
...
@@ -701,15 +692,15 @@
<
p
>
添加左下导航:
<
/p
>
[[
each
contentData
.
data
.
list
as
item
index
]]
<
p
>
导航名称:
<
input
type
=
"text"
class
=
"observe"
value
=
"[[item.name]]"
data
-
field
=
"list.[[index]].name"
>
导航名称:
<
input
type
=
"text"
placeholder
=
"导航名称"
class
=
"observe"
value
=
"[[item.name]]"
data
-
field
=
"list.[[index]].name"
>
<
select
name
=
"goTo"
class
=
"observe"
value
=
"[[item.url.action]]"
data
-
field
=
"list.[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
input
value
=
"[[item.url.url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
/p
>
[[
/each]
]
<
p
>
<
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加右侧图片"
style
=
"margin:10px;"
id
=
"hotCategory-addRight
"
>
<
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"
>
...
...
@@ -733,13 +724,13 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"imgs.[[index]].url.url"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"imgs.[[index]].url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"imgs.[[index]].title"
/>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"imgs.[[index]].title"
/>
<
/div
>
<
/td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
hotCategory-delRight
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
delBtn"
data
-
event
=
"hotCategory.imgs
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
...
...
@@ -750,12 +741,13 @@
<!--图片列表-->
<script
type=
"text/template"
id=
"imageList-template"
>
<
p
>
标题:
<
input
type
=
"text"
class
=
"observe"
data
-
field
=
"title.title"
value
=
"[[contentData.data.title.title]]"
style
=
"width:100px;"
>
显示名称:
<
input
type
=
"radio"
name
=
"is_show_name"
class
=
"is_show_name"
value
=
"Y"
>
是
<
input
type
=
"radio"
name
=
"is_show_name"
class
=
"is_show_name"
value
=
"N"
>
否
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
标题:
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"observe"
data
-
field
=
"title.title"
value
=
"[[contentData.data.title.title]]"
style
=
"width:100px;"
>
显示名称:
<
input
type
=
"radio"
name
=
"is_show_name"
class
=
"is_show_name"
value
=
"Y"
[[
contentData
.
data
.
title
.
is_show_name
==
"Y"
?
"checked"
:
""
]]
>
是
<
input
type
=
"radio"
name
=
"is_show_name"
class
=
"is_show_name"
value
=
"N"
[[
contentData
.
data
.
title
.
is_show_name
==
"N"
?
"checked"
:
""
]]
>
否
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
<
input
type
=
"hidden"
id
=
"is_show_name"
for
=
"radio"
value
=
"[[contentData.data.title.is_show_name]]"
/>
每行显示:
<
input
style
=
"width:60px;"
type
=
"number"
data
-
field
=
"title.column_num"
class
=
"observe"
value
=
"[[contentData.data.title.column_num]]"
>
张图片
<
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加图片"
style
=
"margin:10px;"
id
=
"imageList-addOne
"
><
/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
>
...
...
@@ -778,13 +770,13 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"list.[[index]].url.url"
/>
<
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
placeholder
=
"图片描述"
value
=
"[[item.title]]"
class
=
"observe form-control"
data
-
field
=
"list.[[index]].title"
/>
<
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
imageList-del
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
delBtn"
data
-
event
=
"imageList.list
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
...
...
@@ -794,23 +786,23 @@
<!--文本导航-->
<script
type=
"text/template"
id=
"textNav-template"
>
<
div
class
=
"textNav-baseForm"
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
"
value
=
"添加一个"
style
=
"margin:10px;"
id
=
"textNav-addOne
"
><
/p
>
<
p
><
input
type
=
"button"
name
=
"select-pic"
class
=
"btn btn-info btn-xs
addBtn"
value
=
"添加一个"
style
=
"margin:10px;"
data
-
event
=
"textNav.data
"
><
/p
>
[[
each
contentData
.
data
as
item
index
]]
<
p
>
导航名称:
<
input
type
=
"text"
value
=
"[[item.name]]"
class
=
"observe"
data
-
field
=
"[[index]].name"
required
>
导航名称:
<
input
type
=
"text"
placeholder
=
"导航名称"
value
=
"[[item.name]]"
class
=
"observe"
data
-
field
=
"[[index]].name"
required
=
"required"
>
<
select
name
=
"goTo"
class
=
"observe"
value
=
"[[item.url.action]]"
data
-
field
=
"[[index]].url.action"
>
[[
layout
action_template
]]
<
/select
>
<
input
value
=
"[[item.url.url]]"
data
-
field
=
"[[index]].url.url"
class
=
"observe"
required
=
"required"
/>
<
a
type
=
"button"
class
=
"btn btn-danger btn-xs textNav-delOne"
data
-
index
=
"[[index]]"
>
删除
<
/a
>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[item.url.url]]"
data
-
field
=
"[[index]].url.url"
class
=
"observe"
required
=
"required"
/>
<
a
type
=
"button"
class
=
"btn btn-danger btn-xs delBtn"
data
-
event
=
"textNav.data"
data
-
index
=
"[[index]]"
>
删除
<
/a
>
<
/p
>
[[
/each]
]
<
/div
>
</script>
<!--轮播banner-->
<script
type=
"text/template"
id=
"carouselBanner-template"
>
<
input
type
=
"button"
name
=
"select-pic"
value
=
"添加图片"
class
=
"btn btn-info btn-xs"
style
=
"margin:10px;"
id
=
"carouselBanner-addOne"
>
轮播速度:
<
input
type
=
"text"
class
=
"observe"
data
-
field
=
"speed"
value
=
"[[contentData.data.speed]]"
>
秒
<
br
>
<
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
>
...
...
@@ -824,7 +816,7 @@
<
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
carouselBanner-del"
type
=
"button
"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
delBtn"
type
=
"button"
data
-
event
=
"carouselBanner.list
"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
...
...
@@ -832,11 +824,11 @@
</script>
<!--添加促销-->
<script
type=
"text/template"
id=
"promotion-template"
>
<
p
>
添加促销
id
:
<
input
type
=
"text"
class
=
"observe"
value
=
"[[contentData.data.promotionId]]"
data
-
field
=
"promotionId"
><
/p
>
<
p
>
添加促销
id
:
<
input
type
=
"text"
placeholder
=
"促销id"
class
=
"observe"
value
=
"[[contentData.data.promotionId]]"
data
-
field
=
"promotionId"
><
/p
>
</script>
<!--标题广告-->
<script
type=
"text/template"
id=
"singleNameImage-template"
>
<
p
style
=
"margin:10px;"
>
添加标题:
<
input
type
=
"text"
class
=
"observe"
value
=
"[[contentData.data.title]]"
data
-
field
=
"title"
><
/p
>
<
p
style
=
"margin:10px;"
>
添加标题:
<
input
type
=
"text"
placeholder
=
"标题"
class
=
"observe"
value
=
"[[contentData.data.title]]"
data
-
field
=
"title"
><
/p
>
<
table
class
=
"table table-hover table-bordered responsive dataTable no-footer"
>
<
thead
>
<
tr
>
...
...
@@ -856,10 +848,10 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[contentData.data.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"url.url"
/>
<
input
type
=
"text"
placeholder
=
"url"
value
=
"[[contentData.data.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"url.url"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"图片描述"
value
=
"[[contentData.data.alt]]"
class
=
"observe form-control"
data
-
field
=
"alt"
/>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[contentData.data.alt]]"
class
=
"observe form-control"
data
-
field
=
"alt"
/>
<
/div
>
<
/td
>
<
/tr
>
...
...
@@ -868,7 +860,7 @@
</script>
<!--焦点图-->
<script
type=
"text/template"
id=
"focus-template"
>
<
input
type
=
"button"
class
=
"btn btn-info btn-xs
"
id
=
"focus-addOne
"
value
=
"添加图片"
style
=
"margin:10px;"
><
br
>
<
input
type
=
"button"
class
=
"btn btn-info btn-xs
addBtn"
data
-
event
=
"focus.data
"
value
=
"添加图片"
style
=
"margin:10px;"
><
br
>
焦点图类型:
&
nbsp
;
&
nbsp
;
<
select
id
=
"focus-select"
value
=
"[[contentData.focus_type]]"
>
<
option
value
=
"1"
>
通栏
<
/option
>
...
...
@@ -896,16 +888,16 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"url"
value
=
"[[item.url.url]]"
class
=
"observe form-control"
required
=
"required"
data
-
field
=
"[[index]].url.url"
/>
<
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
placeholder
=
"图片描述"
value
=
"[[item.alt]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].alt"
/>
<
input
type
=
"text"
placeholder
=
"图片描述"
value
=
"[[item.alt]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].alt"
/>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
placeholder
=
"通栏背景色"
value
=
"[[item.bgColor]]"
class
=
"observe form-control"
data
-
field
=
"[[index]].bgColor"
/>
<
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
focus-del
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
td
><
button
class
=
"btn btn-danger btn-sm
delBtn"
data
-
event
=
"focus.data
"
type
=
"button"
data
-
index
=
"[[index]]"
>
删除
<
/button></
td
>
<
/tr
>
[[
/each]
]
<
/tbody
>
...
...
@@ -966,10 +958,10 @@
<
/select
>
<
/div
>
<
div
class
=
"col-sm-12"
>
<
input
value
=
"[[url.url]]"
class
=
"recommendContent-observe"
required
=
"required"
data
-
rows
=
"[[__index]]"
data
-
index
=
"[[index]]"
data
-
observe
=
"list-url"
/>
<
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
placeholder
=
"图片描述"
value
=
"[[url.title]]"
class
=
"recommendContent-observe"
required
=
"required"
data
-
rows
=
"[[__index]]"
data
-
index
=
"[[index]]"
data
-
observe
=
"list-url"
/>
<
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
>
...
...
Please
register
or
login
to post a comment