distribut.html
26.5 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<include file="public/layout" /><body style="background-color: #FFF; overflow: auto;">
<style>
.setbtn{margin-left: 10px; background: #fff; border: 1px solid #adadad; vertical-align: middle; padding: 2px 4px}
.onoff .cb-enable1.selected { background-color: #1bbc9d;border-color: #16a086; color: #fff;}
.onoff .cb-disable1.selected { background-color: #1bbc9d;border-color: #16a086; color: #fff;}
.onoff .cb-enable1{ border-radius: 4px 0 0 4px;border-width: 1px 0 1px 1px; }
.onoff .cb-disable1{ border-radius: 0 4px 4px 0;border-width: 1px 1px 1px 0;}
.onoff .cb-enable1, .onoff .cb-disable1 {
background-color: #ecf0f1; border-color: #bec3c7;
border-style: solid;color: #777;
font-size: 12px;height: 20px;
line-height: 20px; padding: 1px 9px;
}
</style>
<script type="text/javascript">
window.UEDITOR_Admin_URL = "__ROOT__/public/plugins/Ueditor/";
var URL_upload = "{$URL_upload}";
var URL_fileUp = "{$URL_fileUp}";
var URL_scrawlUp = "{$URL_scrawlUp}";
var URL_getRemoteImage = "{$URL_getRemoteImage}";
var URL_imageManager = "{$URL_imageManager}";
var URL_imageUp = "{$URL_imageUp}";
var URL_getMovie = "{$URL_getMovie}";
var URL_home = "{$URL_home}";
</script>
<load href="__ROOT__/public/plugins/Ueditor/ueditor.config.js"/>
<load href="__ROOT__/public/plugins/Ueditor/ueditor.all.js"/>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<div class="subject">
<h3>商城设置</h3>
<h5>网站全局内容基本选项设置</h5>
</div>
<ul class="tab-base nc-row">
<li><a href="{:U('System/index')}"><span>商城信息</span></a></li>
<li><a href="{:U('System/index',array('inc_type'=>'basic'))}" ><span>基本设置</span></a></li>
<li><a href="{:U('System/index',array('inc_type'=>'shopping'))}"><span>购物设置</span></a></li>
<li><a href="{:U('System/index',array('inc_type'=>'sms'))}" ><span>短信设置</span></a></li>
<!--<li><a href="{:U('System/index',array('inc_type'=>'smtp'))}" ><span>邮件设置</span></a></li>-->
<li><a href="{:U('System/index',array('inc_type'=>'water'))}" ><span>水印设置</span></a></li>
<li><a href="{:U('System/index',array('inc_type'=>'distribut'))}" class="current"><span>分销设置</span></a></li>
<if condition="$isopencard"><li><a href="{:U('System/index',array('inc_type'=>'cardsetup'))}"><span>PLUS设置</span></a></li></if>
<!--<li><a href="{:U('System/index',array('inc_type'=>'wap'))}" ><span>WAP设置</span></a></li>-->
<!--<li><a href="{:U('System/index',array('inc_type'=>'extend'))}" ><span>扩展设置</span></a></li>-->
</ul>
</div>
</div>
<!-- 操作说明 -->
<div class="explanation" id="explanation">
<div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
<span id="explanationZoom" title="收起提示"></span> </div>
<ul>
<if condition="$end_time">
<li>分销功能到期时间:{$end_time|date="Y-m-d H:i:s",###}。</li>
<li>购买总数:{$allnum} 分销会员数:{$disnum} 可用人数:{$allnum-$disnum}</li>
<else/>
<li>您还是体验版。</li>
<li>体验人数:{$allnum} 分销会员数:{$disnum} 可用人数:{$allnum-$disnum}</li>
</if>
<li>系统设置分销的相关参数。</li>
</ul>
</div>
<form method="post" enctype="multipart/form-data" id="handlepost" action="{:U('System/handle')}">
<input type="hidden" name="form_submit" value="ok" />
<div class="ncap-form-default">
<dl class="row">
<dt class="tit">分销开关</dt>
<dd class="opt">
<div class="onoff">
<label for="switch1" class="cb-enable <if condition="$config['switch'] eq 1">selected</if>">开启</label>
<label for="switch0" class="cb-disable <if condition="$config['switch'] eq 0">selected</if>">关闭</label>
<input type="radio" id="switch1" name="switch" onkeydown="strkeydown(event, this, 'sumbitbtn')"
value="1" <if condition="$config['switch'] eq 1">checked="checked"</if>>
<input type="radio" id="switch0" name="switch" onkeydown="strkeydown(event, this, 'sumbitbtn')"
value="0" <if condition="$config['switch'] eq 0">checked="checked"</if> >
</div>
<p class="notic">是否启用分销功能</p>
</dd>
</dl>
<dl class="row">
<dt class="tit">分销商邀请奖励</dt>
<dd class="opt">
<div class="onoff">
<label for="is_distri_rate1" class="cb-enable <if condition="$config['is_distri_rate'] eq 1">selected</if>">开启</label>
<label for="is_distri_rate0" class="cb-disable <if condition="$config['is_distri_rate'] eq 0">selected</if>">关闭</label>
<input type="radio" id="is_distri_rate1" name="is_distri_rate" onkeydown="strkeydown(event, this, 'sumbitbtn')"
value="1" <if condition="$config['is_distri_rate'] eq 1">checked="checked"</if>>
<input type="radio" id="is_distri_rate0" name="is_distri_rate" onkeydown="strkeydown(event, this, 'sumbitbtn')"
value="0" <if condition="$config['is_distri_rate'] eq 0">checked="checked"</if> >
<input id="subbtn3" type="button" value="点击设置" onclick="setjiangli()" class="setbtn" />
<span id="is_distri_rate_err" class="err cr vam" style="font-size:12px; margin-left: 5px"></span>
<input id="invitation_ratelist" value='{$config.invitation_ratelist}' type="hidden"/>
</div>
<p class="notic">若启用,成为分销商后,推荐好友注册会员可获得奖励</p>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>成为分销商条件</label>
</dt>
<dd class="opt">
<input id='fradio0' class="fradio" type="radio" name="condition" value="0" onkeydown="strkeydown(event, this, 'sumbitbtn')"
<if condition="$config[condition] eq 0">checked="checked"</if>><label for='fradio0'>直接成为分销商</label>
<input id='fradio1' class="fradio" type="radio" name="condition" value="1" onkeydown="strkeydown(event, this, 'sumbitbtn')"
<if condition="$config[condition] eq 1">checked="checked"</if>><label for='fradio1'>成功购买满金额后成为分销商</label>
<input id='fradio2' class="fradio" type="radio" name="condition" value="2" onkeydown="strkeydown(event, this, 'sumbitbtn')"
<if condition="$config[condition] eq 2">checked="checked"</if>><label for='fradio2'>成功购买指定商品后成为分销商</label>
<input id='fradio3' class="fradio" type="radio" name="condition" value="3" onkeydown="strkeydown(event, this, 'sumbitbtn')"
<if condition="$config[condition] eq 3">checked="checked"</if>><label for='fradio3'>成功购买满多少金额或指定商品后成为分销商</label>
</dd>
</dl>
<dl <if condition="$config[condition] eq 0 or $config[condition] eq 2"> style="display:none;" </if> class="row" id="distribut_set">
<dt class="tit">购买金额</dt>
<dd class="opt">
<input type="text" name="condition_money" value="{$config.condition_money}" class="" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" maxlength="8" style="width: 80px;"/>元
<span id="fcondition_money_err" class="err cr"></span>
<p class="notic">大于0金额,默认保存两位小数位</p>
</dd>
</dl>
<dl <if condition="$config[condition] eq 0 or $config[condition] eq 1"> style="display:none;" </if> class="row" id="distribut_set1">
<dt class="tit">指定商品</dt>
<dd class="opt">
<input id="condition_goods_name" type="text" readonly value="{$condition_goods_name}" class="input-txt"/> <input id="subbtn" type="button" value="选择商品" onclick="searGoods()" class="input-btn"/>
<input id="condition_goods_id" name="condition_goods_id" value="{$config.condition_goods_id}" type="hidden"/>
<span id="condition_goods_id_err" class="err cr"></span>
</dd>
</dl>
<dl class="row">
<dt class="tit" style=";">分享小店主标题</dt>
<dd class="opt ">
<input type="text" name="distribut_sharetitle" value="{$config.distribut_sharetitle|default='我的小店优惠多多'}" class="" style="width: 500px;"/>
</dd>
</dl>
<dl class="row">
<dt class="tit" style=";">分享小店副标题</dt>
<dd class="opt ">
<input type="text" name="distribut_shareremark" value="{$config.distribut_shareremark|default='让您购买最优惠的美妆产品'}" class="" style="width: 500px;"/>
</dd>
</dl>
<dl class="row">
<dt class="tit" style=";">成为分销说明</dt>
<dd class="opt ">
<input type="text" name="condition_explain" value="{$config.condition_explain}" class="" style="width: 500px;"/>
<p class="notic">成为分销商的说明规则</p>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>分销名称</label>
</dt>
<dd class="opt">
<input name="name" value="{$config.name|default='我的分销'}" class="input-txt" type="text">
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label for="distribut_date">分销模式</label>
</dt>
<dd class="opt">
<select name="pattern" id="distribut_pattern" onchange="showtongyi(this)" onkeydown="strkeydown(event, this, 'sumbitbtn')">
<option value="-1" <if condition="$config['pattern'] eq -1">selected="selected"</if>>请选择分销模式</option>
<option value="0" <if condition="$config['pattern'] eq 0">selected="selected"</if>>比例分成模式</option>
<option value="1" <if condition="$config['pattern'] eq 1">selected="selected"</if>>单品分成模式</option>
</select>
<p class="notic">分销模式,比例分成模式,单品分成模式</p>
</dd>
</dl>
<div id="tongyi_div" class="<if condition='$config.pattern eq 1 or $config.pattern eq -1'>dn</if>">
<dl class="row">
<dt class="tit">
<label>一级分销名称</label>
</dt>
<dd class="opt">
<input name="first_name" value="{$config.first_name|default='一级分销'}" maxlength="100"
onkeydown="strkeydown(event, this, 'sumbitbtn')"
class="input-txt" type="text">
比例 <input name="first_rate" id="distribut_first_rate" value="{$config.first_rate}" maxlength='3'
onkeydown="strkeydown(event, this, 'sumbitbtn')"
onpaste="this.value=this.value.replace(/[^\d]/g,'')"
onkeyup="this.value=this.value.replace(/[^\d]/g,'')" class="" type="text" style="width:50px">%
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>二级分销名称</label>
</dt>
<dd class="opt">
<input name="second_name" value="{$config.second_name|default='二级分销'}" maxlength="100"
onkeydown="strkeydown(event, this, 'sumbitbtn')"
class="input-txt" type="text">
比例 <input name="second_rate" id="distribut_second_rate" value="{$config.second_rate}" maxlength='3'
onkeydown="strkeydown(event, this, 'sumbitbtn')"
onpaste="this.value=this.value.replace(/[^\d]/g,'')"
onkeyup="this.value=this.value.replace(/[^\d]/g,'')" class="" type="text" style="width:50px">
%
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>三级分销名称</label>
</dt>
<dd class="opt">
<input name="third_name" value="{$config.third_name|default='三级分销'}" maxlength="100"
onkeydown="strkeydown(event, this, 'sumbitbtn')"
class="input-txt" type="text">
比例 <input name="third_rate" id="distribut_third_rate" value="{$config.third_rate}" maxlength='3'
onkeydown="strkeydown(event, this, 'sumbitbtn')"
onpaste="this.value=this.value.replace(/[^\d]/g,'')"
onkeyup="this.value=this.value.replace(/[^\d]/g,'')" class="" type="text" style="width:50px">
% <a href="http://law.npc.gov.cn/FLFG/flfgByID.action?flfgID=197880&showDetailType=QW&zlsxid=23" target="_blank" style="margin-left: 5px; " ><span> <font color="red"><span class="fa fa-warning"></span> <b style="text-decoration: underline ">警告</b></font></span></a></span>
</dd>
</dl>
</div>
<dl class="row">
<dt class="tit">
<label for="distribut_date">分成时间</label>
</dt>
<dd class="opt">
<select name="date" id="distribut_date" onkeydown="strkeydown(event, this, 'sumbitbtn')">
<for start="1" end="31" name="i" >
<option value="{$i}" <if condition="$config[date] eq $i">selected="selected"</if>>{$i}天</option>
</for>
</select>
<p class="notic">订单收货确认后多少天可以分成</p>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label>分销商新手必看</label>
</dt>
<dd class="opt">
<textarea class="span12 ckeditor"
onkeydown="strkeydown(event, this, 'sumbitbtn')"
id="post_content" name="distri_rule" title="">{$config.distri_rule}</textarea>
<span id="fcont" class="err cr"></span>
<p class="notic"></p>
</dd>
</dl>
<div class="bot">
<a id="sumbitbtn" href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onClick="adsubmit()">确认提交</a>
</div>
</div>
<input name="inc_type" value="{$Think.request.inc_type}" type="hidden" />
</form>
</div>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>
<script>
$(".fradio").click(function(){
var flag = $(this).val();
switch (flag)
{
case "1":
$("#distribut_set").fadeIn(3);
$("#distribut_set1").fadeOut(3);
break;
case "2":
$("#distribut_set1").fadeIn(3);
$("#distribut_set").fadeOut(3);
break;
case "3":
$("#distribut_set1").fadeIn(3);
$("#distribut_set").fadeIn(3);
break;
default:
$("#distribut_set1").fadeOut(3);
$("#distribut_set").fadeOut(3);
break;
}
})
$('#distribut_pattern').change(function(){
if($(this).val() == 1)
$('#distribut_order_rate').show();
else
$('#distribut_order_rate').hide();
});
function adsubmit(){
var val_radio = $('input[name="condition"]:checked ').val();
if(val_radio=="1" || val_radio=="3"){
var rval=$("input[name='condition_money']").val();
if(parseFloat(rval)<=0){
layer.msg('请输入成为分销商时的购买金额,并大于0', {icon: 2,time:1000}) ;
$("#fcondition_money_err").text('请输入成为分销商时的购买金额,并大于0');
$("input[name='condition_money']").focus();
return;
}
}
var is_distri_rate=$("input[name='is_distri_rate']:checked").val();
if(is_distri_rate==1){
var list0=$.trim($("#invitation_ratelist").val());
if(list0=="") {
layer.msg('请点击分销商邀请奖励设置奖励比例', {icon: 2,time:1000}) ;
$("#is_distri_rate_err").text('请点击分销商邀请奖励设置奖励比例');
return false;
}else{
$("#is_distri_rate_err").text('');
}
}
var condition=$("input[name='condition']:checked").val();
switch(condition){
case "1":
var val=$("input[name='condition_money']").val();
if(val==""){
layer.msg('请输入购买金额', {icon: 2,time:1000}) ;
$("#fcondition_money_err").text('请输入购买金额');
return false;
}else{
$("#fcondition_money_err").text('');
}
break;
case "2":
var val=$("input[name='condition_goods_id']").val();
if(val==""){
layer.msg('请选择指定商品', {icon: 2,time:1000}) ;
$("#fcondition_money_err").text('请选择指定商品');
return false;
}else{
$("#fcondition_money_err").text('');
}
break;
case "3":
var val=$("input[name='condition_money']").val();
if(val==""){
layer.msg('请输入购买金额', {icon: 2,time:1000}) ;
$("#fcondition_money_err").text('请输入购买金额');
return false;
}else{
$("#fcondition_money_err").text('');
}
var val=$("input[name='condition_goods_id']").val();
if(val==""){
layer.msg('请选择指定商品', {icon: 2,time:1000}) ;
$("#fcondition_money_err").text('请选择指定商品');
return false;
}else{
$("#fcondition_money_err").text('');
}
break;
}
var pattern=$("#distribut_pattern").val();
if(pattern=='-1'){
layer.msg('请选择分销模式', {icon: 2,time:1000}) ;
return false;
}
var distribut_first_rate = $.trim($('#distribut_first_rate').val())==""?"0": $.trim($('#distribut_first_rate').val());
var distribut_second_rate = $.trim($('#distribut_second_rate').val())==""?"0": $.trim($('#distribut_second_rate').val());
var distribut_third_rate = $.trim($('#distribut_third_rate').val())==""?"0": $.trim($('#distribut_third_rate').val());
var rate = parseInt(distribut_first_rate) + parseInt(distribut_second_rate) + parseInt(distribut_third_rate);
if(rate > 100)
{
layer.msg('三个分销商比例总和不得超过100%', {icon: 2,time: 2000});//alert('少年,邮箱不能为空!');
// alert('三个分销商比例总和不得超过100%');
return false;
}
layer.msg('加载中...', {icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: '10px', time:0}) ;
$('#handlepost').submit();
}
$(function () {
var url="{:url('Ueditor/index',array('savepath'=>'distribut'))}";
//具体参数配置在 editor_config.js 中
var options = {
zIndex: 999,
initialFrameWidth: "70%", //初化宽度
initialFrameHeight: 300, //初化高度
focus: false, //初始化时,是否让编辑器获得焦点true或false
maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',//允许的最大字符数 'fullscreen',
pasteplain: false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
autoHeightEnabled: true
/* autotypeset: {
mergeEmptyline: true, //合并空行
removeClass: true, //去掉冗余的class
removeEmptyline: false, //去掉空行
textAlign: "left", //段落的排版方式,可以是 left,right,center,justify 去掉这个属性表示不执行排版
imageBlockLine: 'center', //图片的浮动方式,独占一行剧中,左右浮动,默认: center,left,right,none 去掉这个属性表示不执行排版
pasteFilter: false, //根据规则过滤没事粘贴进来的内容
clearFontSize: false, //去掉所有的内嵌字号,使用编辑器默认的字号
clearFontFamily: false, //去掉所有的内嵌字体,使用编辑器默认的字体
removeEmptyNode: false, //去掉空节点
//可以去掉的标签
removeTagNames: {"font": 1},
indent: false, // 行首缩进
indentValue: '0em' //行首缩进的大小
}*/
,serverUrl:url
};
var editor = new UE.ui.Editor(options);
editor.render("post_content");
$(window).scroll(function () {
if($(".edui-editor-toolbarbox").css('position')=="fixed"){
$(".edui-editor-toolbarbox").css('top','58px');
}
});
//自定义radio样式
$(".cb-enable1").click(function(){
layer.alert('基于现有分销体系发展的分销会员及分佣方式可能会给商家带来一定量的无购买无互动的“伪会员”,为能真正意义上提供对商家有价值且能帮助商家解决问题的工具,美得得手店从即刻起将暂停手店3.0平台分销系统的使用,进行平台拓展会员体系的调整优化,预计2月底上线,期间给大家带来的不便还请见谅,我们期待新体系的推出能够给大家带来不一样的体验,感谢您的支持!', {icon: 2});
});
});
var opi=0;
/*--点击选择设置--*/
function setjiangli() {
var upurl ='/index.php?m=Admin&c=system&a=setjiangli&func=call_back';
opi=layer.open({
type: 2,
title: '设置分销商邀请奖励',
shadeClose: true,
shade: 0.5,
maxmin: true, //开启最大化最小化按钮
area: ['60%', '420px'],
content: upurl
});
}
/*--关闭弹窗--*/
function call_back(){
layer.close(opi);
$("#invitation_ratelist").val("1");
}
var sgi=0;
/*--搜索商品--*/
function searGoods() {
var url="/index.php/admin/system/search_goods";
sgi=layer.open({
type: 2,
title: '选择商品',
shadeClose: true,
shade: 0.5,
area: ['96%', '70%'],
content: url,
});
}
/*--消息返回--*/
function m_call_back(goods_id,goods_name,store_count,price) {
layer.close(sgi);
$("#condition_goods_name").val(goods_name);
$("#condition_goods_id").val(goods_id);
}
function is_comfirm(ob) {
if(!confirm('开启分销商为一级分销会员后无法在修改,确认要开启此功能吗?')){
setTimeout(function () {
$(ob).removeClass('selected');
$(ob).parent().find('.cb-disable').addClass('selected')
$("#is_setdistri_first1").attr("checked", false);
$("#is_setdistri_first0").attr("checked", true);
},200);
}
}
function showtongyi(ob) {
var val=$(ob).val();
if(val==0){
$("#tongyi_div").fadeIn(3);
}else{
$("#tongyi_div").fadeOut(3);
}
}
//设置弹窗
$("#distribut_third_rate").click(function () {
//询问框
layer.confirm('<div style="padding: 10px; line-height: 28px; font-size: 14px; background-color: #fff; color: #000; font-weight: 300;"> 您已设置直接奖励,如设间接奖励将违反国家发布的《禁止传销条例》<br>第7条规定,将存在公众号查封的危险性,请慎重考虑!<br><b>详情查看:<a href="http://law.npc.gov.cn/FLFG/flfgByID.action?flfgID=197880&showDetailType=QW&zlsxid=23" target="_blank"><font color=blue>中国普法网—《禁止传销条例》</font></a></b> </div>', {
btn: ['继续设置','取消设置'],//按钮
title:'<span class="fa fa-warning"></span>危险提示'
}, function(){
layer.closeAll();
$("#distribut_third_rate").focus();
}, function(){
layer.msg('已经把值设置为0了', {icon: 1});
$("#distribut_third_rate").val("0");
});
})
</script>
</body>
</html>