Authored by liuyue

网销

... ... @@ -354,6 +354,7 @@ $('#offshelve').on('click', function() {
//导出
$('#export-btn').on('click', function() {
var count = 0;
$.each(g.options.parms(), function(key, value) {
if (value && value != '' && key != 'size') {
console.log(key);
... ... @@ -364,6 +365,7 @@ $('#export-btn').on('click', function() {
common.util.__tip('请选择导出商品的条件', 'warning');
return;
}
//g.options.parms().productSknList
window.open("/ajax/down?queryConf=" + JSON.stringify(g.options.parms()) + "&type=netSale");
});
... ...
... ... @@ -56,6 +56,16 @@ GOLABDATA.on("bianjiqi", function() {
}
});
/*逛*/
common.util.__ajax({
url: '/goods/article/queryArticlesBySKN',
data: {
productSkn: NETSALEDATA.baseProductInfo.baseProduct.productSkn
}
}, function(res) {
console.log(res);
}, true);
/*搭配*/
var g = new common.grid({
... ... @@ -296,17 +306,26 @@ GOLABDATA.on("fenmian", function() {
goodsImagesBoList: []
};
$.each(goodsList, function(index, item) {
if (item.isDefault == "Y") {
map.productSkc = item.productSkc;
map.productSkn = item.productSkn;
}
if (!item.goodsImagesList) {
common.util.__tip('请设置skc:' + item.productSkc + '的封面', 'danger');
return;
}
$.each(item.goodsImagesList, function(_index, _item) {
_item.orderBy = _index;
map.goodsImagesBoList.push(_item);
});
});
if (map.goodsImagesBoList.length == 0) return;
map.goodsImagesBoList = JSON.stringify(map.goodsImagesBoList);
return {
"goodsImagesReq": JSON.stringify(map)
}
... ...
This diff could not be displayed because it is too large.
... ... @@ -2,6 +2,7 @@ exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; //马力
//exports.domain = 'http://172.16.6.236:8080/platform'; //钱军
//exports.domain = 'http://172.16.6.162:8088/platform'; //李建
//exports.domain = 'http://172.16.6.197:8080/yohobuy-platform-web'; //耿超
//商品管理路由配置
exports.res = [
... ... @@ -426,14 +427,6 @@ exports.res = [
isJsonRaw: true
}
}
}, {
route: '/goods/ShopsRest/queryShopsByBrandId',
method: 'POST',
url: '/ShopsRest/queryShopsByBrandId',
params: [{
name: 'brandId',
type: 'number'
}]
},
/* {
//网销信息 -> 查询制作工艺列表
... ...
//exports.domain = require('../config/common.js').domain;
exports.domain = 'http://172.16.6.197:8080/yohobuy-platform-web';
exports.res = [{
//网销信息 -> 逛关联
route: '/goods/article/queryArticlesBySKN',
method: 'POST',
url: '/article/queryArticlesBySKN',
params: [{
name: 'productSkn',
type: 'number'
}, {
name: 'startTime',
type: 'string'
}, {
name: 'endTime',
type: 'string'
}]
}]
\ No newline at end of file
... ...
... ... @@ -12,9 +12,23 @@
<span class="red">提示:与商品相关的逛信息自动抓取到下列各模块中,若要在商品详情中展示,请将其编辑在【小编推荐】中。
</span>
</p>
<div class="guang-wrap"></div>
<div id="guang-wrap" class="guang-wrap">
</div>
</div>
<div class="panel-footer">
<button class="btn btn-primary" id="btn-recommand">保存</button>
</div>
</div>
\ No newline at end of file
</div>
<script type="text/template" id="guangWrapTemp">
[[each data as a index]]
<div class="col-sm-6">
<h4>[[a.sortName]]</h4>
[[each a.articleList as b index]]
<a target="_blank" href="[[b.url]]">[[b.articleTitle]]</a>
[[/each]]
</div>
[[/each]]
</script>
\ No newline at end of file
... ...