Authored by weiqingting

提交

... ... @@ -32,7 +32,7 @@ var urlObj = {
// 逛
'guangGetAuthorList':'/guang/article/getAuthorList', // 逛-获取作者
'guangGetSortList':'/guang/article/getSortList', // 逛-获取作者
'guangGetSortList':'/ajax/guang/article/getSortList', // 逛-获取作者
'guangGetTagCategoryByStatus':'/guang/tagSort/getTagItems',
'guangCommentGetFilterItems':'/guang/comment/getItems', // 逛-评论列表-获取筛选条件
'guangPlusSatrChannel':'/guang/plustarcategory/getCategoryNames', // 逛-plus star 频道
... ...
... ... @@ -53,10 +53,10 @@ Bll.getBrands();
$("#panel-body").html(common.util.__template2($("#tempalte1").html(),ENUM));
new common.dropDown({el:"#authorId",ajax:"guangGetAuthorList"});
new common.dropDown({el:"#maxSortId",ajax:"guangGetSort",params:function(){
new common.dropDown({el:"#maxSortId",ajax:"guangGetSortList",params:function(){
return {pid:0};
}});
new common.dropDown({el:"#minSortId",ajax:"guangGetSort",params:function(){
new common.dropDown({el:"#minSortId",ajax:"guangGetSortList",params:function(){
return {pid:$("#maxSortId").val()};
}});
... ... @@ -109,6 +109,6 @@ e.init();
$(document).on("click","#submit",function(){
e.submit($("#panel-body").attr("action"),function(option){
console.log(option.data);
option.data.debug=true;
option.debug=true;
});
});
\ No newline at end of file
... ...
... ... @@ -141,11 +141,11 @@ exports.res = [
{name:"brandId",type:"Number"}
]
},{
route:'/guang/article/getSortList',
route:'/ajax/guang/article/getSortList',
method:'POST',
url:'/guang/article/getSortList',
params:[
{name:"pid",type:"String"}
{name:"pid",type:"Number"}
]
}
... ...
... ... @@ -558,10 +558,48 @@ exports.res = [
]
},
{
route:'/guang/article/contentAdd',
method:'GET',
view:'pages/guang/contentEdit',
src:'/guang/contentEdit',
data:{
action:"/guang/article/addArticle"
},
params:[
{name:"articleTitle",type:"String"},
{name:"articleGender",type:"String"},
{name:"authorId",type:"Number"},
{name:"maxSortId",type:"Number"},
{name:"minSortId",type:"Number"},
{name:"articleSummary",type:"String"},
{name:"coverImage",type:"String"},
{name:"coverImageType",type:"Number"},
{name:"articleType",type:"Number"},
{name:"adsImgSize",type:"String"},
{name:"url",type:"String"},
{name:"contentData",type:"String"},
{name:"brands",type:"String"}
]
},
{
route:'/guang/article/contentEdit',
method:'GET',
view:'pages/guang/contentEdit',
src:'/guang/contentEdit'
src:'/guang/contentEdit',
data:{
action:"/guang/article/updateArticle"
},
params:[
{name:""}
]
},
{
route:'/guang/article/getArticleDetail',
method:'POST',
src:'/guang/article/getArticleDetail',
params:[
{name:"id",type:"Number"}
]
},
{
route:'/guang/article/getEnumList',
... ...
... ... @@ -107,6 +107,7 @@ exports.uploadFile = function (req, res) {
});
} else {
req.body.file = fs.createReadStream(req.files[req.body.filename].path);
// delete req.body.files;
request.post({
url: domain + '/fileupload/upload',
formData: req.body
... ...
... ... @@ -30,7 +30,7 @@
<div class="panel-footer">
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<button type="submit" id="submit" class="btn btn-primary mr5">保存</button>
<input type="button" id="submit" class="btn btn-primary mr5" value="保存" />
</div>
</div>
</div>
... ... @@ -44,7 +44,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">文章标题:</label>
<div class="col-sm-8">
<input type="text" id="articleTitle" class="form-control" placeholder="文章标题" required="" value="[[articleTitle]]">
<input type="text" id="articleTitle" class="form-control" placeholder="文章标题" required value="[[articleTitle]]">
</div>
</div>
<div class="form-group">
... ... @@ -84,9 +84,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">文章摘要:</label>
<div class="col-sm-8">
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" >
[[articleSummary]]
</textarea>
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" >[[articleSummary]]</textarea>
</div>
</div>
<div class="form-group">
... ... @@ -134,7 +132,7 @@
<label class="col-sm-2 control-label">链接:</label>
<div class="col-sm-7">
<input type="text" name="url" id="url" value="" class="form-control" placeholder="请输入内容链接" readonly="true" required="">
<input type="text" name="url" id="url" value="" class="form-control" placeholder="请输入内容链接" readonly="true" required>
<p style="color:#999">注:链接中不能有英文单引号</p>
</div>
<div class="col-sm-1">
... ...