Showing
11 changed files
with
71 additions
and
30 deletions
@@ -6,10 +6,11 @@ | @@ -6,10 +6,11 @@ | ||
6 | module.exports=function(app) { | 6 | module.exports=function(app) { |
7 | 7 | ||
8 | /*销售类目主页*/ | 8 | /*销售类目主页*/ |
9 | - app.get("/runManage/subjectManage/index","operations.subject.Index", function () { | 9 | + app.get("/runManage/subjectManage/index","operations.subject.Index", ["subject_queryBaseProductPoolList"],function (rs) { |
10 | this.$extend = { | 10 | this.$extend = { |
11 | moduleName: "运营管理", | 11 | moduleName: "运营管理", |
12 | - pageName: "专题管理" | 12 | + pageName: "专题管理", |
13 | + select:rs.data | ||
13 | } | 14 | } |
14 | }); | 15 | }); |
15 | 16 |
@@ -94,15 +94,17 @@ if(process.env.NODE_ENV!="coding"){ | @@ -94,15 +94,17 @@ if(process.env.NODE_ENV!="coding"){ | ||
94 | } | 94 | } |
95 | } | 95 | } |
96 | /*线下测试环境*/ | 96 | /*线下测试环境*/ |
97 | -if(process.env.NODE_ENV==="test211"){ | ||
98 | - apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform"; | ||
99 | - apiCofig.EnvConst.yohoSearch="http://192.168.102.216:8080/yohosearch"; | ||
100 | -} | ||
101 | -/*腾讯云*/ | 97 | +// if(process.env.NODE_ENV==="test211"){ |
98 | +// apiCofig.EnvConst.domain="http://192.168.102.202:8088/platform"; | ||
99 | +// apiCofig.EnvConst.yohoSearch="http://192.168.102.216:8080/yohosearch"; | ||
100 | +// } | ||
101 | + | ||
102 | +/*测试环境*/ | ||
102 | if(process.env.NODE_ENV==="test"){ | 103 | if(process.env.NODE_ENV==="test"){ |
103 | - apiCofig.EnvConst.domain="http://10.66.100.6:8088/platform"; | ||
104 | - apiCofig.EnvConst.yohoSearch="http://10.66.100.4:8080/yohosearch"; | 104 | + apiCofig.EnvConst.domain=process.env.TEST_PLATFORM||"http://10.66.100.6:8088/platform"; |
105 | + apiCofig.EnvConst.yohoSearch=process.env.TEST_SEARCH||"http://10.66.100.4:8080/yohosearch"; | ||
105 | } | 106 | } |
107 | + | ||
106 | /*灰度环境*/ | 108 | /*灰度环境*/ |
107 | if(process.env.NODE_ENV==="gray"){ | 109 | if(process.env.NODE_ENV==="gray"){ |
108 | apiCofig.EnvConst.domain="http://172.31.23.161:8088/platform"; | 110 | apiCofig.EnvConst.domain="http://172.31.23.161:8088/platform"; |
@@ -45,6 +45,7 @@ module.exports={ | @@ -45,6 +45,7 @@ module.exports={ | ||
45 | url: '/salesCategory/addSC', | 45 | url: '/salesCategory/addSC', |
46 | params: [ | 46 | params: [ |
47 | {name: 'categoryName', type: 'string'}, | 47 | {name: 'categoryName', type: 'string'}, |
48 | + {name: 'appType', type: 'number'}, | ||
48 | {name: 'relationParameter', type: 'string'}, | 49 | {name: 'relationParameter', type: 'string'}, |
49 | {name: 'relationUrl', type: 'string'}, | 50 | {name: 'relationUrl', type: 'string'}, |
50 | {name: 'parentId', type: 'string'}, | 51 | {name: 'parentId', type: 'string'}, |
@@ -58,6 +59,7 @@ module.exports={ | @@ -58,6 +59,7 @@ module.exports={ | ||
58 | params: [ | 59 | params: [ |
59 | {name: 'categoryId', type: 'string'}, | 60 | {name: 'categoryId', type: 'string'}, |
60 | {name: 'categoryName', type: 'string'}, | 61 | {name: 'categoryName', type: 'string'}, |
62 | + {name: 'appType', type: 'number'}, | ||
61 | {name: 'relationParameter', type: 'string'}, | 63 | {name: 'relationParameter', type: 'string'}, |
62 | {name: 'relationUrl', type: 'string'}, | 64 | {name: 'relationUrl', type: 'string'}, |
63 | {name: 'parentId', type: 'string'}, | 65 | {name: 'parentId', type: 'string'}, |
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | 44 | ||
45 | - <div class="form-group"> | 45 | + <div class="form-group" style="display:none"> |
46 | <label class="col-sm-2 control-label">品牌Banner</label> | 46 | <label class="col-sm-2 control-label">品牌Banner</label> |
47 | <div class="col-sm-8"> | 47 | <div class="col-sm-8"> |
48 | <input type="file" id="brandBanner" name="brandBanner" value="<%data.brandBanner%>" placeholder="品牌Banner" bucket="brandBanner"/> | 48 | <input type="file" id="brandBanner" name="brandBanner" value="<%data.brandBanner%>" placeholder="品牌Banner" bucket="brandBanner"/> |
@@ -471,6 +471,7 @@ | @@ -471,6 +471,7 @@ | ||
471 | </div> | 471 | </div> |
472 | <div class="col-sm-2"> | 472 | <div class="col-sm-2"> |
473 | <a id="search" class="go-search btn btn-primary">搜索商品</a> | 473 | <a id="search" class="go-search btn btn-primary">搜索商品</a> |
474 | + <a id="searchBLK" class="go-search btn btn-primary">搜BLK商品</a> | ||
474 | </div> | 475 | </div> |
475 | 476 | ||
476 | </div> | 477 | </div> |
@@ -498,6 +499,7 @@ | @@ -498,6 +499,7 @@ | ||
498 | </div> | 499 | </div> |
499 | <p style="margin-top:40px;"> | 500 | <p style="margin-top:40px;"> |
500 | <a class="go-search tag-goods btn btn-primary" id="search2">搜索商品</a> | 501 | <a class="go-search tag-goods btn btn-primary" id="search2">搜索商品</a> |
502 | + <a id="searchBLK2" class="go-search btn btn-primary">搜BLK商品</a> | ||
501 | </p> | 503 | </p> |
502 | </div> | 504 | </div> |
503 | <div class="goods-list form-group" style="display: none"> | 505 | <div class="goods-list form-group" style="display: none"> |
@@ -520,7 +522,7 @@ | @@ -520,7 +522,7 @@ | ||
520 | </div> | 522 | </div> |
521 | </div> | 523 | </div> |
522 | 524 | ||
523 | - <div class="gird" id="goodsgird"> | 525 | + <div class="gird" id="goodsgird" appType="0"> |
524 | </div> | 526 | </div> |
525 | </div> | 527 | </div> |
526 | </script> | 528 | </script> |
@@ -30,6 +30,15 @@ | @@ -30,6 +30,15 @@ | ||
30 | {{/unless}} | 30 | {{/unless}} |
31 | 31 | ||
32 | <div class="form-group"> | 32 | <div class="form-group"> |
33 | + <label class="col-sm-2 control-label">是否BLK:</label> | ||
34 | + <div class="col-sm-8"> | ||
35 | + <select class="form-control" id="appType" value="[[appType]]"> | ||
36 | + <option value="0">否</option> | ||
37 | + <option value="1">是</option> | ||
38 | + </select> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + <div class="form-group"> | ||
33 | <label class="col-sm-2 control-label">分类名称</label> | 42 | <label class="col-sm-2 control-label">分类名称</label> |
34 | <div class="col-sm-8"><input type="text" id="categoryName" name="categoryName" class="form-control" placeholder="分类名称" value="{{categoryName}}"></div> | 43 | <div class="col-sm-8"><input type="text" id="categoryName" name="categoryName" class="form-control" placeholder="分类名称" value="{{categoryName}}"></div> |
35 | </div> | 44 | </div> |
@@ -37,6 +37,26 @@ | @@ -37,6 +37,26 @@ | ||
37 | <div class="col-sm-8 height40">[[parentName]]</div> | 37 | <div class="col-sm-8 height40">[[parentName]]</div> |
38 | </div> | 38 | </div> |
39 | <div class="form-group"> | 39 | <div class="form-group"> |
40 | + <label class="col-sm-2 control-label">是否BLK:</label> | ||
41 | + | ||
42 | + [[if parentId==0]] | ||
43 | + <div class="col-sm-8"> | ||
44 | + <select class="form-control" id="appType" value="[[appType]]"> | ||
45 | + <option value="0">否</option> | ||
46 | + <option value="1">是</option> | ||
47 | + </select> | ||
48 | + </div> | ||
49 | + [[/if]] | ||
50 | + [[if parentId>0]] | ||
51 | + <div class="col-sm-8"> | ||
52 | + <select class="form-control" id="appType" value="[[appType]]" disabled> | ||
53 | + <option value="0">否</option> | ||
54 | + <option value="1">是</option> | ||
55 | + </select> | ||
56 | + </div> | ||
57 | + [[/if]] | ||
58 | + </div> | ||
59 | + <div class="form-group"> | ||
40 | <label class="col-sm-2 control-label">分类名称:</label> | 60 | <label class="col-sm-2 control-label">分类名称:</label> |
41 | <div class="col-sm-8"> | 61 | <div class="col-sm-8"> |
42 | <div class="form-inline"> | 62 | <div class="form-inline"> |
@@ -87,7 +107,8 @@ | @@ -87,7 +107,8 @@ | ||
87 | <div class="level-hd clearfix"> | 107 | <div class="level-hd clearfix"> |
88 | <span class="folder"></span> | 108 | <span class="folder"></span> |
89 | <span style="width: 5%">ID</span> | 109 | <span style="width: 5%">ID</span> |
90 | - <span style="width: 20%">品类名称</span> | 110 | + <span style="width: 5%">BLK商品</span> |
111 | + <span style="width: 15%">品类名称</span> | ||
91 | <span>所属分类</span> | 112 | <span>所属分类</span> |
92 | <span>分类图标</span> | 113 | <span>分类图标</span> |
93 | <span class="orderby">排序</span> | 114 | <span class="orderby">排序</span> |
@@ -199,7 +220,8 @@ | @@ -199,7 +220,8 @@ | ||
199 | <script type="text/template" id="tableTemp2"> | 220 | <script type="text/template" id="tableTemp2"> |
200 | <span class="folder"></span> | 221 | <span class="folder"></span> |
201 | <span style="width: 5%">[[categoryId]]</span> | 222 | <span style="width: 5%">[[categoryId]]</span> |
202 | - <span style="width: 20%">[[categoryName]]</span> | 223 | + <span style="width: 5%">[[if appType=="1"]]是[[/if]][[if appType=="0"]]否[[/if]]</span> |
224 | + <span style="width: 15%">[[categoryName]]</span> | ||
203 | <span>[[levelNumber]]级分类</span> | 225 | <span>[[levelNumber]]级分类</span> |
204 | <span><img src="[[icon]]" alt=""></span> | 226 | <span><img src="[[icon]]" alt=""></span> |
205 | <span class="orderby"> <input type="text" class="form-control saleCategoryNumInput" value="[[orderBy]]" categoryId="[[categoryId]]" /></span> | 227 | <span class="orderby"> <input type="text" class="form-control saleCategoryNumInput" value="[[orderBy]]" categoryId="[[categoryId]]" /></span> |
@@ -59,17 +59,17 @@ | @@ -59,17 +59,17 @@ | ||
59 | <div class="rows" id="baseform"> | 59 | <div class="rows" id="baseform"> |
60 | <div class="form-group"> | 60 | <div class="form-group"> |
61 | <label class="col-sm-2 control-label">分类<font color="#f00">*</font></label> | 61 | <label class="col-sm-2 control-label">分类<font color="#f00">*</font></label> |
62 | - <input type="hidden" value="{id}" id="id"/> | 62 | + <input type="hidden" value="[[id]]" id="id"/> |
63 | <div class="col-sm-10"> | 63 | <div class="col-sm-10"> |
64 | <input name="sort" type="radio" value="1"/>奥莱 | 64 | <input name="sort" type="radio" value="1"/>奥莱 |
65 | <input name="sort" type="radio" value="2"/>SALE | 65 | <input name="sort" type="radio" value="2"/>SALE |
66 | </div> | 66 | </div> |
67 | - <input type="hidden" id="sort" value="{sort}" for="radio"/> | 67 | + <input type="hidden" id="sort" value="[[sort]]" for="radio"/> |
68 | </div> | 68 | </div> |
69 | <div class="form-group"> | 69 | <div class="form-group"> |
70 | <label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label> | 70 | <label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label> |
71 | <div class="col-sm-8"> | 71 | <div class="col-sm-8"> |
72 | - <input type="text" value="{title}" class="form-control" id="title" required="required"/> | 72 | + <input type="text" value="[[title]]" class="form-control" id="title" required="required"/> |
73 | </div> | 73 | </div> |
74 | </div> | 74 | </div> |
75 | <div class="form-group"> | 75 | <div class="form-group"> |
@@ -80,7 +80,7 @@ | @@ -80,7 +80,7 @@ | ||
80 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="3">WAP</label> | 80 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="3">WAP</label> |
81 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="4">IPAD</label> | 81 | <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="4">IPAD</label> |
82 | </div> | 82 | </div> |
83 | - <input type="hidden" id="plateform" value="{plateform}" for="checkbox"> | 83 | + <input type="hidden" id="plateform" value="[[plateform]]" for="checkbox"> |
84 | </div> | 84 | </div> |
85 | <div class="form-group"> | 85 | <div class="form-group"> |
86 | <label class="col-sm-2 control-label">频道</label> | 86 | <label class="col-sm-2 control-label">频道</label> |
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="3">儿童</label> | 90 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="3">儿童</label> |
91 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="4">创意生活</label> | 91 | <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="4">创意生活</label> |
92 | </div> | 92 | </div> |
93 | - <input type="hidden" id="yhChannel" value="{yhChannel}" for="checkbox"> | 93 | + <input type="hidden" id="yhChannel" value="[[yhChannel]]" for="checkbox"> |
94 | </div> | 94 | </div> |
95 | <div class="form-group"> | 95 | <div class="form-group"> |
96 | <label class="col-sm-2 control-label">促销形式</label> | 96 | <label class="col-sm-2 control-label">促销形式</label> |
@@ -116,49 +116,51 @@ | @@ -116,49 +116,51 @@ | ||
116 | <div class="panel-col1 col-sm-4"> | 116 | <div class="panel-col1 col-sm-4"> |
117 | <input type="text" id="startTime" jsaction="time:end:endTime" | 117 | <input type="text" id="startTime" jsaction="time:end:endTime" |
118 | class="form-control panel-input hasDatepicker " readonly name="start_time" placeholder="开始时间" | 118 | class="form-control panel-input hasDatepicker " readonly name="start_time" placeholder="开始时间" |
119 | - value="{startTime}"> | 119 | + value="[[startTime]]"> |
120 | </div> | 120 | </div> |
121 | <div class="panel-col1 col-sm-4"> | 121 | <div class="panel-col1 col-sm-4"> |
122 | <input type="text" id="endTime" jsaction="time:start:startTime" | 122 | <input type="text" id="endTime" jsaction="time:start:startTime" |
123 | class="form-control panel-input hasDatepicker" readonly name="end_time" placeholder="结束时间" | 123 | class="form-control panel-input hasDatepicker" readonly name="end_time" placeholder="结束时间" |
124 | - value="{endTime}"> | 124 | + value="[[endTime]]"> |
125 | </div> | 125 | </div> |
126 | </div> | 126 | </div> |
127 | <div class="form-group"> | 127 | <div class="form-group"> |
128 | <label class="col-sm-2 control-lalbel" for="orderNum">排序</label> | 128 | <label class="col-sm-2 control-lalbel" for="orderNum">排序</label> |
129 | <div class="col-sm-8"> | 129 | <div class="col-sm-8"> |
130 | - <input type="text" id="orderNum" value="{orderNum}" class="form-control"/> | 130 | + <input type="text" id="orderNum" value="[[orderNum]]" class="form-control"/> |
131 | </div> | 131 | </div> |
132 | </div> | 132 | </div> |
133 | <div class="form-group"> | 133 | <div class="form-group"> |
134 | <label class="col-sm-2 control-label">手机端封面图</label> | 134 | <label class="col-sm-2 control-label">手机端封面图</label> |
135 | <div class="col-sm-10"> | 135 | <div class="col-sm-10"> |
136 | - <input type="file" id="coverUrl" name="coverUrl" value="{coverUrl}"/> | 136 | + <input type="file" id="coverUrl" name="coverUrl" value="[[coverUrl]]"/> |
137 | </div> | 137 | </div> |
138 | </div> | 138 | </div> |
139 | <div class="form-group"> | 139 | <div class="form-group"> |
140 | <label class="col-sm-2 control-label">WEB logo图</label> | 140 | <label class="col-sm-2 control-label">WEB logo图</label> |
141 | <div class="col-sm-10"> | 141 | <div class="col-sm-10"> |
142 | - <input type="file" id="logoUrl" name="logoUrl" value="{logoUrl}"/><!----> | 142 | + <input type="file" id="logoUrl" name="logoUrl" value="[[logoUrl]]"/><!----> |
143 | </div> | 143 | </div> |
144 | </div> | 144 | </div> |
145 | <div class="form-group"> | 145 | <div class="form-group"> |
146 | <label class="col-sm-2 control-label">web封面图</label> | 146 | <label class="col-sm-2 control-label">web封面图</label> |
147 | <div class="col-sm-10"> | 147 | <div class="col-sm-10"> |
148 | - <input type="file" id="webCoverUrl" name="webCoverUrl" value="{webCoverUrl}"/> | 148 | + <input type="file" id="webCoverUrl" name="webCoverUrl" value="[[webCoverUrl]]"/> |
149 | </div> | 149 | </div> |
150 | </div> | 150 | </div> |
151 | <div class="form-group"> | 151 | <div class="form-group"> |
152 | <label class="col-sm-2 control-label">web列表页图</label> | 152 | <label class="col-sm-2 control-label">web列表页图</label> |
153 | <div class="col-sm-10"> | 153 | <div class="col-sm-10"> |
154 | - <input type="file" id="webUrl" name="webUrl" value="{webUrl}"/> | 154 | + <input type="file" id="webUrl" name="webUrl" value="[[webUrl]]"/> |
155 | </div> | 155 | </div> |
156 | </div> | 156 | </div> |
157 | <div class="form-group"> | 157 | <div class="form-group"> |
158 | <label class="col-sm-2 control-label">添加商品<font color="#f00">*</font></label> | 158 | <label class="col-sm-2 control-label">添加商品<font color="#f00">*</font></label> |
159 | <div class="col-sm-10"> | 159 | <div class="col-sm-10"> |
160 | - <select id="productPoolId" style="width: 280px;" value="{productPoolId}"> | ||
161 | - <option value="{productPoolId}">请选择商品池</option> | 160 | + <select id="productPoolId" style="width: 280px;" value="[[productPoolId]]"> |
161 | + <%each select as item i%> | ||
162 | + <option value="<%item.id%>"><%item.text%></option> | ||
163 | + <%/each%> | ||
162 | </select> | 164 | </select> |
163 | </div> | 165 | </div> |
164 | </div> | 166 | </div> |
@@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
55 | <div class="shopBanner canEdit" data-dialogid="shopTopBanner"> | 55 | <div class="shopBanner canEdit" data-dialogid="shopTopBanner"> |
56 | <img src="[[resources.shopTopBanner.data.shopSrc]]"> | 56 | <img src="[[resources.shopTopBanner.data.shopSrc]]"> |
57 | [[if resources.shopTopBanner.data.isShowShopName == "Y"]] | 57 | [[if resources.shopTopBanner.data.isShowShopName == "Y"]] |
58 | - <h1>[[shopName]]</h1> | 58 | + <h1 style="color:white;margin-top:70px">[[shopName]]</h1> |
59 | [[/if]] | 59 | [[/if]] |
60 | </div> | 60 | </div> |
61 | 61 |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | <div class="panel-col"> | 23 | <div class="panel-col"> |
24 | <select name="status" id="yohoStatus" tabindex="-1" title="" class="form-control"> | 24 | <select name="status" id="yohoStatus" tabindex="-1" title="" class="form-control"> |
25 | <option value="" selected="">有货状态</option> | 25 | <option value="" selected="">有货状态</option> |
26 | - <option value="0">待装修</option> | 26 | + <option value="1">待装修</option> |
27 | <option value="100">暂存</option> | 27 | <option value="100">暂存</option> |
28 | <option value="200">待审核</option> | 28 | <option value="200">待审核</option> |
29 | <option value="300">审核通过</option> | 29 | <option value="300">审核通过</option> |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <div class="panel-col"> | 33 | <div class="panel-col"> |
34 | <select name="status" id="blkStatus" tabindex="-1" title="" class="form-control"> | 34 | <select name="status" id="blkStatus" tabindex="-1" title="" class="form-control"> |
35 | <option value="" selected="">BLK状态</option> | 35 | <option value="" selected="">BLK状态</option> |
36 | - <option value="0">待装修</option> | 36 | + <option value="1">待装修</option> |
37 | <option value="100">暂存</option> | 37 | <option value="100">暂存</option> |
38 | <option value="200">待审核</option> | 38 | <option value="200">待审核</option> |
39 | <option value="300">审核通过</option> | 39 | <option value="300">审核通过</option> |
@@ -23,6 +23,7 @@ | @@ -23,6 +23,7 @@ | ||
23 | <input id="productSKN" type="text" class="form-control" placeholder="SKN" /> | 23 | <input id="productSKN" type="text" class="form-control" placeholder="SKN" /> |
24 | <input id="factoryCode" type="text" class="form-control" placeholder="商家编码" /> | 24 | <input id="factoryCode" type="text" class="form-control" placeholder="商家编码" /> |
25 | <a href="javascript:" class="btn btn-info filter-btn">查询</a> | 25 | <a href="javascript:" class="btn btn-info filter-btn">查询</a> |
26 | + <a id="all-btn" href="" class="btn btn-info">全部</a> | ||
26 | <a href="javascript:" class="btn btn-danger cancelAll" style="float: right;display: none">全部取消</a> | 27 | <a href="javascript:" class="btn btn-danger cancelAll" style="float: right;display: none">全部取消</a> |
27 | </div> | 28 | </div> |
28 | <div id="productTable"></div> | 29 | <div id="productTable"></div> |
-
Please register or login to post a comment