Showing
6 changed files
with
57 additions
and
10 deletions
@@ -354,6 +354,7 @@ $('#offshelve').on('click', function() { | @@ -354,6 +354,7 @@ $('#offshelve').on('click', function() { | ||
354 | //导出 | 354 | //导出 |
355 | $('#export-btn').on('click', function() { | 355 | $('#export-btn').on('click', function() { |
356 | var count = 0; | 356 | var count = 0; |
357 | + | ||
357 | $.each(g.options.parms(), function(key, value) { | 358 | $.each(g.options.parms(), function(key, value) { |
358 | if (value && value != '' && key != 'size') { | 359 | if (value && value != '' && key != 'size') { |
359 | console.log(key); | 360 | console.log(key); |
@@ -364,6 +365,7 @@ $('#export-btn').on('click', function() { | @@ -364,6 +365,7 @@ $('#export-btn').on('click', function() { | ||
364 | common.util.__tip('请选择导出商品的条件', 'warning'); | 365 | common.util.__tip('请选择导出商品的条件', 'warning'); |
365 | return; | 366 | return; |
366 | } | 367 | } |
368 | + //g.options.parms().productSknList | ||
367 | window.open("/ajax/down?queryConf=" + JSON.stringify(g.options.parms()) + "&type=netSale"); | 369 | window.open("/ajax/down?queryConf=" + JSON.stringify(g.options.parms()) + "&type=netSale"); |
368 | }); | 370 | }); |
369 | 371 |
@@ -56,6 +56,16 @@ GOLABDATA.on("bianjiqi", function() { | @@ -56,6 +56,16 @@ GOLABDATA.on("bianjiqi", function() { | ||
56 | } | 56 | } |
57 | }); | 57 | }); |
58 | 58 | ||
59 | +/*逛*/ | ||
60 | +common.util.__ajax({ | ||
61 | + url: '/goods/article/queryArticlesBySKN', | ||
62 | + data: { | ||
63 | + productSkn: NETSALEDATA.baseProductInfo.baseProduct.productSkn | ||
64 | + } | ||
65 | +}, function(res) { | ||
66 | + console.log(res); | ||
67 | +}, true); | ||
68 | + | ||
59 | /*搭配*/ | 69 | /*搭配*/ |
60 | 70 | ||
61 | var g = new common.grid({ | 71 | var g = new common.grid({ |
@@ -296,17 +306,26 @@ GOLABDATA.on("fenmian", function() { | @@ -296,17 +306,26 @@ GOLABDATA.on("fenmian", function() { | ||
296 | goodsImagesBoList: [] | 306 | goodsImagesBoList: [] |
297 | }; | 307 | }; |
298 | 308 | ||
309 | + | ||
310 | + | ||
299 | $.each(goodsList, function(index, item) { | 311 | $.each(goodsList, function(index, item) { |
300 | if (item.isDefault == "Y") { | 312 | if (item.isDefault == "Y") { |
301 | map.productSkc = item.productSkc; | 313 | map.productSkc = item.productSkc; |
302 | map.productSkn = item.productSkn; | 314 | map.productSkn = item.productSkn; |
303 | } | 315 | } |
316 | + | ||
317 | + if (!item.goodsImagesList) { | ||
318 | + common.util.__tip('请设置skc:' + item.productSkc + '的封面', 'danger'); | ||
319 | + return; | ||
320 | + } | ||
304 | $.each(item.goodsImagesList, function(_index, _item) { | 321 | $.each(item.goodsImagesList, function(_index, _item) { |
305 | _item.orderBy = _index; | 322 | _item.orderBy = _index; |
306 | map.goodsImagesBoList.push(_item); | 323 | map.goodsImagesBoList.push(_item); |
307 | }); | 324 | }); |
308 | }); | 325 | }); |
326 | + if (map.goodsImagesBoList.length == 0) return; | ||
309 | map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList); | 327 | map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList); |
328 | + | ||
310 | return { | 329 | return { |
311 | "goodsImagesReq": JSON.stringify(map) | 330 | "goodsImagesReq": JSON.stringify(map) |
312 | } | 331 | } |
This diff could not be displayed because it is too large.
@@ -2,6 +2,7 @@ exports.domain = require('../config/common.js').domain; | @@ -2,6 +2,7 @@ exports.domain = require('../config/common.js').domain; | ||
2 | //exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; //马力 | 2 | //exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; //马力 |
3 | //exports.domain = 'http://172.16.6.236:8080/platform'; //钱军 | 3 | //exports.domain = 'http://172.16.6.236:8080/platform'; //钱军 |
4 | //exports.domain = 'http://172.16.6.162:8088/platform'; //李建 | 4 | //exports.domain = 'http://172.16.6.162:8088/platform'; //李建 |
5 | +//exports.domain = 'http://172.16.6.197:8080/yohobuy-platform-web'; //耿超 | ||
5 | 6 | ||
6 | //商品管理路由配置 | 7 | //商品管理路由配置 |
7 | exports.res = [ | 8 | exports.res = [ |
@@ -426,14 +427,6 @@ exports.res = [ | @@ -426,14 +427,6 @@ exports.res = [ | ||
426 | isJsonRaw: true | 427 | isJsonRaw: true |
427 | } | 428 | } |
428 | } | 429 | } |
429 | - }, { | ||
430 | - route: '/goods/ShopsRest/queryShopsByBrandId', | ||
431 | - method: 'POST', | ||
432 | - url: '/ShopsRest/queryShopsByBrandId', | ||
433 | - params: [{ | ||
434 | - name: 'brandId', | ||
435 | - type: 'number' | ||
436 | - }] | ||
437 | }, | 430 | }, |
438 | /* { | 431 | /* { |
439 | //网销信息 -> 查询制作工艺列表 | 432 | //网销信息 -> 查询制作工艺列表 |
server/interface/guang.js
0 → 100644
1 | +//exports.domain = require('../config/common.js').domain; | ||
2 | +exports.domain = 'http://172.16.6.197:8080/yohobuy-platform-web'; | ||
3 | + | ||
4 | +exports.res = [{ | ||
5 | + //网销信息 -> 逛关联 | ||
6 | + route: '/goods/article/queryArticlesBySKN', | ||
7 | + method: 'POST', | ||
8 | + url: '/article/queryArticlesBySKN', | ||
9 | + params: [{ | ||
10 | + name: 'productSkn', | ||
11 | + type: 'number' | ||
12 | + }, { | ||
13 | + name: 'startTime', | ||
14 | + type: 'string' | ||
15 | + }, { | ||
16 | + name: 'endTime', | ||
17 | + type: 'string' | ||
18 | + }] | ||
19 | +}] |
@@ -12,9 +12,23 @@ | @@ -12,9 +12,23 @@ | ||
12 | <span class="red">提示:与商品相关的逛信息自动抓取到下列各模块中,若要在商品详情中展示,请将其编辑在【小编推荐】中。 | 12 | <span class="red">提示:与商品相关的逛信息自动抓取到下列各模块中,若要在商品详情中展示,请将其编辑在【小编推荐】中。 |
13 | </span> | 13 | </span> |
14 | </p> | 14 | </p> |
15 | - <div class="guang-wrap"></div> | 15 | + <div id="guang-wrap" class="guang-wrap"> |
16 | + | ||
17 | + | ||
18 | + </div> | ||
16 | </div> | 19 | </div> |
17 | <div class="panel-footer"> | 20 | <div class="panel-footer"> |
18 | <button class="btn btn-primary" id="btn-recommand">保存</button> | 21 | <button class="btn btn-primary" id="btn-recommand">保存</button> |
19 | </div> | 22 | </div> |
20 | -</div> | ||
23 | +</div> | ||
24 | + | ||
25 | +<script type="text/template" id="guangWrapTemp"> | ||
26 | + [[each data as a index]] | ||
27 | + <div class="col-sm-6"> | ||
28 | + <h4>[[a.sortName]]</h4> | ||
29 | + [[each a.articleList as b index]] | ||
30 | + <a target="_blank" href="[[b.url]]">[[b.articleTitle]]</a> | ||
31 | + [[/each]] | ||
32 | + </div> | ||
33 | + [[/each]] | ||
34 | +</script> |
-
Please register or login to post a comment