Authored by dongjunjie

mvc

module.exports = function (app){
app.get("/user/blacklist", "customService.BlackList", function (req,res){
this.$extend={
moduleName:"客服管理",
pageName:"黑名单限制"
}
});
//解除锁定
app.post("/profile/rmBlackUser","blackList_rmBlackUser");
}
... ...
module.exports = function (app){
app.get("/shop/shopCategory/index222", "shop.ShopCategory.Index", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理"
}
});
app.vue("/shop/shopCategory/index", "shop.ShopCategory", function (req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理"
}
});
app.get("/shop/shopCategory/add", "shop.ShopCategory.Info", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理",
subPageName:"新增店铺销售类目"
}
});
app.get("/shop/shopCategory/info/:shopId", "shop.ShopCategory.Info", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理",
subPageName:"店铺销售类目详情"
}
});
app.get("/shop/shopCategory/edit/:shopId", "shop.ShopCategory.Edit", function (rs,req,res){
this.$extend={
moduleName:"店铺管理",
pageName:"店铺销售类目管理",
subPageName:"店铺销售类目编辑"
}
});
//店铺列表(公共)
app.post("","");
}
... ...
module.exports={
namespace:"blackList",
apis:{
rmBlackUser:{
title:"解除锁定",
url:"/profile/rmBlackUser",
params:[
{name: 'uid', type: 'Number'}
]
}
}
}
... ...
... ... @@ -370,8 +370,9 @@ function __sendRequest(options, success, fail, wlen, i, args) {
obj = options.outobj.toLocaleUpperCase().indexOf("BODY")>-1?body:response;
}
} else {
_err_.message = "Error[response state @" + options.title + "--"+options.url+"]:" + response.statusCode;
console.info(_err_.message);
_err_.message = "接口异常";
console.info("Error[response state @" + options.title + "--"+options.url+"]:" + response.statusCode);
console.info(response);
console.error(_err_);
wlen.len = 0;
fail && fail(_err_);
... ...
<%include '__ui/header'%>
<app></app>
<%include '__ui/footer'%>
\ No newline at end of file
... ...
<%include '../common/__ui/header'%>
<%include '../common/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<div class="panel-col2">
<input placeholder="请输入用户uid" id="uid" class="form-control">
</div>
<div class="panel-col">
<a id="dismiss" href="javascript:;" class="btn btn-info">解除</a>
</div>
</div>
</div>
</div>
</div>
<%include '../common/__ui/footer'%>
\ No newline at end of file
... ...
... ... @@ -99,7 +99,7 @@
<td>说明:</td>
<td colspan="2">
1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
2、第一行标题栏:<span style="color: #67D267;">货品名称、厂家编号、一级分类、二级分类、三级分类、四级分类、性别、货品年、货品季、吊牌价、销售价、色系、厂家颜色、款型、尺码、条码、能否补货、SKN计数,年龄层(成人,大童,小童),重点款,预计上架时间,UPM条码</span><br>
2、第一行标题栏:<span style="color: #67D267;">货品名称、厂家编号、一级分类、二级分类、三级分类、四级分类、性别、货品年、货品季、吊牌价、销售价、色系、厂家颜色、款型、尺码、条码、能否补货、SKN计数、年龄层(成人,大童,小童,中童,幼童)、重点款、预计上架时间、UPM条码</span><br>
3、<a href="/ajax/link/baseproduct">下载样例</a>
</td>
</tr>
... ...
... ... @@ -8,13 +8,15 @@
<div class="form-group">
<input id="uploadBox" name="file" type="file" style="position: absolute; top: 0;left: 0;z-index: -999">
<div id="chooseFile" class="file-name btn btn-success">上传商品</div>
<a href="/operations/activitytemplate/index" class="btn btn-default">返回</a>
<p style="color: #999">注:上传.xls文件</p>
</div>
</div>
</div>
<div class="panel-body" id="condition">
<div class="panel-col">
<input type="text" class="form-control" name="product_skn" placeholder="输入SKN查询" id="productSkn">
<input type="text" class="form-control" name="product_skn" placeholder="输入SKN查询" id="productSkn"
onkeyup="this.value=this.value.replace(/\D/gi,'')">
</div>
<a id="filter-btn" class="btn btn-info">筛选</a>
<a href="<%url%>" class="btn btn-info">全部</a>
... ...
... ... @@ -24,20 +24,20 @@
<div class="form-group">
<label class="col-sm-1 control-label">分享名称</label>
<div class="col-sm-9">
<input type="text" name="title" class="form-control observe" placeholder="活动分享名称" required="" value="[[title]]" data-field="title">
<input maxlength="128" type="text" name="title" class="form-control observe" placeholder="活动分享名称" required="" value="[[title]]" data-field="title">
<p style="color:#999">注:分享名称必填</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">分享主标题</label>
<div class="col-sm-9">
<input type="text" name="share_title_main" class="form-control observe" placeholder="分享主标题" value="[[shareTitleMain]]" data-field="shareTitleMain">
<input maxlength="128" type="text" name="share_title_main" class="form-control observe" placeholder="分享主标题" value="[[shareTitleMain]]" data-field="shareTitleMain">
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">分享副标题</label>
<div class="col-sm-9">
<input type="text" name="share_title_sub" class="form-control observe" placeholder="分享副标题" value="[[shareTitleSub]]" data-field="shareTitleSub">
<input maxlength="128" type="text" name="share_title_sub" class="form-control observe" placeholder="分享副标题" value="[[shareTitleSub]]" data-field="shareTitleSub">
</div>
</div>
<div class="form-group">
... ...
... ... @@ -13,7 +13,7 @@
<div class="panel-body" id="condition">
<div class="row">
<div class="panel-col">
<input type="text" class="form-control" name="product_skn" placeholder="分享id" id="shareId-filter">
<input type="text" class="form-control" name="product_skn" placeholder="分享id" id="shareId-filter" onkeyup="this.value=this.value.replace(/\D/gi,'')">
</div>
<div class="panel-col">
<input type="text" class="form-control" name="product_skn" placeholder="标题" id="title-filter">
... ...
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<%include '../../common/__ui/footer'%>
\ No newline at end of file
... ...
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel">
<div class="selectShop">
<div class="form-group" style="float: left">
<select id="shop-select" name="shop-select" style="width: 320px;" class="form-control">
<option value="-1">请选择店铺</option>
</select>
</div>
<div id="shopInfo" style="font-family:'microsoft yahei';font-size: 18px;line-height: 40px;float: left;margin-left: 40px">
<span id="shopId"><font color="#999">店铺ID:</font><b>--</b></span>
<span id="shopName" style="margin-left: 20px"><font color="#999">店铺名称:</font><b>--</b></span>
</div>
<div class="clearfix"></div>
</div>
<div class="panel-body" style="background: #eeeeee">
<div id="showCategory" style="display: none"></div>
<h1 id="initCategory" style="height: 500px;text-align: center;line-height: 500px;color: #999999">请先选择相关店铺!</h1>
</div>
</div>
</div>
<script type="text/template" id="listTemplate">
<div class="addCategory" style="margin-bottom: 20px">
<a class="btn btn-success addBtn"><i class="fa fa-plus"></i> 新增销售类目</a>
<span style="float: right;font-size: 16px;line-height:37px;font-family:'simhei'">
当前店铺共有:<b style="color: #5cb85c;font-size: 20px">[[data.length]]</b>&nbsp;条销售类目,<font color="#f0ad4e">最多可以添加20条</font>
</span>
</div>
<table class="table table-striped table-bordered responsive dataTable no-footer" style="text-align: center">
<thead>
<tr>
<th style="text-align: center">类目ID</th>
<th style="text-align: center">类目名称</th>
<th style="text-align: center">创建时间</th>
<th style="text-align: center">已关联商品数量</th>
<th style="text-align: center">操作</th>
</tr>
</thead>
<tbody style="line-height: 27px">
[[if data.length > 0]]
[[each data as item _index]]
<tr>
<td style="line-height: 27px">[[item.id]]</td>
<td style="line-height: 27px">[[item.name]]</td>
<td style="line-height: 27px">[[item.date]]</td>
<td style="line-height: 27px">[[item.num]]</td>
<td style="line-height: 27px">
<a href='/shop/shopCategory/edit/[[item.id]]' class='btn btn-xs btn-primary'>编辑</a>
<a href='/shop/shopCategory/info/[[item.id]]' class='btn btn-xs btn-info'>查看</a>
<a href='javascript:' class='btn btn-xs btn-danger deleteBtn' data-index='"+_index+"'>删除</a>
</td>
</tr>
[[/each]]
[[else]]
<tr><td colspan="6">当前店铺暂无销售类目!</td></tr>
[[/if]]
</tbody>
</table>
</script>
<%include '../../common/__ui/footer'%>
\ No newline at end of file
... ...
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<%include '../../common/__ui/footer'%>
\ No newline at end of file
... ...