Authored by dongjunjie

控制器修改

module.exports = function (app){
app.get("/erpproduct/brands/index", "shop.Index", function (req,res){
app.get("/erpproduct/brands/index", "brand.Index", function (req,res){
this.$extend={
bottons:'{"edit":true}',
gridurl:'/brand/getBrandList'
}
});
app.get("/erpproduct/brands/edit/:brandId", "shop.Edit", function (req,res){
app.get("/erpproduct/brands/edit/:brandId", "brand.Edit", function (req,res){
this.$extend={
action: '/brand/edit'
}
});
app.get("/erpproduct/brands/add", "shop.Edit", function (req,res){
app.get("/erpproduct/brands/add", "brand.Edit", function (req,res){
this.$extend={
action:'/erpproduct/ajax/brands/add',
data:{}
... ...
module.exports = function (app){
app.get("/erpproduct/brands/edit/:brandId", "shop.Edit", function (req,res){
this.$extend={
action: '/brand/edit'
}
});
}
... ...
module.exports = function (app){
app.get("/operations/helpcategory/index", "shop.Edit", function (req,res){
this.$extend={
action: '/brand/edit'
}
});
}
... ...
module.exports= {
namespace: "helpCategory",
apis: {
}
}
\ No newline at end of file
... ...
module.exports= {
namespace: "helpContent",
apis: {
}
}
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<div>
<div style="width: 30%;float: left;">
<h4>帮助分类</h4>
</div>
</div>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom: 10px;">
<div class="panel-body">
<div class="row">
<a class="btn btn-info" id="add-category">添加帮助分类</a>
</div>
</div>
<div id="help_list"></div>
</div>
</div>
<script type="text/template" id="template">
<div class="rows" id="baseform">
<div class="form-group">
<label for="categoryName" class="col-sm-2 control-label">分类名称</label>
<div class="col-sm-10">
<input type="hidden" value="{id}" id="id" />
<input type="text" value="{categoryName}" id="categoryName" class="form-control" required="required" />
<label>注:分类名称必填</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">一级分类</label>
<div class="col-sm-10">
<select id="parentId" style="width: 280px;" value="{parentId}" name="{parentId}">
<option value="{parentId}">请选择</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">品牌风格</label>
<div class="col-sm-8">
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="iphone">IOS手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="ipad">IOS Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="android">安卓手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="androidpad">安卓Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="h5">手机网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="web">网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="platform">平台</label>
</div>
<input type="hidden" id="platform" value="{platform}" for="checkbox">
</div>
</div>
</script>
\ No newline at end of file
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">帮助管理</a></li>
<li>内容列表管理</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>内容列表管理</h4>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-heading">
<a class="btn btn-success " id="add-content"><i class="fa fa-plus"></i> 添加内容</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<select value="{categoryId}" name="categoryId" id="help-categoryId" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1">选择分类</option>
</select>
</div>
<div class="panel-col">
<select name="platform" id="help-platform" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">选择显示平台</option>
<option value="iphone">IOS手机</option>
<option value="ipad">IOS Pad</option>
<option value="android">安卓手机</option>
<option value="androidpad">安卓Pad</option>
<option value="h5">手机网站</option>
<option value="web">网站</option>
<option value="platform">平台</option>
</select>
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/operations/helpcontent/index" class="btn btn-info">全部</a>
</div>
</div>
<div id="content-list"></div>
</div>
<script type="text/template" id="template">
<div class="rows" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label" for="title">标题</label>
<input type="hidden" value="{id}" id="id" />
<div class="col-sm-10">
<input type="text" value="{title}" class="form-control" id="title" required="required" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="content">帮助内容</label>
<div class="col-sm-10">
<input type="text" value="{content}" class="form-control" id="content" required="required" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="categoryId">分类</label>
<div class="col-sm-10">
<select id="categoryId" style="width: 280px;" value="{categoryId}">
<option value="{categoryId}">请选择分类</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">显示平台</label>
<div class="col-sm-8">
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="iphone">IOS手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="ipad">IOS Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="android">安卓手机</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="androidpad">安卓Pad</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="h5">手机网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="web">网站</label>
<label style="cursor: pointer;"><input type="checkbox" name="platform" value="platform">平台</label>
</div>
<input type="hidden" id="platform" value="{platform}" for="checkbox">
</div>
</div>
</script>
\ No newline at end of file
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">客服管理</a></li>
<li>黑名单限制</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>黑名单限制</h4>
</div>
</div>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<div class="panel-col-2">
<input placeholder="请输入用户uid" id="uid" class="form-control">
<a id="dismiss" href="javascript:;" class="btn btn-info">解除</a>
</div>
</div>
</div>
</div>
<div class="panel panel-primary-head">
<div class="dataTab_wrapper" id="basicTab"></div>
<div class="dataTab_wrapper" id="basicTable" ></div>
</div>
</div>
\ No newline at end of file
... ...
module.exports = function (app){
app.get("/supplier/supplier/index", "shop.Index", function (req,res){
app.get("/supplier/supplier/index", "supplier.Index", function (req,res){
this.$extend={
iscreate:true,
bottons:'{"columnsHidOper":true,"columnsHidisFr":true}',
... ... @@ -14,7 +14,7 @@ module.exports = function (app){
}
});
app.get("/supplier/add", "shop.Edit", function (req,res){
app.get("/supplier/add", "supplier.Edit", function (req,res){
this.$extend={
action:'/brand/supplier/add',
data:{},
... ...
module.exports = function (app){
app.get("/supplier/supplier/auditlist", "shop.Index", function (req,res){
app.get("/supplier/supplier/auditlist", "supplier.Index", function (req,res){
this.$extend={
bottons:'{"edit":true,"columnsHidisFr":true}',
gridurl:'/supplier/create/getAuditSupplierList',
... ... @@ -7,7 +7,7 @@ module.exports = function (app){
}
});
app.get("/supplier/infoopt/:id", "shop.Info", function (req,res){
app.get("/supplier/infoopt/:id", "supplier.Info", function (req,res){
this.$extend={
edit:true
}
... ...
module.exports = function (app){
app.get("/supplier/supplier/managelist", "shop.Index", function (req,res){
app.get("/supplier/supplier/managelist", "supplier.Index", function (req,res){
this.$extend={
bottons:'{"resetlock":true,"updatecheck":true}',
gridurl:'/supplier/create/getManageSupplierList',
... ... @@ -13,7 +13,7 @@ module.exports = function (app){
}
});
app.get("/supplier/update/:id", "shop.Edit", function (req,res){
app.get("/supplier/update/:id", "supplier.Edit", function (req,res){
this.$extend={
action:'/brand/action/update',
pageTitle:"修改供应商",
... ... @@ -21,7 +21,7 @@ module.exports = function (app){
}
});
app.get("/supplier/updatecheck/:id", "shop.Edit", function (req,res){
app.get("/supplier/updatecheck/:id", "supplier.Edit", function (req,res){
this.$extend={
action:'/brand/action/update',
pageTitle:"修改供应商",
... ...