|
@@ -1,8 +1,20 @@
|
1
|
1
|
{layout name="layout2" /}
|
2
|
2
|
<style>
|
3
|
|
- .layui-form-item .layui-form-label { width: 95px; }
|
4
|
|
- .layui-form-item .layui-input-inline { width: 240px; }
|
5
|
|
- .layui-form-item .map-container{ width: 600px; height: 400px; margin-left: 100px; margin-top: 20px; }
|
|
3
|
+ .layui-form-item .layui-form-label {
|
|
4
|
+ width: 95px;
|
|
5
|
+ }
|
|
6
|
+
|
|
7
|
+ .layui-form-item .layui-input-inline {
|
|
8
|
+ width: 240px;
|
|
9
|
+ }
|
|
10
|
+
|
|
11
|
+ .layui-form-item .map-container {
|
|
12
|
+ width: 600px;
|
|
13
|
+ height: 400px;
|
|
14
|
+ margin-left: 100px;
|
|
15
|
+ margin-top: 20px;
|
|
16
|
+ }
|
|
17
|
+
|
6
|
18
|
.layui-form-select dl {
|
7
|
19
|
z-index: 1001;
|
8
|
20
|
}
|
|
@@ -21,23 +33,25 @@
|
21
|
33
|
<div class="layui-form-item">
|
22
|
34
|
<label for="name" class="layui-form-label"><span style="color:red;">*</span>商家名称:</label>
|
23
|
35
|
<div class="layui-input-inline">
|
24
|
|
- <input type="text" name="name" id="name" lay-verType="tips" lay-verify="name"
|
25
|
|
- switch-tab="0" autocomplete="off" class="layui-input">
|
|
36
|
+ <input type="text" name="name" id="name" lay-verType="tips" lay-verify="name" switch-tab="0"
|
|
37
|
+ autocomplete="off" class="layui-input">
|
26
|
38
|
</div>
|
27
|
39
|
</div>
|
28
|
40
|
<div class="layui-form-item" style="display: none;">
|
29
|
41
|
<label class="layui-form-label"><span style="color:red;">*</span>商家类型:</label>
|
30
|
42
|
<div class="layui-input-inline">
|
31
|
|
- <input type="radio" name="type" value="1" title="官方自营" >
|
|
43
|
+ <input type="radio" name="type" value="1" title="官方自营">
|
32
|
44
|
<input type="radio" name="type" value="2" title="入驻商家" checked>
|
33
|
45
|
</div>
|
34
|
46
|
</div>
|
35
|
47
|
<div class="layui-form-item" style="display: none;">
|
36
|
48
|
<label class="layui-form-label"><span style="color:red;">*</span>配送方式:</label>
|
37
|
49
|
<div class="layui-input-inline">
|
38
|
|
- <input type="checkbox" name="delivery_type[]" value="1" title="快递发货" lay-skin="primary" checked disabled>
|
39
|
|
- <input type="checkbox" name="delivery_type[]" value="2" title="线下自提" lay-skin="primary" >
|
40
|
|
- <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">实物商品的配送方式【快递发货】默认为必选,虚拟商品默认为虚拟发货,不受配送方式限制</div>
|
|
50
|
+ <input type="checkbox" name="delivery_type[]" value="1" title="快递发货" lay-skin="primary" checked
|
|
51
|
+ disabled>
|
|
52
|
+ <input type="checkbox" name="delivery_type[]" value="2" title="线下自提" lay-skin="primary">
|
|
53
|
+ <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">
|
|
54
|
+ 实物商品的配送方式【快递发货】默认为必选,虚拟商品默认为虚拟发货,不受配送方式限制</div>
|
41
|
55
|
</div>
|
42
|
56
|
</div>
|
43
|
57
|
<div class="layui-form-item">
|
|
@@ -99,7 +113,7 @@
|
99
|
113
|
<div class="layui-form-item" style="display: none;">
|
100
|
114
|
<label class="layui-form-label">地图定位:</label>
|
101
|
115
|
<div class="layui-input-block">
|
102
|
|
- <div class="layui-inline" >
|
|
116
|
+ <div class="layui-inline">
|
103
|
117
|
<div class="layui-input-inline" style="width:120px;margin-right:5px;">
|
104
|
118
|
<input type="text" name="longitude" autocomplete="off" class="layui-input">
|
105
|
119
|
</div>
|
|
@@ -134,21 +148,48 @@
|
134
|
148
|
</div>
|
135
|
149
|
<!-- 2、经营设置 -->
|
136
|
150
|
<div class="layui-tab-item">
|
137
|
|
- <div class="layui-form-item">
|
|
151
|
+ <div class="layui-form-item" style="display: none;">
|
138
|
152
|
<label for="expire_time" class="layui-form-label"><span style="color:red;">*</span>到期时间:</label>
|
139
|
153
|
<div class="layui-input-inline">
|
140
|
|
- <input type="text" name="expire_time" id="expire_time" lay-verType="tips" lay-verify="expire_time"
|
141
|
|
- switch-tab="1" autocomplete="off" class="layui-input">
|
|
154
|
+ <input type="text" name="expire_time" id="expire_time" lay-verType="tips"
|
|
155
|
+ lay-verify="expire_time" switch-tab="1" autocomplete="off" class="layui-input">
|
142
|
156
|
</div>
|
143
|
157
|
</div>
|
|
158
|
+
|
|
159
|
+ <div class="layui-form-item">
|
|
160
|
+ <label class="layui-form-label"><span style="color:red;">*</span>获客类型:</label>
|
|
161
|
+ <div class="layui-input-inline">
|
|
162
|
+ <input type="radio" name="hksy_type" value="0" title="包月" lay-filter="hksy_type">
|
|
163
|
+ <input type="radio" name="hksy_type" value="1" title="按量付费" lay-filter="hksy_type" checked>
|
|
164
|
+ </div>
|
|
165
|
+ </div>
|
|
166
|
+
|
|
167
|
+ <div class="layui-form-item hksy_type_item">
|
|
168
|
+ <label for="hksy_count" class="layui-form-label"><span style="color:red;">*</span>赠送评论数:</label>
|
|
169
|
+ <div class="layui-input-inline">
|
|
170
|
+ <input type="number" name="hksy_count" id="hksy_count" value="1000" lay-verType="tips"
|
|
171
|
+ lay-verify="hksy_count" switch-tab="1" autocomplete="off" class="layui-input">
|
|
172
|
+ </div>
|
|
173
|
+ </div>
|
|
174
|
+
|
|
175
|
+ <div class="layui-form-item hksy_type_item2" style="display: none;">
|
|
176
|
+ <label for="months" class="layui-form-label"><span style="color:red;">*</span>赠送月份数:</label>
|
|
177
|
+ <div class="layui-input-inline">
|
|
178
|
+ <input type="number" name="months" id="months" value="12" lay-verType="tips"
|
|
179
|
+ lay-verify="months" switch-tab="1" autocomplete="off" class="layui-input">
|
|
180
|
+ </div>
|
|
181
|
+ </div>
|
|
182
|
+
|
144
|
183
|
<div class="layui-form-item" style="display: none;">
|
145
|
|
- <label for="trade_service_fee" class="layui-form-label"><span style="color:red;">*</span>交易服务费:</label>
|
|
184
|
+ <label for="trade_service_fee" class="layui-form-label"><span
|
|
185
|
+ style="color:red;">*</span>交易服务费:</label>
|
146
|
186
|
<div class="layui-input-inline">
|
147
|
187
|
<input type="number" min="0" max="100" name="trade_service_fee" id="trade_service_fee"
|
148
|
188
|
lay-verType="tips" lay-verify="trade_service_fee"
|
149
|
|
- onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
|
150
|
|
- switch-tab="1" autocomplete="off" class="layui-input" value="0">
|
151
|
|
- <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">平台每笔交易收取的服务费用。请填写百分比,填0表示不收取服务费</div>
|
|
189
|
+ onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" switch-tab="1"
|
|
190
|
+ autocomplete="off" class="layui-input" value="0">
|
|
191
|
+ <div class="layui-form-mid layui-word-aux" style="white-space:nowrap;">
|
|
192
|
+ 平台每笔交易收取的服务费用。请填写百分比,填0表示不收取服务费</div>
|
152
|
193
|
</div>
|
153
|
194
|
<div class="layui-form-mid layui-word-aux">%</div>
|
154
|
195
|
</div>
|
|
@@ -222,8 +263,8 @@
|
222
|
263
|
}).extend({
|
223
|
264
|
likeArea: "likeArea/likeArea",
|
224
|
265
|
txMap: "likeMap/txMap",
|
225
|
|
- customTxMap:'likeMap/customTxMap',
|
226
|
|
- }).use(["form", "laydate", "likeArea", "txMap",'customTxMap'], function(){
|
|
266
|
+ customTxMap: 'likeMap/customTxMap',
|
|
267
|
+ }).use(["form", "laydate", "likeArea", "txMap", 'customTxMap'], function () {
|
227
|
268
|
var $ = layui.$;
|
228
|
269
|
var form = layui.form;
|
229
|
270
|
var likeArea = layui.likeArea;
|
|
@@ -231,7 +272,7 @@
|
231
|
272
|
var txMap = layui.txMap;
|
232
|
273
|
var customTxMap = layui.customTxMap;
|
233
|
274
|
|
234
|
|
- laydate.render({type:"datetime", elem:"#expire_time", trigger:"click",min:0});
|
|
275
|
+ laydate.render({ type: "datetime", elem: "#expire_time", trigger: "click", min: 0 });
|
235
|
276
|
|
236
|
277
|
|
237
|
278
|
like.delUpload();
|
|
@@ -243,6 +284,18 @@
|
243
|
284
|
});
|
244
|
285
|
});
|
245
|
286
|
|
|
287
|
+ form.on('radio(hksy_type)', function (data) {
|
|
288
|
+ // console.log(data.elem); //得到radio原始DOM对象
|
|
289
|
+ // console.log(data.value); //被点击的radio的value值
|
|
290
|
+ if (data.value == 1) {
|
|
291
|
+ $(".hksy_type_item").show();
|
|
292
|
+ $(".hksy_type_item2").hide();
|
|
293
|
+ } else {
|
|
294
|
+ $(".hksy_type_item").hide();
|
|
295
|
+ $(".hksy_type_item2").show();
|
|
296
|
+ }
|
|
297
|
+ });
|
|
298
|
+
|
246
|
299
|
|
247
|
300
|
form.verify({
|
248
|
301
|
name: function (value, item) {
|
|
@@ -277,12 +330,12 @@
|
277
|
330
|
}*/
|
278
|
331
|
}
|
279
|
332
|
},
|
280
|
|
- expire_time: function (value, item) {
|
281
|
|
- if (!value) {
|
282
|
|
- switchTab($(item).attr("switch-tab"));
|
283
|
|
- return "请选择到期时间";
|
284
|
|
- }
|
285
|
|
- },
|
|
333
|
+ // expire_time: function (value, item) {
|
|
334
|
+ // if (!value) {
|
|
335
|
+ // switchTab($(item).attr("switch-tab"));
|
|
336
|
+ // return "请选择到期时间";
|
|
337
|
+ // }
|
|
338
|
+ // },
|
286
|
339
|
trade_service_fee: function (value, item) {
|
287
|
340
|
if (!value && parseInt(value) !== 0) {
|
288
|
341
|
switchTab($(item).attr("switch-tab"));
|
|
@@ -336,15 +389,15 @@
|
336
|
389
|
var city = $("#city");
|
337
|
390
|
var district = $("#district");
|
338
|
391
|
var address = $("input[name='address']").val();
|
339
|
|
- if(!province.val()){
|
|
392
|
+ if (!province.val()) {
|
340
|
393
|
layer.msg("请选择省份");
|
341
|
394
|
return;
|
342
|
395
|
}
|
343
|
|
- if(!city.val()){
|
|
396
|
+ if (!city.val()) {
|
344
|
397
|
layer.msg("请选择市");
|
345
|
398
|
return;
|
346
|
399
|
}
|
347
|
|
- if(!district.val()){
|
|
400
|
+ if (!district.val()) {
|
348
|
401
|
layer.msg("请选择镇/区");
|
349
|
402
|
return;
|
350
|
403
|
}
|