Showing
13 changed files
with
174 additions
and
8 deletions
server/controllers/shop.shopCategory.js
0 → 100644
1 | +module.exports = function (app){ | ||
2 | + app.get("/shop/shopCategory/index222", "shop.ShopCategory.Index", function (req,res){ | ||
3 | + this.$extend={ | ||
4 | + moduleName:"店铺管理", | ||
5 | + pageName:"店铺销售类目管理" | ||
6 | + } | ||
7 | + }); | ||
8 | + | ||
9 | + app.vue("/shop/shopCategory/index", "shop.ShopCategory", function (req,res){ | ||
10 | + this.$extend={ | ||
11 | + moduleName:"店铺管理", | ||
12 | + pageName:"店铺销售类目管理" | ||
13 | + } | ||
14 | + }); | ||
15 | + | ||
16 | + app.get("/shop/shopCategory/add", "shop.ShopCategory.Info", function (rs,req,res){ | ||
17 | + this.$extend={ | ||
18 | + moduleName:"店铺管理", | ||
19 | + pageName:"店铺销售类目管理", | ||
20 | + subPageName:"新增店铺销售类目" | ||
21 | + } | ||
22 | + }); | ||
23 | + | ||
24 | + app.get("/shop/shopCategory/info/:shopId", "shop.ShopCategory.Info", function (rs,req,res){ | ||
25 | + this.$extend={ | ||
26 | + moduleName:"店铺管理", | ||
27 | + pageName:"店铺销售类目管理", | ||
28 | + subPageName:"店铺销售类目详情" | ||
29 | + } | ||
30 | + }); | ||
31 | + | ||
32 | + app.get("/shop/shopCategory/edit/:shopId", "shop.ShopCategory.Edit", function (rs,req,res){ | ||
33 | + this.$extend={ | ||
34 | + moduleName:"店铺管理", | ||
35 | + pageName:"店铺销售类目管理", | ||
36 | + subPageName:"店铺销售类目编辑" | ||
37 | + } | ||
38 | + }); | ||
39 | + | ||
40 | + //店铺列表(公共) | ||
41 | + app.post("",""); | ||
42 | + | ||
43 | +} | ||
44 | + |
server/interfaces/customService.blackList.js
0 → 100644
@@ -370,8 +370,9 @@ function __sendRequest(options, success, fail, wlen, i, args) { | @@ -370,8 +370,9 @@ function __sendRequest(options, success, fail, wlen, i, args) { | ||
370 | obj = options.outobj.toLocaleUpperCase().indexOf("BODY")>-1?body:response; | 370 | obj = options.outobj.toLocaleUpperCase().indexOf("BODY")>-1?body:response; |
371 | } | 371 | } |
372 | } else { | 372 | } else { |
373 | - _err_.message = "Error[response state @" + options.title + "--"+options.url+"]:" + response.statusCode; | ||
374 | - console.info(_err_.message); | 373 | + _err_.message = "接口异常"; |
374 | + console.info("Error[response state @" + options.title + "--"+options.url+"]:" + response.statusCode); | ||
375 | + console.info(response); | ||
375 | console.error(_err_); | 376 | console.error(_err_); |
376 | wlen.len = 0; | 377 | wlen.len = 0; |
377 | fail && fail(_err_); | 378 | fail && fail(_err_); |
server/views/common/Vue.html
0 → 100644
server/views/customService/BlackList.html
0 → 100644
1 | +<%include '../common/__ui/header'%> | ||
2 | +<%include '../common/__partail/ListHeader'%> | ||
3 | + | ||
4 | +<div class="contentpanel"> | ||
5 | + <div class="panel panel-default" style="margin-bottom:10px;"> | ||
6 | + <div class="panel-body"> | ||
7 | + <div class="row"> | ||
8 | + <div class="panel-col2"> | ||
9 | + <input placeholder="请输入用户uid" id="uid" class="form-control"> | ||
10 | + </div> | ||
11 | + <div class="panel-col"> | ||
12 | + <a id="dismiss" href="javascript:;" class="btn btn-info">解除</a> | ||
13 | + </div> | ||
14 | + </div> | ||
15 | + </div> | ||
16 | + </div> | ||
17 | +</div> | ||
18 | + | ||
19 | +<%include '../common/__ui/footer'%> |
@@ -99,7 +99,7 @@ | @@ -99,7 +99,7 @@ | ||
99 | <td>说明:</td> | 99 | <td>说明:</td> |
100 | <td colspan="2"> | 100 | <td colspan="2"> |
101 | 1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br> | 101 | 1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br> |
102 | - 2、第一行标题栏:<span style="color: #67D267;">货品名称、厂家编号、一级分类、二级分类、三级分类、四级分类、性别、货品年、货品季、吊牌价、销售价、色系、厂家颜色、款型、尺码、条码、能否补货、SKN计数,年龄层(成人,大童,小童),重点款,预计上架时间,UPM条码</span><br> | 102 | + 2、第一行标题栏:<span style="color: #67D267;">货品名称、厂家编号、一级分类、二级分类、三级分类、四级分类、性别、货品年、货品季、吊牌价、销售价、色系、厂家颜色、款型、尺码、条码、能否补货、SKN计数、年龄层(成人,大童,小童,中童,幼童)、重点款、预计上架时间、UPM条码</span><br> |
103 | 3、<a href="/ajax/link/baseproduct">下载样例</a> | 103 | 3、<a href="/ajax/link/baseproduct">下载样例</a> |
104 | </td> | 104 | </td> |
105 | </tr> | 105 | </tr> |
@@ -8,13 +8,15 @@ | @@ -8,13 +8,15 @@ | ||
8 | <div class="form-group"> | 8 | <div class="form-group"> |
9 | <input id="uploadBox" name="file" type="file" style="position: absolute; top: 0;left: 0;z-index: -999"> | 9 | <input id="uploadBox" name="file" type="file" style="position: absolute; top: 0;left: 0;z-index: -999"> |
10 | <div id="chooseFile" class="file-name btn btn-success">上传商品</div> | 10 | <div id="chooseFile" class="file-name btn btn-success">上传商品</div> |
11 | + <a href="/operations/activitytemplate/index" class="btn btn-default">返回</a> | ||
11 | <p style="color: #999">注:上传.xls文件</p> | 12 | <p style="color: #999">注:上传.xls文件</p> |
12 | </div> | 13 | </div> |
13 | </div> | 14 | </div> |
14 | </div> | 15 | </div> |
15 | <div class="panel-body" id="condition"> | 16 | <div class="panel-body" id="condition"> |
16 | <div class="panel-col"> | 17 | <div class="panel-col"> |
17 | - <input type="text" class="form-control" name="product_skn" placeholder="输入SKN查询" id="productSkn"> | 18 | + <input type="text" class="form-control" name="product_skn" placeholder="输入SKN查询" id="productSkn" |
19 | + onkeyup="this.value=this.value.replace(/\D/gi,'')"> | ||
18 | </div> | 20 | </div> |
19 | <a id="filter-btn" class="btn btn-info">筛选</a> | 21 | <a id="filter-btn" class="btn btn-info">筛选</a> |
20 | <a href="<%url%>" class="btn btn-info">全部</a> | 22 | <a href="<%url%>" class="btn btn-info">全部</a> |
@@ -24,20 +24,20 @@ | @@ -24,20 +24,20 @@ | ||
24 | <div class="form-group"> | 24 | <div class="form-group"> |
25 | <label class="col-sm-1 control-label">分享名称</label> | 25 | <label class="col-sm-1 control-label">分享名称</label> |
26 | <div class="col-sm-9"> | 26 | <div class="col-sm-9"> |
27 | - <input type="text" name="title" class="form-control observe" placeholder="活动分享名称" required="" value="[[title]]" data-field="title"> | 27 | + <input maxlength="128" type="text" name="title" class="form-control observe" placeholder="活动分享名称" required="" value="[[title]]" data-field="title"> |
28 | <p style="color:#999">注:分享名称必填</p> | 28 | <p style="color:#999">注:分享名称必填</p> |
29 | </div> | 29 | </div> |
30 | </div> | 30 | </div> |
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | <label class="col-sm-1 control-label">分享主标题</label> | 32 | <label class="col-sm-1 control-label">分享主标题</label> |
33 | <div class="col-sm-9"> | 33 | <div class="col-sm-9"> |
34 | - <input type="text" name="share_title_main" class="form-control observe" placeholder="分享主标题" value="[[shareTitleMain]]" data-field="shareTitleMain"> | 34 | + <input maxlength="128" type="text" name="share_title_main" class="form-control observe" placeholder="分享主标题" value="[[shareTitleMain]]" data-field="shareTitleMain"> |
35 | </div> | 35 | </div> |
36 | </div> | 36 | </div> |
37 | <div class="form-group"> | 37 | <div class="form-group"> |
38 | <label class="col-sm-1 control-label">分享副标题</label> | 38 | <label class="col-sm-1 control-label">分享副标题</label> |
39 | <div class="col-sm-9"> | 39 | <div class="col-sm-9"> |
40 | - <input type="text" name="share_title_sub" class="form-control observe" placeholder="分享副标题" value="[[shareTitleSub]]" data-field="shareTitleSub"> | 40 | + <input maxlength="128" type="text" name="share_title_sub" class="form-control observe" placeholder="分享副标题" value="[[shareTitleSub]]" data-field="shareTitleSub"> |
41 | </div> | 41 | </div> |
42 | </div> | 42 | </div> |
43 | <div class="form-group"> | 43 | <div class="form-group"> |
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | <div class="panel-body" id="condition"> | 13 | <div class="panel-body" id="condition"> |
14 | <div class="row"> | 14 | <div class="row"> |
15 | <div class="panel-col"> | 15 | <div class="panel-col"> |
16 | - <input type="text" class="form-control" name="product_skn" placeholder="分享id" id="shareId-filter"> | 16 | + <input type="text" class="form-control" name="product_skn" placeholder="分享id" id="shareId-filter" onkeyup="this.value=this.value.replace(/\D/gi,'')"> |
17 | </div> | 17 | </div> |
18 | <div class="panel-col"> | 18 | <div class="panel-col"> |
19 | <input type="text" class="form-control" name="product_skn" placeholder="标题" id="title-filter"> | 19 | <input type="text" class="form-control" name="product_skn" placeholder="标题" id="title-filter"> |
server/views/shop/ShopCategory/Edit.html
0 → 100644
server/views/shop/ShopCategory/Index.html
0 → 100644
1 | +<%include '../../common/__ui/header'%> | ||
2 | +<%include '../../common/__partail/ListHeader'%> | ||
3 | + | ||
4 | +<div class="contentpanel"> | ||
5 | + <div class="panel"> | ||
6 | + <div class="selectShop"> | ||
7 | + <div class="form-group" style="float: left"> | ||
8 | + <select id="shop-select" name="shop-select" style="width: 320px;" class="form-control"> | ||
9 | + <option value="-1">请选择店铺</option> | ||
10 | + </select> | ||
11 | + </div> | ||
12 | + <div id="shopInfo" style="font-family:'microsoft yahei';font-size: 18px;line-height: 40px;float: left;margin-left: 40px"> | ||
13 | + <span id="shopId"><font color="#999">店铺ID:</font><b>--</b></span> | ||
14 | + <span id="shopName" style="margin-left: 20px"><font color="#999">店铺名称:</font><b>--</b></span> | ||
15 | + </div> | ||
16 | + <div class="clearfix"></div> | ||
17 | + </div> | ||
18 | + | ||
19 | + | ||
20 | + <div class="panel-body" style="background: #eeeeee"> | ||
21 | + <div id="showCategory" style="display: none"></div> | ||
22 | + <h1 id="initCategory" style="height: 500px;text-align: center;line-height: 500px;color: #999999">请先选择相关店铺!</h1> | ||
23 | + </div> | ||
24 | + </div> | ||
25 | +</div> | ||
26 | + | ||
27 | +<script type="text/template" id="listTemplate"> | ||
28 | + <div class="addCategory" style="margin-bottom: 20px"> | ||
29 | + <a class="btn btn-success addBtn"><i class="fa fa-plus"></i> 新增销售类目</a> | ||
30 | + <span style="float: right;font-size: 16px;line-height:37px;font-family:'simhei'"> | ||
31 | + 当前店铺共有:<b style="color: #5cb85c;font-size: 20px">[[data.length]]</b> 条销售类目,<font color="#f0ad4e">最多可以添加20条</font> | ||
32 | + </span> | ||
33 | + </div> | ||
34 | + <table class="table table-striped table-bordered responsive dataTable no-footer" style="text-align: center"> | ||
35 | + <thead> | ||
36 | + <tr> | ||
37 | + <th style="text-align: center">类目ID</th> | ||
38 | + <th style="text-align: center">类目名称</th> | ||
39 | + <th style="text-align: center">创建时间</th> | ||
40 | + <th style="text-align: center">已关联商品数量</th> | ||
41 | + <th style="text-align: center">操作</th> | ||
42 | + </tr> | ||
43 | + </thead> | ||
44 | + <tbody style="line-height: 27px"> | ||
45 | + [[if data.length > 0]] | ||
46 | + [[each data as item _index]] | ||
47 | + <tr> | ||
48 | + <td style="line-height: 27px">[[item.id]]</td> | ||
49 | + <td style="line-height: 27px">[[item.name]]</td> | ||
50 | + <td style="line-height: 27px">[[item.date]]</td> | ||
51 | + <td style="line-height: 27px">[[item.num]]</td> | ||
52 | + <td style="line-height: 27px"> | ||
53 | + <a href='/shop/shopCategory/edit/[[item.id]]' class='btn btn-xs btn-primary'>编辑</a> | ||
54 | + <a href='/shop/shopCategory/info/[[item.id]]' class='btn btn-xs btn-info'>查看</a> | ||
55 | + <a href='javascript:' class='btn btn-xs btn-danger deleteBtn' data-index='"+_index+"'>删除</a> | ||
56 | + </td> | ||
57 | + </tr> | ||
58 | + [[/each]] | ||
59 | + [[else]] | ||
60 | + <tr><td colspan="6">当前店铺暂无销售类目!</td></tr> | ||
61 | + [[/if]] | ||
62 | + </tbody> | ||
63 | + </table> | ||
64 | +</script> | ||
65 | + | ||
66 | +<%include '../../common/__ui/footer'%> |
server/views/shop/ShopCategory/Info.html
0 → 100644
-
Please register or login to post a comment