Authored by dongjunjie

店铺销售类目管理

... ... @@ -10,7 +10,13 @@
<li><% pageName %></li>
</ul>
<div style="margin-top: 4px">
<h4 style="line-height: 30px;font-size: 24px"><% pageName %></h4>
<h4 style="line-height: 30px;font-size: 24px">
<%if subPageName%>
<%subPageName%>
<%else%>
<%pageName%>
<%/if%>
</h4>
</div>
</div>
</div>
... ...
module.exports = function (app){
app.get("/shop/shopCategory/index", "shop.ShopCategory.Index", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理"
}
});
app.get("/shop/shopCategory/info", "shop.ShopCategory.Info", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理",
subPageName:"店铺销售类目详情"
}
});
app.get("/shop/shopCategory/edit", "shop.ShopCategory.Edit", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理",
subPageName:"店铺销售类目编辑"
}
});
//店铺列表(公共)
app.post("","");
}
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<%include '../../../common/views/__ui/footer'%>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div style="margin-bottom: 20px">
<div class="form-group">
<select id="shop-select" name="shop-select" style="width: 300px;" class="form-control">
<option value="-1">请选择店铺</option>
</select>
</div>
</div>
<div style="margin-bottom: 20px">
<a class="add btn btn-success"><i class="fa fa-plus"></i> 新增销售类目</a>
</div>
<div style="margin-bottom: 20px">
</div>
</div>
<%include '../../../common/views/__ui/footer'%>
\ No newline at end of file
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<%include '../../../common/views/__ui/footer'%>
\ No newline at end of file
... ...
'use strict';
var $ = require('jquery'),
common = require('../../../common/common');
new common.dropDown({
el: "#shop-select",
ajax: "shopsRest"
});
... ...