Authored by weiqingting

网销商品参数

... ... @@ -269,7 +269,7 @@ var ag = new common.grid({
if (attrs) {
for (var i in attrs) {
if (attrs[i].standardId == item.attributeId) {
item.val = attrs[i].standardVal;
item.val = attrs[i].parameterMakeId;
item.__val = attrs[i].parameterMakeId;
}
}
... ... @@ -310,7 +310,7 @@ var ag2 = new common.grid({
if (attrs) {
for (var i in attrs) {
if (attrs[i].attributeId == item.attributeId) {
item.val = attrs[i].standardVal;
item.val = attrs[i].attributeValueId;
item.__val = attrs[i].attributeValueId.replace(/,/g, '|');
}
}
... ... @@ -413,18 +413,15 @@ GOLABDATA.on("TYgoodsParams", function() {
if (ag.rows.length > 0) {
for (var i in ag.rows) {
if (ag.rows[i].val) {
var arr = ag.rows[i].val.split('|');
var idNameList = ag.rows[i].idNameList;
for (var x in idNameList) {
for (var y in arr) {
if (arr[y] == idNameList[x].id) {
if (ag.rows[i].val == idNameList[x].id) {
productStandardRelationStr.push({
standardId: ag.rows[i].attributeId,
standardVal: idNameList[x].text,
parameterMakeId: idNameList[x].id
});
}
}
}
}
}
... ...
... ... @@ -17,13 +17,13 @@ var config = {
// domain:'http://172.16.6.240:8088/platform',// 王书生
// domain: 'http://172.16.6.124:8088/platform',//陈超
//http://172.16.6.124:8088/platform/product/queryAllProductAttr
domain: 'http://172.16.6.227:8088/platform', //玛丽
// domain: 'http://172.16.6.227:8088/platform', //玛丽
// domain: 'http://192.168.102.202:8088/platform',
//domain:'http://172.16.6.197:8080/yohobuy-platform-web',//葛超
// domain: 'http://192.168.102.202:8088/platform',
// domain: 'http://192.168.102.202:8088/platform',
//domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超
// domain: 'http://192.168.102.202:8088/platform',
domain: 'http://192.168.102.202:8088/platform',
//domain: 'http://172.16.6.239:8080', //孙杰翔
loggers: {
api: {
... ...
... ... @@ -704,5 +704,193 @@ exports.res = [{
name: 'brandId',
type: 'Number'
}]
},
//***********************************陶雨*******************************
{
//保存搜索顺序
route: '/netSale/saveSearchSort',
method: 'POST',
url: '/product/saveSearchSort',
params: [{
name: 'searchSortList',
type: 'string'
}]
}, {
//查找热搜词
route: '/netSale/queryHotSearchTerms',
method: 'POST',
url: '/searchWords/queryHotSearchTerms',
params: [{
name: 'page',
type: 'number'
}, {
name: 'size',
type: 'number',
def: 10
}]
}, {
//查找洗涤提示
route: '/netSale/getAll4Select',
method: 'POST',
url: '/washTips/getAll4Select/',
params: []
}, {
//查找材质参数
route: '/netSale/queryAllBySortId4Select',
method: 'POST',
url: '/productMaterial/queryAllBySortId4Select',
params: [{
name: 'param',
type: 'number'
}]
}, {
//查找所有商品参数信息 //暂时没用
route: '/netSale/queryAllGoodsParams',
method: 'POST',
apis: {
washTipsList: {
url: '/washTips/getAll4Select/'
},
materialList: {
url: 'productMaterial/queryAllBySortId4Select',
params: [{
name: 'param',
type: 'number'
}],
isJsonRaw: true
}
}
}, {
//保存搜索关键词
route: '/netSale/saveNetSaleSearchKeys',
method: 'POST',
url: '/product/saveNetSaleSearchKeys',
params: [{
name: 'productSkn',
type: 'number'
}, {
name: 'searchKeys',
type: 'string'
}]
}, {
//保存商品参数
route: '/netSale/saveProductParam',
method: 'POST',
url: '/product/saveProductParam',
params: [{
name: 'productSkn',
type: 'number'
}, {
name: 'attributeProValuesOne',
type: 'string'
}, {
name: 'productStandardRelationStr',
type: 'string'
},{
name: 'productMaterial',
type: 'string'
}]
},
//************************************weiqingting**********************
//商品描述
{
route: '/netSale/saveProductDesc',
method: 'POST',
url: '/product/saveProductDesc',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'productDesc',
type: 'String'
}]
},
//小编推荐
{
route: '/netSale/saveNetSaleRecommend',
method: 'POST',
url: '/product/saveNetSaleRecommend',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'recommend',
type: 'String'
}]
},
{ //查询搭配列表
route: "/netSale/selectCollocationListBySkn",
method: 'POST',
url: '/collocation/selectCollocationListBySkn',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}]
}, { //获取单个商品搭配信息
route: '/netSale/selectCollocationById',
method: 'POST',
url: '/collocation/selectCollocationById',
params: [{
name: 'param',
type: 'Number'
}]
}, { //添加单个搭配
route: '/netSale/insertCollocation',
method: 'POST',
url: '/collocation/insertCollocation',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'imageUrl',
type: 'String'
}, {
name: 'content',
type: 'String'
}, {
name: 'infoStr',
type: 'String'
}]
}, { //更新单个搭配
route: '/netSale/updateCollocation',
method: 'POST',
url: '/collocation/updateCollocation',
params: [{
name: 'id',
type: 'Number'
}, {
name: 'imageUrl',
type: 'String'
}, {
name: 'content',
type: 'String'
}, {
name: 'infoStr',
type: 'String'
}]
}, { //删除单个搭配
route: '/netSale/delCollocationById',
method: 'POST',
url: '/collocation/delCollocationById',
params: [{
name: 'param',
type: 'Number'
}]
}, { //单独维护封面信息
//http://172.16.6.227:8083/yohobuy-platform-web/product/manageProductImg
route: '/netSale/manageProductImg',
method: 'POST',
url: '/product/manageProductImg',
params: [{
name: 'goodsImagesReq',
type: 'string'
}]
}
];
\ No newline at end of file
... ...
exports.domain = require('../config/common.js').domain;
//exports.domain = "http://172.16.6.227:8088/platform/";
//exports.domain = 'http://172.16.6.227:8088/platform'; //马力
exports.res = [{
//保存搜索顺序
route: '/netSale/saveSearchSort',
method: 'POST',
url: '/product/saveSearchSort',
params: [{
name: 'searchSortList',
type: 'string'
}]
}, {
//查找热搜词
route: '/netSale/queryHotSearchTerms',
method: 'POST',
url: '/searchWords/queryHotSearchTerms',
params: [{
name: 'page',
type: 'number'
}, {
name: 'size',
type: 'number',
def: 10
}]
}, {
//查找洗涤提示
route: '/netSale/getAll4Select',
method: 'POST',
url: '/washTips/getAll4Select/',
params: []
}, {
//查找材质参数
route: '/netSale/queryAllBySortId4Select',
method: 'POST',
url: '/productMaterial/queryAllBySortId4Select',
params: [{
name: 'param',
type: 'number'
}]
}, {
//查找所有商品参数信息 //暂时没用
route: '/netSale/queryAllGoodsParams',
method: 'POST',
apis: {
washTipsList: {
url: '/washTips/getAll4Select/'
},
materialList: {
url: 'productMaterial/queryAllBySortId4Select',
params: [{
name: 'param',
type: 'number'
}],
isJsonRaw: true
}
}
}, {
//保存搜索关键词
route: '/netSale/saveNetSaleSearchKeys',
method: 'POST',
url: '/product/saveNetSaleSearchKeys',
params: [{
name: 'productSkn',
type: 'number'
}, {
name: 'searchKeys',
type: 'string'
}]
}, {
//保存商品参数
route: '/netSale/saveProductParam',
method: 'POST',
url: '/product/saveProductParam',
params: [{
name: 'productSkn',
type: 'number'
}, {
name: 'attributeProValuesOne',
type: 'string'
}, {
name: 'productStandardRelationStr',
type: 'string'
},{
name: 'productMaterial',
type: 'string'
}]
}];
\ No newline at end of file
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web';
exports.res = [
//商品描述
{
route: '/netSale/saveProductDesc',
method: 'POST',
url: '/product/saveProductDesc',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'productDesc',
type: 'String'
}]
},
//小编推荐
{
route: '/netSale/saveNetSaleRecommend',
method: 'POST',
url: '/product/saveNetSaleRecommend',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'recommend',
type: 'String'
}]
},
{ //查询搭配列表
route: "/netSale/selectCollocationListBySkn",
method: 'POST',
url: '/collocation/selectCollocationListBySkn',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}]
}, { //获取单个商品搭配信息
route: '/netSale/selectCollocationById',
method: 'POST',
url: '/collocation/selectCollocationById',
params: [{
name: 'param',
type: 'Number'
}]
}, { //添加单个搭配
route: '/netSale/insertCollocation',
method: 'POST',
url: '/collocation/insertCollocation',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'imageUrl',
type: 'String'
}, {
name: 'content',
type: 'String'
}, {
name: 'infoStr',
type: 'String'
}]
}, { //更新单个搭配
route: '/netSale/updateCollocation',
method: 'POST',
url: '/collocation/updateCollocation',
params: [{
name: 'id',
type: 'Number'
}, {
name: 'imageUrl',
type: 'String'
}, {
name: 'content',
type: 'String'
}, {
name: 'infoStr',
type: 'String'
}]
}, { //删除单个搭配
route: '/netSale/delCollocationById',
method: 'POST',
url: '/collocation/delCollocationById',
params: [{
name: 'param',
type: 'Number'
}]
}, { //单独维护封面信息
//http://172.16.6.227:8083/yohobuy-platform-web/product/manageProductImg
route: '/netSale/manageProductImg',
method: 'POST',
url: '/product/manageProductImg',
params: [{
name: 'goodsImagesReq',
type: 'string'
}]
}
];
\ No newline at end of file