Showing
7 changed files
with
34 additions
and
26 deletions
@@ -116,9 +116,11 @@ $(document).on("click", "#saveAllInfo", function() { | @@ -116,9 +116,11 @@ $(document).on("click", "#saveAllInfo", function() { | ||
116 | $.extend(data, value, true); | 116 | $.extend(data, value, true); |
117 | }); | 117 | }); |
118 | 118 | ||
119 | - e.submit('/goods/product/saveNetSaleAllInfo', function(option) { | ||
120 | - option.data = data; | ||
121 | - option.success = function(res) { | 119 | + if (typeof data != 'string') { |
120 | + common.util.__ajax({ | ||
121 | + url: '/goods/product/saveNetSaleAllInfo', | ||
122 | + data: data | ||
123 | + }, function(res) { | ||
122 | res = res.data; | 124 | res = res.data; |
123 | if (res.code == '200') { | 125 | if (res.code == '200') { |
124 | e.$tip(res.message, function() { | 126 | e.$tip(res.message, function() { |
@@ -128,8 +130,9 @@ $(document).on("click", "#saveAllInfo", function() { | @@ -128,8 +130,9 @@ $(document).on("click", "#saveAllInfo", function() { | ||
128 | e.$tip(res.message); | 130 | e.$tip(res.message); |
129 | } | 131 | } |
130 | return false; | 132 | return false; |
131 | - } | ||
132 | }); | 133 | }); |
134 | + } | ||
135 | + | ||
133 | }) | 136 | }) |
134 | 137 | ||
135 | 138 |
@@ -174,20 +174,10 @@ $('#saveBasicInfo').on('click', function() { | @@ -174,20 +174,10 @@ $('#saveBasicInfo').on('click', function() { | ||
174 | }); | 174 | }); |
175 | 175 | ||
176 | GOLABDATA.on("LYbasicInfo", function() { | 176 | GOLABDATA.on("LYbasicInfo", function() { |
177 | - /*return e.submit('', function(option) { | ||
178 | - var list = option.data.sellChannels.split('|').join(','); | 177 | + return e.submit('', function(option) { |
179 | option.data.productSkn = $('#productSkn').val(); | 178 | option.data.productSkn = $('#productSkn').val(); |
180 | - option.data.sellChannels = list; | ||
181 | - option.data.shopIds = $('#shopIds').val() ? $('#shopIds').val().split('|').join(',') : ''; | 179 | + option.data.sellChannels = option.data.sellChannels.split('|').join(','); |
180 | + option.data.shopIds = option.data.shopIds.split('|').join(','); | ||
182 | option.debug = true; | 181 | option.debug = true; |
183 | - });*/ | ||
184 | - var data = {}; | ||
185 | - data.productSkn = $('#productSkn').val(); | ||
186 | - $('#basicInfoWrap').find('input').each(function() { | ||
187 | - var key = $(this).attr('id'); | ||
188 | - if (key) { | ||
189 | - data[key] = $(this).val().split('|').join(','); | ||
190 | - } | ||
191 | }); | 182 | }); |
192 | - return data; | ||
193 | }); | 183 | }); |
@@ -54,8 +54,8 @@ $(document).on("click", "#btn-recommand", function() { | @@ -54,8 +54,8 @@ $(document).on("click", "#btn-recommand", function() { | ||
54 | return false; | 54 | return false; |
55 | }); | 55 | }); |
56 | 56 | ||
57 | -GOLABDATA.on("bianjiqi", function() { | ||
58 | - /*if (UMdescriptioner.getContent() != '') { | 57 | +/*GOLABDATA.on("bianjiqi", function() { |
58 | + if (UMdescriptioner.getContent() != '') { | ||
59 | return { | 59 | return { |
60 | recommend: UMrecommender.getContent(), | 60 | recommend: UMrecommender.getContent(), |
61 | productDesc: UMdescriptioner.getContent() | 61 | productDesc: UMdescriptioner.getContent() |
@@ -64,14 +64,27 @@ GOLABDATA.on("bianjiqi", function() { | @@ -64,14 +64,27 @@ GOLABDATA.on("bianjiqi", function() { | ||
64 | common.util.__tip('商品描述不可为空', 'warning'); | 64 | common.util.__tip('商品描述不可为空', 'warning'); |
65 | return; | 65 | return; |
66 | } | 66 | } |
67 | -*/ | ||
68 | 67 | ||
69 | - $('#productDesc').val(UMdescriptioner.getContent()); | ||
70 | - return { | ||
71 | - recommend: UMrecommender.getContent(), | ||
72 | - productDesc: $('#productDesc').val() | ||
73 | - } | 68 | +});*/ |
74 | 69 | ||
70 | +GOLABDATA.on("LYrecommend", function() { | ||
71 | + var recommendEdit = new common.edit('#recommenderWrap'); | ||
72 | + $('#recommend').val(UMrecommender.getContent()); | ||
73 | + return recommendEdit.submit('', function(option) { | ||
74 | + option.productSkn = productSkn; | ||
75 | + option.recommend = $('#recommend').val(); | ||
76 | + option.debug = true; | ||
77 | + }); | ||
78 | +}); | ||
79 | + | ||
80 | +GOLABDATA.on("LYproductDesc", function() { | ||
81 | + var descriptionEdit = new common.edit('#descriptionerWrap'); | ||
82 | + $('#productDesc').val(UMdescriptioner.getContent()); | ||
83 | + return descriptionEdit.submit('', function(option) { | ||
84 | + option.productSkn = productSkn; | ||
85 | + option.productDesc = $('#productDesc').val(); | ||
86 | + option.debug = true; | ||
87 | + }); | ||
75 | }); | 88 | }); |
76 | 89 | ||
77 | if (editType == 'info') { | 90 | if (editType == 'info') { |
@@ -17,7 +17,7 @@ var config = { | @@ -17,7 +17,7 @@ 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.9.8:8080/yohobuy-platform-web',//葛超 | 22 | //domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超 |
23 | domain: 'http://192.168.102.202:8088/platform', | 23 | domain: 'http://192.168.102.202:8088/platform', |
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | </div> | 9 | </div> |
10 | <div class="panel-body nopadding"> | 10 | <div class="panel-body nopadding"> |
11 | <script id="edit-recommender" type="text/plain" style="width:100%;height:500px;"></script> | 11 | <script id="edit-recommender" type="text/plain" style="width:100%;height:500px;"></script> |
12 | + <input id="recommend" type="hidden"> | ||
12 | <p> | 13 | <p> |
13 | <span class="red">提示:与商品相关的逛信息自动抓取到下列各模块中,若要在商品详情中展示,请将其编辑在【小编推荐】中。 | 14 | <span class="red">提示:与商品相关的逛信息自动抓取到下列各模块中,若要在商品详情中展示,请将其编辑在【小编推荐】中。 |
14 | </span> | 15 | </span> |
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | </div> | 9 | </div> |
10 | <div class="panel-body nopadding"> | 10 | <div class="panel-body nopadding"> |
11 | <script id="edit-descriptioner" type="text/plain" style="width:100%;height:500px;"></script> | 11 | <script id="edit-descriptioner" type="text/plain" style="width:100%;height:500px;"></script> |
12 | + <input id="productDesc" type="hidden" required> | ||
12 | </div> | 13 | </div> |
13 | <div class="panel-footer"> | 14 | <div class="panel-footer"> |
14 | <input type="hidden" id="productDesc" required placeholder="商品描述"> | 15 | <input type="hidden" id="productDesc" required placeholder="商品描述"> |
-
Please register or login to post a comment