将补全信息中:弹性、厚度、柔软度、透气性、品牌款型、品牌系列,移到商品参数中展示
Showing
4 changed files
with
40 additions
and
32 deletions
@@ -153,8 +153,6 @@ module.exports={ | @@ -153,8 +153,6 @@ module.exports={ | ||
153 | url: '/product/saveAfterSaleInfo', | 153 | url: '/product/saveAfterSaleInfo', |
154 | params:{ | 154 | params:{ |
155 | productSkn:{type:Number,required:true}, | 155 | productSkn:{type:Number,required:true}, |
156 | - brandModel:{type:String}, | ||
157 | - brandSeries:{type:String}, | ||
158 | makeCrafts:{type:String}, | 156 | makeCrafts:{type:String}, |
159 | salesPhrase:{type:String}, | 157 | salesPhrase:{type:String}, |
160 | isHostsell:{type:String}, | 158 | isHostsell:{type:String}, |
@@ -277,7 +275,9 @@ module.exports={ | @@ -277,7 +275,9 @@ module.exports={ | ||
277 | {name: 'productSkn', type: 'number'}, | 275 | {name: 'productSkn', type: 'number'}, |
278 | {name: 'attributeProValuesOne', type: 'string'}, | 276 | {name: 'attributeProValuesOne', type: 'string'}, |
279 | {name: 'productStandardRelationStr', type: 'string'}, | 277 | {name: 'productStandardRelationStr', type: 'string'}, |
280 | - {name: 'productMaterial', type: 'string'} | 278 | + {name: 'productMaterial', type: 'string'}, |
279 | + {name: 'brandModel', type: 'string'}, | ||
280 | + {name: 'brandSeries', type: 'string'} | ||
281 | ] | 281 | ] |
282 | }, | 282 | }, |
283 | saveProductDesc:{ | 283 | saveProductDesc:{ |
@@ -39,32 +39,6 @@ | @@ -39,32 +39,6 @@ | ||
39 | 39 | ||
40 | </div> | 40 | </div> |
41 | [[/each]] | 41 | [[/each]] |
42 | - <div id="brandModelWrap" class="form-group"> | ||
43 | - <label>品牌款型:</label> | ||
44 | - <div style="display: inline-block;width: 280px;"> | ||
45 | - <select name="brandModelSelect" id="brandModelSelect" tabindex="-1" title="" class="form-control" > | ||
46 | - [[if brandModelText]] | ||
47 | - <option value="[[brandModel]]">[[brandModelText]]</option> | ||
48 | - [[else]] | ||
49 | - <option value="">请选择品牌款型</option> | ||
50 | - [[/if]] | ||
51 | - </select> | ||
52 | - </div> | ||
53 | - <input type="hidden" id="brandModel" value="[[brandModel]]"> | ||
54 | - </div> | ||
55 | - <div id="brandSeriesWrap" class="form-group"> | ||
56 | - <label>品牌系列:</label> | ||
57 | - <div style="display: inline-block;width: 280px;"> | ||
58 | - <select name="brandSeriesSelect" id="brandSeriesSelect" tabindex="-1" title="" class="form-control"> | ||
59 | - [[if brandSeriesText]] | ||
60 | - <option value="[[brandSeries]]">[[brandSeriesText]]</option> | ||
61 | - [[else]] | ||
62 | - <option value="">请选择品牌系列</option> | ||
63 | - [[/if]] | ||
64 | - </select> | ||
65 | - </div> | ||
66 | - <input type="hidden" id="brandSeries" value="[[brandSeries]]"> | ||
67 | - </div> | ||
68 | 42 | ||
69 | <div class="form-group"> | 43 | <div class="form-group"> |
70 | <label>促销短语:</label> | 44 | <label>促销短语:</label> |
@@ -80,4 +54,5 @@ | @@ -80,4 +54,5 @@ | ||
80 | </span> | 54 | </span> |
81 | </div> | 55 | </div> |
82 | --> | 56 | --> |
83 | -</script> | ||
57 | +</script> | ||
58 | + |
@@ -13,6 +13,8 @@ | @@ -13,6 +13,8 @@ | ||
13 | </div> | 13 | </div> |
14 | <div id="goodsParamWrap2" class="panel-body nopadding"> | 14 | <div id="goodsParamWrap2" class="panel-body nopadding"> |
15 | </div> | 15 | </div> |
16 | + <div id="goodsParamWrap3" class="panel-body nopadding"> | ||
17 | + </div> | ||
16 | </div> | 18 | </div> |
17 | 19 | ||
18 | <div class="panel-footer" id="goodsParams-footer"> | 20 | <div class="panel-footer" id="goodsParams-footer"> |
@@ -55,4 +57,33 @@ | @@ -55,4 +57,33 @@ | ||
55 | <textarea class="form-control attr_input" data-index='[[__index]]' [[required]] maxlength='[[maxValueLen]]' placeholder="[[attributeName]]">[[val||'']]</textarea> | 57 | <textarea class="form-control attr_input" data-index='[[__index]]' [[required]] maxlength='[[maxValueLen]]' placeholder="[[attributeName]]">[[val||'']]</textarea> |
56 | [[/if]] | 58 | [[/if]] |
57 | </div> | 59 | </div> |
60 | +</script> | ||
61 | + | ||
62 | +<script type="text/template" id="brandModelSeries"> | ||
63 | + <div id="brandModelWrap" class="form-group"> | ||
64 | + <label>品牌款型:</label> | ||
65 | + <div style="display: inline-block;width: 280px;"> | ||
66 | + <select name="brandModelSelect" id="brandModelSelect" tabindex="-1" title="" class="form-control" > | ||
67 | + [[if brandModelText]] | ||
68 | + <option value="[[brandModel]]">[[brandModelText]]</option> | ||
69 | + [[else]] | ||
70 | + <option value="">请选择品牌款型</option> | ||
71 | + [[/if]] | ||
72 | + </select> | ||
73 | + </div> | ||
74 | + <input type="hidden" id="brandModel" value="[[brandModel]]"> | ||
75 | + </div> | ||
76 | + <div id="brandSeriesWrap" class="form-group"> | ||
77 | + <label>品牌系列:</label> | ||
78 | + <div style="display: inline-block;width: 280px;"> | ||
79 | + <select name="brandSeriesSelect" id="brandSeriesSelect" tabindex="-1" title="" class="form-control"> | ||
80 | + [[if brandSeriesText]] | ||
81 | + <option value="[[brandSeries]]">[[brandSeriesText]]</option> | ||
82 | + [[else]] | ||
83 | + <option value="">请选择品牌系列</option> | ||
84 | + [[/if]] | ||
85 | + </select> | ||
86 | + </div> | ||
87 | + <input type="hidden" id="brandSeries" value="[[brandSeries]]"> | ||
88 | + </div> | ||
58 | </script> | 89 | </script> |
@@ -46,8 +46,6 @@ $('#saveAddInfo').on('click', function() { | @@ -46,8 +46,6 @@ $('#saveAddInfo').on('click', function() { | ||
46 | url:'/goods/product/saveAfterSaleInfo', | 46 | url:'/goods/product/saveAfterSaleInfo', |
47 | data:{ | 47 | data:{ |
48 | productSkn:basicInfo.productSkn, | 48 | productSkn:basicInfo.productSkn, |
49 | - brandModel:common.util.__input('brandModel'), | ||
50 | - brandSeries:common.util.__input('brandSeries'), | ||
51 | makeCrafts:common.util.__input('makeCrafts'), | 49 | makeCrafts:common.util.__input('makeCrafts'), |
52 | salesPhrase:common.util.__input('salesPhrase'), | 50 | salesPhrase:common.util.__input('salesPhrase'), |
53 | isHostsell:common.util.__input('[name=isHostsell]:checked'), | 51 | isHostsell:common.util.__input('[name=isHostsell]:checked'), |
@@ -107,6 +105,7 @@ common.util.__ajax({ | @@ -107,6 +105,7 @@ common.util.__ajax({ | ||
107 | } | 105 | } |
108 | 106 | ||
109 | $('#addinfo-wrap').html(common.util.__template2($('#addInfoTemp').html(), data)); | 107 | $('#addinfo-wrap').html(common.util.__template2($('#addInfoTemp').html(), data)); |
108 | + $('#goodsParamWrap3').html(common.util.__template2($('#brandModelSeries').html(), data)); | ||
110 | 109 | ||
111 | e.on("bind", function() { | 110 | e.on("bind", function() { |
112 | $('#brandModelSelect').on('change', function() { | 111 | $('#brandModelSelect').on('change', function() { |
@@ -372,6 +371,9 @@ function TYgoodsParams(){ | @@ -372,6 +371,9 @@ function TYgoodsParams(){ | ||
372 | } | 371 | } |
373 | 372 | ||
374 | data.productSkn = $('#productSkn').val(); | 373 | data.productSkn = $('#productSkn').val(); |
374 | + | ||
375 | + data.brandModel = common.util.__input('brandModel'); | ||
376 | + data.brandSeries = common.util.__input('brandSeries'); | ||
375 | return data; | 377 | return data; |
376 | }; | 378 | }; |
377 | 379 |
-
Please register or login to post a comment