Showing
5 changed files
with
193 additions
and
202 deletions
@@ -269,7 +269,7 @@ var ag = new common.grid({ | @@ -269,7 +269,7 @@ var ag = new common.grid({ | ||
269 | if (attrs) { | 269 | if (attrs) { |
270 | for (var i in attrs) { | 270 | for (var i in attrs) { |
271 | if (attrs[i].standardId == item.attributeId) { | 271 | if (attrs[i].standardId == item.attributeId) { |
272 | - item.val = attrs[i].standardVal; | 272 | + item.val = attrs[i].parameterMakeId; |
273 | item.__val = attrs[i].parameterMakeId; | 273 | item.__val = attrs[i].parameterMakeId; |
274 | } | 274 | } |
275 | } | 275 | } |
@@ -310,7 +310,7 @@ var ag2 = new common.grid({ | @@ -310,7 +310,7 @@ var ag2 = new common.grid({ | ||
310 | if (attrs) { | 310 | if (attrs) { |
311 | for (var i in attrs) { | 311 | for (var i in attrs) { |
312 | if (attrs[i].attributeId == item.attributeId) { | 312 | if (attrs[i].attributeId == item.attributeId) { |
313 | - item.val = attrs[i].standardVal; | 313 | + item.val = attrs[i].attributeValueId; |
314 | item.__val = attrs[i].attributeValueId.replace(/,/g, '|'); | 314 | item.__val = attrs[i].attributeValueId.replace(/,/g, '|'); |
315 | } | 315 | } |
316 | } | 316 | } |
@@ -413,18 +413,15 @@ GOLABDATA.on("TYgoodsParams", function() { | @@ -413,18 +413,15 @@ GOLABDATA.on("TYgoodsParams", function() { | ||
413 | if (ag.rows.length > 0) { | 413 | if (ag.rows.length > 0) { |
414 | for (var i in ag.rows) { | 414 | for (var i in ag.rows) { |
415 | if (ag.rows[i].val) { | 415 | if (ag.rows[i].val) { |
416 | - var arr = ag.rows[i].val.split('|'); | ||
417 | var idNameList = ag.rows[i].idNameList; | 416 | var idNameList = ag.rows[i].idNameList; |
418 | for (var x in idNameList) { | 417 | for (var x in idNameList) { |
419 | - for (var y in arr) { | ||
420 | - if (arr[y] == idNameList[x].id) { | 418 | + if (ag.rows[i].val == idNameList[x].id) { |
421 | productStandardRelationStr.push({ | 419 | productStandardRelationStr.push({ |
422 | standardId: ag.rows[i].attributeId, | 420 | standardId: ag.rows[i].attributeId, |
423 | standardVal: idNameList[x].text, | 421 | standardVal: idNameList[x].text, |
424 | parameterMakeId: idNameList[x].id | 422 | parameterMakeId: idNameList[x].id |
425 | }); | 423 | }); |
426 | } | 424 | } |
427 | - } | ||
428 | } | 425 | } |
429 | } | 426 | } |
430 | } | 427 | } |
@@ -17,13 +17,13 @@ var config = { | @@ -17,13 +17,13 @@ var config = { | ||
17 | // domain:'http://172.16.6.240:8088/platform',// 王书生 | 17 | // domain:'http://172.16.6.240:8088/platform',// 王书生 |
18 | // domain: 'http://172.16.6.124:8088/platform',//陈超 | 18 | // domain: 'http://172.16.6.124:8088/platform',//陈超 |
19 | //http://172.16.6.124:8088/platform/product/queryAllProductAttr | 19 | //http://172.16.6.124:8088/platform/product/queryAllProductAttr |
20 | - domain: 'http://172.16.6.227:8088/platform', //玛丽 | 20 | + // domain: 'http://172.16.6.227:8088/platform', //玛丽 |
21 | // domain: 'http://192.168.102.202:8088/platform', | 21 | // domain: 'http://192.168.102.202:8088/platform', |
22 | //domain:'http://172.16.6.197:8080/yohobuy-platform-web',//葛超 | 22 | //domain:'http://172.16.6.197:8080/yohobuy-platform-web',//葛超 |
23 | // domain: 'http://192.168.102.202:8088/platform', | 23 | // domain: 'http://192.168.102.202:8088/platform', |
24 | // domain: 'http://192.168.102.202:8088/platform', | 24 | // domain: 'http://192.168.102.202:8088/platform', |
25 | //domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超 | 25 | //domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超 |
26 | - // domain: 'http://192.168.102.202:8088/platform', | 26 | + domain: 'http://192.168.102.202:8088/platform', |
27 | //domain: 'http://172.16.6.239:8080', //孙杰翔 | 27 | //domain: 'http://172.16.6.239:8080', //孙杰翔 |
28 | loggers: { | 28 | loggers: { |
29 | api: { | 29 | api: { |
@@ -704,5 +704,193 @@ exports.res = [{ | @@ -704,5 +704,193 @@ exports.res = [{ | ||
704 | name: 'brandId', | 704 | name: 'brandId', |
705 | type: 'Number' | 705 | type: 'Number' |
706 | }] | 706 | }] |
707 | + }, | ||
708 | + //***********************************陶雨******************************* | ||
709 | + { | ||
710 | + //保存搜索顺序 | ||
711 | + route: '/netSale/saveSearchSort', | ||
712 | + method: 'POST', | ||
713 | + url: '/product/saveSearchSort', | ||
714 | + params: [{ | ||
715 | + name: 'searchSortList', | ||
716 | + type: 'string' | ||
717 | + }] | ||
718 | +}, { | ||
719 | + //查找热搜词 | ||
720 | + route: '/netSale/queryHotSearchTerms', | ||
721 | + method: 'POST', | ||
722 | + url: '/searchWords/queryHotSearchTerms', | ||
723 | + params: [{ | ||
724 | + name: 'page', | ||
725 | + type: 'number' | ||
726 | + }, { | ||
727 | + name: 'size', | ||
728 | + type: 'number', | ||
729 | + def: 10 | ||
730 | + }] | ||
731 | +}, { | ||
732 | + //查找洗涤提示 | ||
733 | + route: '/netSale/getAll4Select', | ||
734 | + method: 'POST', | ||
735 | + url: '/washTips/getAll4Select/', | ||
736 | + params: [] | ||
737 | +}, { | ||
738 | + //查找材质参数 | ||
739 | + route: '/netSale/queryAllBySortId4Select', | ||
740 | + method: 'POST', | ||
741 | + url: '/productMaterial/queryAllBySortId4Select', | ||
742 | + params: [{ | ||
743 | + name: 'param', | ||
744 | + type: 'number' | ||
745 | + }] | ||
746 | +}, { | ||
747 | + //查找所有商品参数信息 //暂时没用 | ||
748 | + route: '/netSale/queryAllGoodsParams', | ||
749 | + method: 'POST', | ||
750 | + apis: { | ||
751 | + washTipsList: { | ||
752 | + url: '/washTips/getAll4Select/' | ||
753 | + }, | ||
754 | + materialList: { | ||
755 | + url: 'productMaterial/queryAllBySortId4Select', | ||
756 | + params: [{ | ||
757 | + name: 'param', | ||
758 | + type: 'number' | ||
759 | + }], | ||
760 | + isJsonRaw: true | ||
761 | + } | ||
762 | + } | ||
763 | +}, { | ||
764 | + //保存搜索关键词 | ||
765 | + route: '/netSale/saveNetSaleSearchKeys', | ||
766 | + method: 'POST', | ||
767 | + url: '/product/saveNetSaleSearchKeys', | ||
768 | + params: [{ | ||
769 | + name: 'productSkn', | ||
770 | + type: 'number' | ||
771 | + }, { | ||
772 | + name: 'searchKeys', | ||
773 | + type: 'string' | ||
774 | + }] | ||
775 | +}, { | ||
776 | + //保存商品参数 | ||
777 | + route: '/netSale/saveProductParam', | ||
778 | + method: 'POST', | ||
779 | + url: '/product/saveProductParam', | ||
780 | + params: [{ | ||
781 | + name: 'productSkn', | ||
782 | + type: 'number' | ||
783 | + }, { | ||
784 | + name: 'attributeProValuesOne', | ||
785 | + type: 'string' | ||
786 | + }, { | ||
787 | + name: 'productStandardRelationStr', | ||
788 | + type: 'string' | ||
789 | + },{ | ||
790 | + name: 'productMaterial', | ||
791 | + type: 'string' | ||
792 | + }] | ||
793 | +}, | ||
794 | +//************************************weiqingting********************** | ||
795 | +//商品描述 | ||
796 | + { | ||
797 | + route: '/netSale/saveProductDesc', | ||
798 | + method: 'POST', | ||
799 | + url: '/product/saveProductDesc', | ||
800 | + params: [{ | ||
801 | + name: 'productSkn', | ||
802 | + type: 'Number' | ||
803 | + }, { | ||
804 | + name: 'productDesc', | ||
805 | + type: 'String' | ||
806 | + }] | ||
807 | + }, | ||
808 | + //小编推荐 | ||
809 | + { | ||
810 | + route: '/netSale/saveNetSaleRecommend', | ||
811 | + method: 'POST', | ||
812 | + url: '/product/saveNetSaleRecommend', | ||
813 | + params: [{ | ||
814 | + name: 'productSkn', | ||
815 | + type: 'Number' | ||
816 | + }, { | ||
817 | + name: 'recommend', | ||
818 | + type: 'String' | ||
819 | + }] | ||
820 | + }, | ||
821 | + | ||
822 | + { //查询搭配列表 | ||
823 | + route: "/netSale/selectCollocationListBySkn", | ||
824 | + method: 'POST', | ||
825 | + url: '/collocation/selectCollocationListBySkn', | ||
826 | + params: [{ | ||
827 | + name: 'productSkn', | ||
828 | + type: 'Number' | ||
829 | + }, { | ||
830 | + name: 'page', | ||
831 | + type: 'Number' | ||
832 | + }, { | ||
833 | + name: 'size', | ||
834 | + type: 'Number' | ||
835 | + }] | ||
836 | + }, { //获取单个商品搭配信息 | ||
837 | + route: '/netSale/selectCollocationById', | ||
838 | + method: 'POST', | ||
839 | + url: '/collocation/selectCollocationById', | ||
840 | + params: [{ | ||
841 | + name: 'param', | ||
842 | + type: 'Number' | ||
843 | + }] | ||
844 | + }, { //添加单个搭配 | ||
845 | + route: '/netSale/insertCollocation', | ||
846 | + method: 'POST', | ||
847 | + url: '/collocation/insertCollocation', | ||
848 | + params: [{ | ||
849 | + name: 'productSkn', | ||
850 | + type: 'Number' | ||
851 | + }, { | ||
852 | + name: 'imageUrl', | ||
853 | + type: 'String' | ||
854 | + }, { | ||
855 | + name: 'content', | ||
856 | + type: 'String' | ||
857 | + }, { | ||
858 | + name: 'infoStr', | ||
859 | + type: 'String' | ||
860 | + }] | ||
861 | + }, { //更新单个搭配 | ||
862 | + route: '/netSale/updateCollocation', | ||
863 | + method: 'POST', | ||
864 | + url: '/collocation/updateCollocation', | ||
865 | + params: [{ | ||
866 | + name: 'id', | ||
867 | + type: 'Number' | ||
868 | + }, { | ||
869 | + name: 'imageUrl', | ||
870 | + type: 'String' | ||
871 | + }, { | ||
872 | + name: 'content', | ||
873 | + type: 'String' | ||
874 | + }, { | ||
875 | + name: 'infoStr', | ||
876 | + type: 'String' | ||
877 | + }] | ||
878 | + }, { //删除单个搭配 | ||
879 | + route: '/netSale/delCollocationById', | ||
880 | + method: 'POST', | ||
881 | + url: '/collocation/delCollocationById', | ||
882 | + params: [{ | ||
883 | + name: 'param', | ||
884 | + type: 'Number' | ||
885 | + }] | ||
886 | + }, { //单独维护封面信息 | ||
887 | + //http://172.16.6.227:8083/yohobuy-platform-web/product/manageProductImg | ||
888 | + route: '/netSale/manageProductImg', | ||
889 | + method: 'POST', | ||
890 | + url: '/product/manageProductImg', | ||
891 | + params: [{ | ||
892 | + name: 'goodsImagesReq', | ||
893 | + type: 'string' | ||
894 | + }] | ||
707 | } | 895 | } |
708 | ]; | 896 | ]; |
server/interface/netSaleTy.js
deleted
100644 → 0
1 | -exports.domain = require('../config/common.js').domain; | ||
2 | -//exports.domain = "http://172.16.6.227:8088/platform/"; | ||
3 | -//exports.domain = 'http://172.16.6.227:8088/platform'; //马力 | ||
4 | - | ||
5 | -exports.res = [{ | ||
6 | - //保存搜索顺序 | ||
7 | - route: '/netSale/saveSearchSort', | ||
8 | - method: 'POST', | ||
9 | - url: '/product/saveSearchSort', | ||
10 | - params: [{ | ||
11 | - name: 'searchSortList', | ||
12 | - type: 'string' | ||
13 | - }] | ||
14 | -}, { | ||
15 | - //查找热搜词 | ||
16 | - route: '/netSale/queryHotSearchTerms', | ||
17 | - method: 'POST', | ||
18 | - url: '/searchWords/queryHotSearchTerms', | ||
19 | - params: [{ | ||
20 | - name: 'page', | ||
21 | - type: 'number' | ||
22 | - }, { | ||
23 | - name: 'size', | ||
24 | - type: 'number', | ||
25 | - def: 10 | ||
26 | - }] | ||
27 | -}, { | ||
28 | - //查找洗涤提示 | ||
29 | - route: '/netSale/getAll4Select', | ||
30 | - method: 'POST', | ||
31 | - url: '/washTips/getAll4Select/', | ||
32 | - params: [] | ||
33 | -}, { | ||
34 | - //查找材质参数 | ||
35 | - route: '/netSale/queryAllBySortId4Select', | ||
36 | - method: 'POST', | ||
37 | - url: '/productMaterial/queryAllBySortId4Select', | ||
38 | - params: [{ | ||
39 | - name: 'param', | ||
40 | - type: 'number' | ||
41 | - }] | ||
42 | -}, { | ||
43 | - //查找所有商品参数信息 //暂时没用 | ||
44 | - route: '/netSale/queryAllGoodsParams', | ||
45 | - method: 'POST', | ||
46 | - apis: { | ||
47 | - washTipsList: { | ||
48 | - url: '/washTips/getAll4Select/' | ||
49 | - }, | ||
50 | - materialList: { | ||
51 | - url: 'productMaterial/queryAllBySortId4Select', | ||
52 | - params: [{ | ||
53 | - name: 'param', | ||
54 | - type: 'number' | ||
55 | - }], | ||
56 | - isJsonRaw: true | ||
57 | - } | ||
58 | - } | ||
59 | -}, { | ||
60 | - //保存搜索关键词 | ||
61 | - route: '/netSale/saveNetSaleSearchKeys', | ||
62 | - method: 'POST', | ||
63 | - url: '/product/saveNetSaleSearchKeys', | ||
64 | - params: [{ | ||
65 | - name: 'productSkn', | ||
66 | - type: 'number' | ||
67 | - }, { | ||
68 | - name: 'searchKeys', | ||
69 | - type: 'string' | ||
70 | - }] | ||
71 | -}, { | ||
72 | - //保存商品参数 | ||
73 | - route: '/netSale/saveProductParam', | ||
74 | - method: 'POST', | ||
75 | - url: '/product/saveProductParam', | ||
76 | - params: [{ | ||
77 | - name: 'productSkn', | ||
78 | - type: 'number' | ||
79 | - }, { | ||
80 | - name: 'attributeProValuesOne', | ||
81 | - type: 'string' | ||
82 | - }, { | ||
83 | - name: 'productStandardRelationStr', | ||
84 | - type: 'string' | ||
85 | - },{ | ||
86 | - name: 'productMaterial', | ||
87 | - type: 'string' | ||
88 | - }] | ||
89 | -}]; |
server/interface/netSaleWq.js
deleted
100644 → 0
1 | -exports.domain = require('../config/common.js').domain; | ||
2 | -//exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web'; | ||
3 | -exports.res = [ | ||
4 | - //商品描述 | ||
5 | - { | ||
6 | - route: '/netSale/saveProductDesc', | ||
7 | - method: 'POST', | ||
8 | - url: '/product/saveProductDesc', | ||
9 | - params: [{ | ||
10 | - name: 'productSkn', | ||
11 | - type: 'Number' | ||
12 | - }, { | ||
13 | - name: 'productDesc', | ||
14 | - type: 'String' | ||
15 | - }] | ||
16 | - }, | ||
17 | - //小编推荐 | ||
18 | - { | ||
19 | - route: '/netSale/saveNetSaleRecommend', | ||
20 | - method: 'POST', | ||
21 | - url: '/product/saveNetSaleRecommend', | ||
22 | - params: [{ | ||
23 | - name: 'productSkn', | ||
24 | - type: 'Number' | ||
25 | - }, { | ||
26 | - name: 'recommend', | ||
27 | - type: 'String' | ||
28 | - }] | ||
29 | - }, | ||
30 | - | ||
31 | - { //查询搭配列表 | ||
32 | - route: "/netSale/selectCollocationListBySkn", | ||
33 | - method: 'POST', | ||
34 | - url: '/collocation/selectCollocationListBySkn', | ||
35 | - params: [{ | ||
36 | - name: 'productSkn', | ||
37 | - type: 'Number' | ||
38 | - }, { | ||
39 | - name: 'page', | ||
40 | - type: 'Number' | ||
41 | - }, { | ||
42 | - name: 'size', | ||
43 | - type: 'Number' | ||
44 | - }] | ||
45 | - }, { //获取单个商品搭配信息 | ||
46 | - route: '/netSale/selectCollocationById', | ||
47 | - method: 'POST', | ||
48 | - url: '/collocation/selectCollocationById', | ||
49 | - params: [{ | ||
50 | - name: 'param', | ||
51 | - type: 'Number' | ||
52 | - }] | ||
53 | - }, { //添加单个搭配 | ||
54 | - route: '/netSale/insertCollocation', | ||
55 | - method: 'POST', | ||
56 | - url: '/collocation/insertCollocation', | ||
57 | - params: [{ | ||
58 | - name: 'productSkn', | ||
59 | - type: 'Number' | ||
60 | - }, { | ||
61 | - name: 'imageUrl', | ||
62 | - type: 'String' | ||
63 | - }, { | ||
64 | - name: 'content', | ||
65 | - type: 'String' | ||
66 | - }, { | ||
67 | - name: 'infoStr', | ||
68 | - type: 'String' | ||
69 | - }] | ||
70 | - }, { //更新单个搭配 | ||
71 | - route: '/netSale/updateCollocation', | ||
72 | - method: 'POST', | ||
73 | - url: '/collocation/updateCollocation', | ||
74 | - params: [{ | ||
75 | - name: 'id', | ||
76 | - type: 'Number' | ||
77 | - }, { | ||
78 | - name: 'imageUrl', | ||
79 | - type: 'String' | ||
80 | - }, { | ||
81 | - name: 'content', | ||
82 | - type: 'String' | ||
83 | - }, { | ||
84 | - name: 'infoStr', | ||
85 | - type: 'String' | ||
86 | - }] | ||
87 | - }, { //删除单个搭配 | ||
88 | - route: '/netSale/delCollocationById', | ||
89 | - method: 'POST', | ||
90 | - url: '/collocation/delCollocationById', | ||
91 | - params: [{ | ||
92 | - name: 'param', | ||
93 | - type: 'Number' | ||
94 | - }] | ||
95 | - }, { //单独维护封面信息 | ||
96 | - //http://172.16.6.227:8083/yohobuy-platform-web/product/manageProductImg | ||
97 | - route: '/netSale/manageProductImg', | ||
98 | - method: 'POST', | ||
99 | - url: '/product/manageProductImg', | ||
100 | - params: [{ | ||
101 | - name: 'goodsImagesReq', | ||
102 | - type: 'string' | ||
103 | - }] | ||
104 | - } | ||
105 | -]; |
-
Please register or login to post a comment