goods_params.html
3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<div class="panel panel-default" id="taoyu1">
<div class="panel-heading">
<a class="netsale-position" href="javascript:;" name="position6"></a>
<div class="panel-btns" style="display: none;">
<a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
</div>
<h2 class="panel-title">商品参数</h2>
</div>
<div class="panel-body">
<div id="attributeTable" class="panel-body nopadding">
</div>
<div id="goodsParamWrap" class="panel-body nopadding">
</div>
<div id="goodsParamWrap2" class="panel-body nopadding">
</div>
<div id="goodsParamWrap3" class="panel-body nopadding">
</div>
</div>
<div class="panel-footer" id="goodsParams-footer">
<a href="javascript:;" class="btn btn-primary" id="propertySave">保存</a>
</div>
</div>
<script type="text/template" id="template33">
<div class="form-group">
[[if inputType=='checkbox']]
[[each idNameList as item index ]]
<label class="radio-inline">
<input type="checkbox" name="[[__name]]_attr_[[__index]]" data-index=[[__index]] class="attr_checkobx_class" value="[[item.id]]">[[item.text]]</label>
[[/each]]
<input type="hidden" id="[[__name]]_attr_[[__index]]" value="[[__val||'']]" [[required]] for="checkbox" placeholder="[[attributeName]]"/>
[[/if]]
[[if inputType=='radio']]
[[each idNameList as item index ]]
<label class="radio-inline">
<input type="radio" name="[[__name]]_attr_[[__index]]" data-index=[[__index]] class="attr_input" value="[[item.id]]">[[item.text]]</label>
[[/each]]
<input type="hidden" id="[[__name]]_attr_[[__index]]" data-index='[[__index]]' value="[[__val||'']]" [[required]] for="radio" placeholder="[[attributeName]]" />
[[/if]]
[[if inputType=='select']]
<select class="form-control attr_input" style="width: 280px" data-index='[[__index]]' value="[[__val||'']]" [[required]]>
<option value="">请选择[[attributeName]]</option>
[[each idNameList as item index ]]
<option value="[[item.id]]">[[item.text]]</option>
[[/each]]
</select>
[[/if]]
[[if inputType=='text']]
<input type="text" class="form-control attr_input" style="width: 280px" data-index='[[__index]]' value="[[val||'']]" [[required]] maxlength='[[maxValueLen]]' placeholder="[[attributeName]]"/>
[[/if]]
[[if inputType=='textarea']]
<textarea class="form-control attr_input" data-index='[[__index]]' [[required]] maxlength='[[maxValueLen]]' placeholder="[[attributeName]]">[[val||'']]</textarea>
[[/if]]
</div>
</script>
<script type="text/template" id="brandModelSeries">
<div id="brandModelWrap" class="form-group">
<label>品牌款型:</label>
<div style="display: inline-block;width: 280px;">
<select name="brandModelSelect" id="brandModelSelect" tabindex="-1" title="" class="form-control" >
[[if brandModelText]]
<option value="[[brandModel]]">[[brandModelText]]</option>
[[else]]
<option value="">请选择品牌款型</option>
[[/if]]
</select>
</div>
<input type="hidden" id="brandModel" value="[[brandModel]]">
</div>
<div id="brandSeriesWrap" class="form-group">
<label>品牌系列:</label>
<div style="display: inline-block;width: 280px;">
<select name="brandSeriesSelect" id="brandSeriesSelect" tabindex="-1" title="" class="form-control">
[[if brandSeriesText]]
<option value="[[brandSeries]]">[[brandSeriesText]]</option>
[[else]]
<option value="">请选择品牌系列</option>
[[/if]]
</select>
</div>
<input type="hidden" id="brandSeries" value="[[brandSeries]]">
</div>
</script>