Edit.html
6.89 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">店铺管理</a></li>
<li>{{pageTitel}}</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>{{pageTitel}}</h4>
</div>
</div>
</div>
</div>
</div>
<form id="storeForm" role="form" class="form-horizontal form-bordered" method="post" action="{{action}}">
{{#data}}
<input type="hidden" id="shopsId" value="{{ shopsId}}">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">创建店铺</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<div class="col-sm-1 control-label">
<label>店铺名称:<span class="red">*</span></label>
</div>
<div class="col-sm-9">
<input form="storeForm" name="shopName" id="shopName" type="text" class="form-control" value="{{ shopName}}" placeholder="店铺名称" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>店铺类型:<span class="red">*</span></label>
</div>
<div class="col-sm-9">
<select name="shopNature" id="shopNature" value='{{shopNature}}' required class="form-control">
<option value="-1">店铺类型</option>
<option value="1">旗舰店</option>
<option value="2">专卖店</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>店铺域名:<span class="red">*</span></label>
</div>
<div class="col-sm-6">
<div class="input-group">
<input type="text" form="storeForm" name="shopDomain" id="shopDomain" class="form-control" value="{{ shopDomain}}" placeholder="店铺域名" aria-describedby="basic-addon2" required>
<span class="input-group-addon" id="basic-addon2">.yohobuy.com</span>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>官方网址:</label>
</div>
<div class="col-sm-9">
<div id="websiteUrl-list" class="input-group Add col-sm-6" style="float: left;">
</div>
<button type="button" data-type="0" class="btn btn-info urlAdd" style="margin-left: 8px;">新增</button>
</div>
<input id="websiteUrl" type="hidden" value="{{ websiteUrl}}">
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>其他平台网址:</label>
</div>
<div class="col-sm-9">
<div id="otherUrl-list"class="input-group Add col-sm-6 col-sm-6" style="float: left;">
</div>
<button type="button" data-type="1" class="btn btn-info urlAdd" style="margin-left: 8px;">新增</button>
</div>
<input id="otherUrl" type="hidden" value="{{ otherUrl}}">
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>代表实体店:</label>
</div>
<div class="col-sm-9">
<div id="shopAddress-list" class="input-group Add col-sm-6" style="float: left;">
</div>
<button type="button" data-type="2" class="btn btn-info urlAdd" style="margin-left: 8px;">新增</button>
</div>
<input id="shopAddress" type="hidden" value="{{ shopAddress}}">
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>店铺Logo:</label>
</div>
<div class="col-sm-8">
<input type="file" id="shopLogo" name="shopLogo" value="{{shopLogo}}">
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>店铺简介:</label>
</div>
<div class="col-sm-7">
<textarea class="form-control" form="storeForm" rows="10" name="shopIntro" id="shopIntro">{{shopIntro}}</textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>店铺模式:
<span class="red">*</span>
</label>
</div>
<div class="col-sm-9">
<select name="shopsType" id="shopsType" value='{{shopsType}}' class="form-control" required>
<option value="-1">店铺模式</option>
<option value="1">单品店</option>
<option value="2">多品店</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>关联品牌:<span class="red">*</span></label>
</div>
<div class="col-sm-9">
<button type="button" class="btn btn-info" id="modalId">添加供应商</button>
</div>
</div>
<div class="form-group">
<div class="col-sm-8 col-sm-offset-1">
<div id="updateBrand"></div>
</div>
<input type="hidden" id="shopRelationList" value="{{shopRelationList}}" />
</div>
<button type="button" data-oncheck='1' class="check btn btn-success">提交审核</button>
{{^checkStatus}}
<button type="button" data-oncheck='2' class="check btn btn-info btn-cun">暂存</button>
{{/checkStatus}}
<button onclick="history.go(-1);" type="button" class="btn btn-danger">取消</button>
</div>
</div>
</div>
</div>
{{/data}}
</form>
<script type="text/template" id="template">
<div class="rows">
<div class="form-group">
<select name="brandname" id="brandname" style="width: 280px" tabindex="-1" class="select2-offscreen">
<option value="-1">选择品牌</option>
</select>
</div>
<div class="form-group" style="height: 400px">
<div id="baseTable"></div>
</div>
</div>
</script>
<!-- <div class="modal fade" id="modal-id">
<div class="modal-dialog">
<div class="modal-content" id="saveBrand">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">添加供应商关系</h4>
</div>
<div class="modal-body">
<select name="time-sort" id="brand-name" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1">选择品牌</option>
{{# supplierName}}
<option value="{{value}}">{{name}}</option>
{{/ supplierName}}
</select>
<table id="savebrand" class="table table-hover">
<thead>
<tr>
<th>选择</th>
<th>品牌</th>
<th>供应商</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="modal-footer">
<button id="addBrand" type="button" class="btn btn-primary">保存</button>
</div>
</div>
</div>
</div> -->