<!DOCTYPE html>
<html>
<head>
<include file="Public/icon"/>
<title><{:C('CM_OOTB.NAME')}>-消费赠送管理</title>
<link rel="stylesheet" href="__PUBLIC__/css/addseller.css">
<style type="text/css">
/* 导航区 */
#cm_nav .Rebate .icon{ background-color:#da5455; color:#FFF; background-position:-240px -1597px;}
#primary{ margin: 15px;}
/* 说明区 */
#primary .biaoti,#primary .biaoti span{height:36px; line-height: 36px; font-size: 16px;}
#primary .biaoti{background:url(__PUBLIC__/img/icons1.png) 135px -423px no-repeat; margin-bottom: 15px;}
#primary .biaoti span{ display: block;float: left;}
#primary .biaoti .names{ width:136px; color:#fff; text-align: right; margin-right: 30px; background-color: #ed444b;}
#primary .remind{ height:60px; line-height:60px; background-color:#eee; color:#333; font-size:14px; padding-left: 15px;}
#primary .remind a{ display:inline-block; height:35px; line-height:35px; text-align:center; color:#fff; padding: 0 15px;
background-color:#00a030; margin:5px 10px auto 5px; }
#primary .data{ margin:50px auto ;}
#primary .button *{ float: left; color:#fff;}
.title2 {font-size: 16px;color: red;}
.title3 {font-size: 13px;color: black;margin-left:3%}
.title3font {color: red;}
#primary .button .reset{ display: block; width: 200px; height:50px; line-height: 50px; text-align: center; background-color: #00a030;}
.submit{ width:100px; background-color: #DA5455;
color: #fff;border: 0;height: 40px;margin-left: 6%}
.tab-box{ overflow: hidden; zoom: 1; border: 1px #ccc solid;}
.tab-box-title{ height: 50px; border-bottom: 1px #ccc solid; background: #eee;}
.tab-box-title li:first-child{ margin-left: 20px;}
.tab-box-title li{ width: 140px; height: 49px; line-height: 49px; float: left; text-align: center; font-size: 18px; cursor:pointer;}
.tab-box-title li.cur{ background: #fff; height: 50px; line-height: 50px; border-left: 1px #ccc solid; border-right: 1px #ccc solid;}
.tab-box-content{ padding: 20px;}
</style>
</head>
<body>
<include file="Public/head"/>
<div class="breadcrumbs">
当前位置 :
<a href="__MODULE__/Rebate/index">消费赠送管理</a>
>
<a href="__MODULE__/Rebate/configsetlist"> 返利档位预览</a>
</div>
<div id="primary">
<div class="biaoti">
<span class="names"><{$data['data']['grade']}>% 档位设置</span>
</div>
<div class="tab-box">
<ul class="tab-box-title">
<li class="cur">其他返利</li>
<li>发展返利</li>
<li>升级返利</li>
</ul>
<div class="tab-box-content">
<div class="tab-box-cont" data-title="其他返利">
<form enctype="multipart/form-data" action="__MODULE__/Rebate/saveconfigset1" method="post" >
<input type="hidden" value="<{$data.keys.ecid}>" name="ecid" />
<input type="hidden" value="<{$data.keys.flag}>" name="flag" />
<ul class="data" style="margin-left: 5%;">
<li>
<div class="title2" >消费者返利 </div>
</li>
<li>
<div class="title">返利倍数 :</div>
<div class="con">
<input type="text" value="<{$data.data.buyerAllProfit}>" name="buyerAllProfit" style="width: 80px;" />%
</div>
</li>
<li style="margin-top: 3%">
<div class="title">日返比例 :</div>
<div class="con">
<input type="text" value="<{$data.data.buyerDaysProfit}>" name="buyerDaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title2" >商家返利 </div>
</li>
<li>
<div class="title">返利倍数 :</div>
<div class="con">
<input type="text" value="<{$data.data.salerAllProfit}>" name="salerAllProfit" style="width: 80px;" />%
</div>
</li>
<li style="margin-top: 3%">
<div class="title">日返比例 :</div>
<div class="con">
<input type="text" value="<{$data.data.salerDaysProfit}>" name="salerDaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title2" >其他返利 </div>
</li>
<li>
<div class="title3">创服额外返利 </div>
<div class="con" style="margin-top: 0.5%">
结算周期 <input type="text" value="<{$data.data.revenueProfitDays}>" name="revenueProfitDays" style="width: 80px;" />天
结算比例 <input type="text" value="<{$data.data.revenueProfit}>" name="revenueProfit" style="width: 80px;" />%
日返比例 <input type="text" value="<{$data.data.revenueDaysProfit}>" name="revenueDaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title3">个人升级 </div>
<div class="con" style="margin-top: 0.5%">
升级微客返利比例 : <input type="text" value="<{$data.data.update1AllProfit}>" name="update1AllProfit" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.update1DaysProfit}>" name="update1DaysProfit" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%">
升级创客返利比例 : <input type="text" value="<{$data.data.update2AllProfit}>" name="update2AllProfit" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.update2DaysProfit}>" name="update2DaysProfit" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%" >
升级创服返利比例 : <input type="text" value="<{$data.data.update3AllProfit}>" name="update3AllProfit" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.update3DaysProfit}>" name="update3DaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title">返利等待升级天数: </div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.waitDays}>" name="waitDays" style="width: 80px;" />天
</div>
</li>
<li>
<div class="title2" >代理商奖励 </div>
</li>
<li>
<div class="title3">代理商交易奖励 </div>
<div class="con" style="margin-top: 0.5%">
全国代理奖励比例 : <input type="text" value="<{$data.data.p1ProfitScore}>" name="p1ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p1ProfitDays}>" name="p1ProfitDays" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%">
省级代理奖励比例 : <input type="text" value="<{$data.data.p2ProfitScore}>" name="p2ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p2ProfitDays}>" name="p2ProfitDays" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%" >
市级代理奖励比例 : <input type="text" value="<{$data.data.p3ProfitScore}>" name="p3ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p3ProfitDays}>" name="p3ProfitDays" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%" >
区县代理奖励比例 : <input type="text" value="<{$data.data.p4ProfitScore}>" name="p4ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p4ProfitDays}>" name="p4ProfitDays" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title3">代理商日常奖励 </div>
<div class="con" style="margin-top: 0.5%">
奖励比例 : <input type="text" value="<{$data.data.updateP1ProfitScore2}>" name="updateP1ProfitScore2" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.updateP1ProfitDays2}>" name="updateP1ProfitDays2" style="width: 80px;" />% 所返积分占所花费用对应积分的百分比
</div>
</li>
<div class="button" style="margin-left: 50%;">
<button type="submit" class="submit" style="width: 150px;" >保存返利</button>
</div>
</ul>
</form>
</div>
<div class="tab-box-cont" style="display: none" data-title="发展返利">
<!--消费者 发展 上1,2级角色 设置-->
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer1Leve1" >
<li>
<div class="title3 title3font" >消费者 上1级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer1Leve1" type="radio" value="1" <?php if($data['data']['expandBuyer1LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer1Leve1" type="radio" value="0" <?php if($data['data']['expandBuyer1LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer1Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer1LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer2Leve1" >
<li>
<div class="title3 title3font" >消费者 上2级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer2Leve1" type="radio" value="1" <?php if($data['data']['expandBuyer2LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer2Leve1" type="radio" value="0" <?php if($data['data']['expandBuyer2LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer2Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer2LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer1Leve2" >
<li>
<div class="title3 title3font" >消费者 上1级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer1Leve2" type="radio" value="1" <?php if($data['data']['expandBuyer1LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer1Leve2" type="radio" value="0" <?php if($data['data']['expandBuyer1LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer1Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer1LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer2Leve2" >
<li>
<div class="title3 title3font" >消费者 上2级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer2Leve2" type="radio" value="1" <?php if($data['data']['expandBuyer2LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer2Leve2" type="radio" value="0" <?php if($data['data']['expandBuyer2LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer2Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer2LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer1Leve3" >
<li>
<div class="title3 title3font" >消费者 上1级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer1Leve3" type="radio" value="1" <?php if($data['data']['expandBuyer1LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer1Leve3" type="radio" value="0" <?php if($data['data']['expandBuyer1LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer1Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer1LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer2Leve3" >
<li>
<div class="title3 title3font" >消费者 上2级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer2Leve3" type="radio" value="1" <?php if($data['data']['expandBuyer2LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer2Leve3" type="radio" value="0" <?php if($data['data']['expandBuyer2LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer2Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer2LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<!--商家 发展 上1,2级角色 设置-->
<ul class="data" style="margin-left: 5%;" data-type="expandSaler1Leve1" >
<li>
<div class="title3 title3font" >商家 上1级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler1Leve1" type="radio" value="1" <?php if($data['data']['expandSaler1LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler1Leve1" type="radio" value="0" <?php if($data['data']['expandSaler1LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler1Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler1LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler2Leve1" >
<li>
<div class="title3 title3font" >商家 上2级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler2Leve1" type="radio" value="1" <?php if($data['data']['expandSaler2LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler2Leve1" type="radio" value="0" <?php if($data['data']['expandSaler2LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler2Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler2LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler1Leve2" >
<li>
<div class="title3 title3font" >商家 上1级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler1Leve2" type="radio" value="1" <?php if($data['data']['expandSaler1LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler1Leve2" type="radio" value="0" <?php if($data['data']['expandSaler1LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler1Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler1LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler2Leve2" >
<li>
<div class="title3 title3font" >商家 上2级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler2Leve2" type="radio" value="1" <?php if($data['data']['expandSaler2LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler2Leve2" type="radio" value="0" <?php if($data['data']['expandSaler2LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler2Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler2LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler1Leve3" >
<li>
<div class="title3 title3font" >商家 上1级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler1Leve3" type="radio" value="1" <?php if($data['data']['expandSaler1LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler1Leve3" type="radio" value="0" <?php if($data['data']['expandSaler1LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler1Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler1LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler2Leve3" >
<li>
<div class="title3 title3font" >商家 上2级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler2Leve3" type="radio" value="1" <?php if($data['data']['expandSaler2LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler2Leve3" type="radio" value="0" <?php if($data['data']['expandSaler2LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler2Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler2LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
</div>
<div class="tab-box-cont" style="display: none" data-title="升级返利">
<!--微客升级 上级奖励-->
<ul class="data" style="margin-left: 5%;" data-type="update1ProfitScore1" >
<li>
<div class="title3 title3font" >升级微客 返上级微客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update1ProfitMoney1}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update1ProfitScore1}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update1ProfitScoreDays1}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update1ProfitScore2" >
<li>
<div class="title3 title3font" >升级微客 返上级创客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update1ProfitMoney2}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update1ProfitScore2}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update1ProfitScoreDays2}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update1ProfitScore3" >
<li>
<div class="title3 title3font" >升级微客 返上级创服 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update1ProfitMoney3}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update1ProfitScore3}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update1ProfitScoreDays3}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<!--创客升级 上级奖励-->
<ul class="data" style="margin-left: 5%;" data-type="update2ProfitScore1" >
<li>
<div class="title3 title3font" >升级创客 返上级微客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update2ProfitMoney1}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update2ProfitScore1}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update2ProfitScoreDays1}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update2ProfitScore2" >
<li>
<div class="title3 title3font" >升级创客 返上级创客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update2ProfitMoney2}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update2ProfitScore2}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update2ProfitScoreDays2}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update2ProfitScore3" >
<li>
<div class="title3 title3font" >升级创客 返上级创服 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update2ProfitMoney3}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update2ProfitScore3}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update2ProfitScoreDays3}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<!--创服升级 上级奖励-->
<ul class="data" style="margin-left: 5%;" data-type="update3ProfitScore1" >
<li>
<div class="title3 title3font" >升级创服 返上级微客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update3ProfitMoney1}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update3ProfitScore1}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update3ProfitScoreDays1}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update3ProfitScore2" >
<li>
<div class="title3 title3font" >升级创服 返上级创客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update3ProfitMoney2}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update3ProfitScore2}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update3ProfitScoreDays2}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update3ProfitScore3" >
<li>
<div class="title3 title3font" >升级创服 返上级创服 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update3ProfitMoney3}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update3ProfitScore3}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update3ProfitScoreDays3}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
</div>
</div>
</div>
<include file="Public/foot"/>
<script type="text/javascript">
$(".tab-box-title").on("click", "li", function(){
var $this = $(this);
var index = $this.index();
$this.addClass("cur").siblings().removeClass("cur");
$(".tab-box-content").children().eq(index).show().siblings().hide();
})
$(function() {
var flag = $("input[name='flag']").val();
if(flag){
$(".tab-box-title li").eq(flag-1).addClass("cur").siblings().removeClass("cur");
$(".tab-box-content").children().eq(flag-1).show().siblings().hide();
}
$(".ajaxSubmit").on("click", function(){
var $ul = $(this).parents("ul");
var type = $ul.data("type");
var rod = $ul.find("input[name="+type+"]:checked").val();
var jlbl = $ul.find("input[name='jlbl']").val();
var jlbl2 = $ul.find("input[name='jlbl']");
var rjbl = $ul.find("input[name='rjbl']").val();
var rjbl2 = $ul.find("input[name='rjbl']");
var ecid = $("input[name='ecid']").val();
var reg =/^[0-9]+(.[0-9]{1,3})?$/;
if(!reg.test(jlbl)) { alert("请填写数字!");jlbl2.focus(); return false;}
if(!reg.test(rjbl)) { alert("请填写数字!");rjbl2.focus(); return false;}
$.ajax({type:'POST', // post提交
url:'/index.php/Home/Ajax/configset', // 请求的地址
data:{ecid:ecid,rod:rod,jlbl:jlbl,rjbl:rjbl,type:type,op:1},
dataType:'text',
async:false,
success: function(response){ // 请求成功后
if(response=='操作成功'){
alert(response);
}else{
alert(response);
}
}
});
})
$(".ajaxSubmit2").on("click", function(){
var $ul = $(this).parents("ul");
var type = $ul.data("type");
var xjfl = $ul.find("input[name='xjfl']").val();
var xjfl2 = $ul.find("input[name='xjfl']");
var jffl = $ul.find("input[name='jffl']").val();
var jffl2 = $ul.find("input[name='jffl']");
var rfbl = $ul.find("input[name='rfbl']").val();
var rfbl2 = $ul.find("input[name='rfbl']");
var ecid = $("input[name='ecid']").val();
var reg =/^[0-9]+(.[0-9]{1,3})?$/;
if(!reg.test(xjfl)) { alert("请填写数字!");xjfl2.focus(); return false;}
if(!reg.test(jffl)) { alert("请填写数字!");jffl2.focus(); return false;}
if(!reg.test(rfbl)) { alert("请填写数字!");rfbl2.focus(); return false;}
$.ajax({type:'POST', // post提交
url:'/index.php/Home/Ajax/configset', // 请求的地址
data:{ecid:ecid,xjfl:xjfl,jffl:jffl,rfbl:rfbl,type:type,op:2},
dataType:'text',
async:false,
success: function(response){ // 请求成功后
if(response=='操作成功'){
alert(response);
}else{
alert(response);
}
}
});
})
})
</script>
</body>
</html>
<html>
<head>
<include file="Public/icon"/>
<title><{:C('CM_OOTB.NAME')}>-消费赠送管理</title>
<link rel="stylesheet" href="__PUBLIC__/css/addseller.css">
<style type="text/css">
/* 导航区 */
#cm_nav .Rebate .icon{ background-color:#da5455; color:#FFF; background-position:-240px -1597px;}
#primary{ margin: 15px;}
/* 说明区 */
#primary .biaoti,#primary .biaoti span{height:36px; line-height: 36px; font-size: 16px;}
#primary .biaoti{background:url(__PUBLIC__/img/icons1.png) 135px -423px no-repeat; margin-bottom: 15px;}
#primary .biaoti span{ display: block;float: left;}
#primary .biaoti .names{ width:136px; color:#fff; text-align: right; margin-right: 30px; background-color: #ed444b;}
#primary .remind{ height:60px; line-height:60px; background-color:#eee; color:#333; font-size:14px; padding-left: 15px;}
#primary .remind a{ display:inline-block; height:35px; line-height:35px; text-align:center; color:#fff; padding: 0 15px;
background-color:#00a030; margin:5px 10px auto 5px; }
#primary .data{ margin:50px auto ;}
#primary .button *{ float: left; color:#fff;}
.title2 {font-size: 16px;color: red;}
.title3 {font-size: 13px;color: black;margin-left:3%}
.title3font {color: red;}
#primary .button .reset{ display: block; width: 200px; height:50px; line-height: 50px; text-align: center; background-color: #00a030;}
.submit{ width:100px; background-color: #DA5455;
color: #fff;border: 0;height: 40px;margin-left: 6%}
.tab-box{ overflow: hidden; zoom: 1; border: 1px #ccc solid;}
.tab-box-title{ height: 50px; border-bottom: 1px #ccc solid; background: #eee;}
.tab-box-title li:first-child{ margin-left: 20px;}
.tab-box-title li{ width: 140px; height: 49px; line-height: 49px; float: left; text-align: center; font-size: 18px; cursor:pointer;}
.tab-box-title li.cur{ background: #fff; height: 50px; line-height: 50px; border-left: 1px #ccc solid; border-right: 1px #ccc solid;}
.tab-box-content{ padding: 20px;}
</style>
</head>
<body>
<include file="Public/head"/>
<div class="breadcrumbs">
当前位置 :
<a href="__MODULE__/Rebate/index">消费赠送管理</a>
>
<a href="__MODULE__/Rebate/configsetlist"> 返利档位预览</a>
</div>
<div id="primary">
<div class="biaoti">
<span class="names"><{$data['data']['grade']}>% 档位设置</span>
</div>
<div class="tab-box">
<ul class="tab-box-title">
<li class="cur">其他返利</li>
<li>发展返利</li>
<li>升级返利</li>
</ul>
<div class="tab-box-content">
<div class="tab-box-cont" data-title="其他返利">
<form enctype="multipart/form-data" action="__MODULE__/Rebate/saveconfigset1" method="post" >
<input type="hidden" value="<{$data.keys.ecid}>" name="ecid" />
<input type="hidden" value="<{$data.keys.flag}>" name="flag" />
<ul class="data" style="margin-left: 5%;">
<li>
<div class="title2" >消费者返利 </div>
</li>
<li>
<div class="title">返利倍数 :</div>
<div class="con">
<input type="text" value="<{$data.data.buyerAllProfit}>" name="buyerAllProfit" style="width: 80px;" />%
</div>
</li>
<li style="margin-top: 3%">
<div class="title">日返比例 :</div>
<div class="con">
<input type="text" value="<{$data.data.buyerDaysProfit}>" name="buyerDaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title2" >商家返利 </div>
</li>
<li>
<div class="title">返利倍数 :</div>
<div class="con">
<input type="text" value="<{$data.data.salerAllProfit}>" name="salerAllProfit" style="width: 80px;" />%
</div>
</li>
<li style="margin-top: 3%">
<div class="title">日返比例 :</div>
<div class="con">
<input type="text" value="<{$data.data.salerDaysProfit}>" name="salerDaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title2" >其他返利 </div>
</li>
<li>
<div class="title3">创服额外返利 </div>
<div class="con" style="margin-top: 0.5%">
结算周期 <input type="text" value="<{$data.data.revenueProfitDays}>" name="revenueProfitDays" style="width: 80px;" />天
结算比例 <input type="text" value="<{$data.data.revenueProfit}>" name="revenueProfit" style="width: 80px;" />%
日返比例 <input type="text" value="<{$data.data.revenueDaysProfit}>" name="revenueDaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title3">个人升级 </div>
<div class="con" style="margin-top: 0.5%">
升级微客返利比例 : <input type="text" value="<{$data.data.update1AllProfit}>" name="update1AllProfit" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.update1DaysProfit}>" name="update1DaysProfit" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%">
升级创客返利比例 : <input type="text" value="<{$data.data.update2AllProfit}>" name="update2AllProfit" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.update2DaysProfit}>" name="update2DaysProfit" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%" >
升级创服返利比例 : <input type="text" value="<{$data.data.update3AllProfit}>" name="update3AllProfit" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.update3DaysProfit}>" name="update3DaysProfit" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title">返利等待升级天数: </div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.waitDays}>" name="waitDays" style="width: 80px;" />天
</div>
</li>
<li>
<div class="title2" >代理商奖励 </div>
</li>
<li>
<div class="title3">代理商交易奖励 </div>
<div class="con" style="margin-top: 0.5%">
全国代理奖励比例 : <input type="text" value="<{$data.data.p1ProfitScore}>" name="p1ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p1ProfitDays}>" name="p1ProfitDays" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%">
省级代理奖励比例 : <input type="text" value="<{$data.data.p2ProfitScore}>" name="p2ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p2ProfitDays}>" name="p2ProfitDays" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%" >
市级代理奖励比例 : <input type="text" value="<{$data.data.p3ProfitScore}>" name="p3ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p3ProfitDays}>" name="p3ProfitDays" style="width: 80px;" />%
</div>
<div class="con" style="margin-top: 0.5%" >
区县代理奖励比例 : <input type="text" value="<{$data.data.p4ProfitScore}>" name="p4ProfitScore" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.p4ProfitDays}>" name="p4ProfitDays" style="width: 80px;" />%
</div>
</li>
<li>
<div class="title3">代理商日常奖励 </div>
<div class="con" style="margin-top: 0.5%">
奖励比例 : <input type="text" value="<{$data.data.updateP1ProfitScore2}>" name="updateP1ProfitScore2" style="width: 80px;" />
% 日返比例 <input type="text" value="<{$data.data.updateP1ProfitDays2}>" name="updateP1ProfitDays2" style="width: 80px;" />% 所返积分占所花费用对应积分的百分比
</div>
</li>
<div class="button" style="margin-left: 50%;">
<button type="submit" class="submit" style="width: 150px;" >保存返利</button>
</div>
</ul>
</form>
</div>
<div class="tab-box-cont" style="display: none" data-title="发展返利">
<!--消费者 发展 上1,2级角色 设置-->
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer1Leve1" >
<li>
<div class="title3 title3font" >消费者 上1级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer1Leve1" type="radio" value="1" <?php if($data['data']['expandBuyer1LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer1Leve1" type="radio" value="0" <?php if($data['data']['expandBuyer1LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer1Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer1LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer2Leve1" >
<li>
<div class="title3 title3font" >消费者 上2级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer2Leve1" type="radio" value="1" <?php if($data['data']['expandBuyer2LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer2Leve1" type="radio" value="0" <?php if($data['data']['expandBuyer2LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer2Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer2LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer1Leve2" >
<li>
<div class="title3 title3font" >消费者 上1级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer1Leve2" type="radio" value="1" <?php if($data['data']['expandBuyer1LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer1Leve2" type="radio" value="0" <?php if($data['data']['expandBuyer1LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer1Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer1LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer2Leve2" >
<li>
<div class="title3 title3font" >消费者 上2级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer2Leve2" type="radio" value="1" <?php if($data['data']['expandBuyer2LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer2Leve2" type="radio" value="0" <?php if($data['data']['expandBuyer2LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer2Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer2LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer1Leve3" >
<li>
<div class="title3 title3font" >消费者 上1级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer1Leve3" type="radio" value="1" <?php if($data['data']['expandBuyer1LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer1Leve3" type="radio" value="0" <?php if($data['data']['expandBuyer1LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer1Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer1LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandBuyer2Leve3" >
<li>
<div class="title3 title3font" >消费者 上2级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandBuyer2Leve3" type="radio" value="1" <?php if($data['data']['expandBuyer2LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandBuyer2Leve3" type="radio" value="0" <?php if($data['data']['expandBuyer2LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandBuyer2Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandBuyer2LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<!--商家 发展 上1,2级角色 设置-->
<ul class="data" style="margin-left: 5%;" data-type="expandSaler1Leve1" >
<li>
<div class="title3 title3font" >商家 上1级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler1Leve1" type="radio" value="1" <?php if($data['data']['expandSaler1LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler1Leve1" type="radio" value="0" <?php if($data['data']['expandSaler1LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler1Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler1LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler2Leve1" >
<li>
<div class="title3 title3font" >商家 上2级为微客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler2Leve1" type="radio" value="1" <?php if($data['data']['expandSaler2LeveGain1']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler2Leve1" type="radio" value="0" <?php if($data['data']['expandSaler2LeveGain1']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler2Leve1}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler2LeveDays1}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler1Leve2" >
<li>
<div class="title3 title3font" >商家 上1级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler1Leve2" type="radio" value="1" <?php if($data['data']['expandSaler1LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler1Leve2" type="radio" value="0" <?php if($data['data']['expandSaler1LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler1Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler1LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler2Leve2" >
<li>
<div class="title3 title3font" >商家 上2级为创客 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler2Leve2" type="radio" value="1" <?php if($data['data']['expandSaler2LeveGain2']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler2Leve2" type="radio" value="0" <?php if($data['data']['expandSaler2LeveGain2']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler2Leve2}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler2LeveDays2}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler1Leve3" >
<li>
<div class="title3 title3font" >商家 上1级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler1Leve3" type="radio" value="1" <?php if($data['data']['expandSaler1LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler1Leve3" type="radio" value="0" <?php if($data['data']['expandSaler1LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler1Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler1LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="expandSaler2Leve3" >
<li>
<div class="title3 title3font" >商家 上2级为创服 </div>
</li>
<li>
<div class="title">发展可见性设置 :</div>
<div class="con conRadio">
<input style="width: 20px;" name="expandSaler2Leve3" type="radio" value="1" <?php if($data['data']['expandSaler2LeveGain3']==1) echo("checked");?> />可见
<input style="width: 20px;" name="expandSaler2Leve3" type="radio" value="0" <?php if($data['data']['expandSaler2LeveGain3']==0) echo("checked");?> />不可见
</div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title">发展奖励 :</div>
<div class="con conText" style="margin-top: 0.5%; " >
奖励比例 <input type="text" value="<{$data.data.expandSaler2Leve3}>" name="jlbl" style="width: 80px;" />
% 日奖比例 <input type="text" value="<{$data.data.expandSaler2LeveDays3}>" name="rjbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit" >保存</button>
</div>
</li>
</ul>
</div>
<div class="tab-box-cont" style="display: none" data-title="升级返利">
<!--微客升级 上级奖励-->
<ul class="data" style="margin-left: 5%;" data-type="update1ProfitScore1" >
<li>
<div class="title3 title3font" >升级微客 返上级微客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update1ProfitMoney1}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update1ProfitScore1}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update1ProfitScoreDays1}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update1ProfitScore2" >
<li>
<div class="title3 title3font" >升级微客 返上级创客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update1ProfitMoney2}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update1ProfitScore2}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update1ProfitScoreDays2}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update1ProfitScore3" >
<li>
<div class="title3 title3font" >升级微客 返上级创服 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update1ProfitMoney3}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update1ProfitScore3}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update1ProfitScoreDays3}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<!--创客升级 上级奖励-->
<ul class="data" style="margin-left: 5%;" data-type="update2ProfitScore1" >
<li>
<div class="title3 title3font" >升级创客 返上级微客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update2ProfitMoney1}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update2ProfitScore1}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update2ProfitScoreDays1}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update2ProfitScore2" >
<li>
<div class="title3 title3font" >升级创客 返上级创客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update2ProfitMoney2}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update2ProfitScore2}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update2ProfitScoreDays2}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update2ProfitScore3" >
<li>
<div class="title3 title3font" >升级创客 返上级创服 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update2ProfitMoney3}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update2ProfitScore3}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update2ProfitScoreDays3}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<!--创服升级 上级奖励-->
<ul class="data" style="margin-left: 5%;" data-type="update3ProfitScore1" >
<li>
<div class="title3 title3font" >升级创服 返上级微客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update3ProfitMoney1}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update3ProfitScore1}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update3ProfitScoreDays1}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update3ProfitScore2" >
<li>
<div class="title3 title3font" >升级创服 返上级创客 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update3ProfitMoney2}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update3ProfitScore2}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update3ProfitScoreDays2}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
<ul class="data" style="margin-left: 5%;" data-type="update3ProfitScore3" >
<li>
<div class="title3 title3font" >升级创服 返上级创服 </div>
</li>
<li style=" border-bottom: 1px #ccc solid;padding-bottom: 2%;">
<div class="title"> 现金返利比例
</div>
<div class="con" style="margin-top: 0.5%">
<input type="text" value="<{$data.data.update3ProfitMoney3}>" name="xjfl" style="width: 80px;" />
% 积分返利比例 <input type="text" value="<{$data.data.update3ProfitScore3}>" name="jffl" style="width: 80px;" />%
日返比例
<input type="text" value="<{$data.data.update3ProfitScoreDays3}>" name="rfbl" style="width: 80px;" />%
<button type="button" class="submit ajaxSubmit2" >保存</button>
</div>
</li>
</ul>
</div>
</div>
</div>
<include file="Public/foot"/>
<script type="text/javascript">
$(".tab-box-title").on("click", "li", function(){
var $this = $(this);
var index = $this.index();
$this.addClass("cur").siblings().removeClass("cur");
$(".tab-box-content").children().eq(index).show().siblings().hide();
})
$(function() {
var flag = $("input[name='flag']").val();
if(flag){
$(".tab-box-title li").eq(flag-1).addClass("cur").siblings().removeClass("cur");
$(".tab-box-content").children().eq(flag-1).show().siblings().hide();
}
$(".ajaxSubmit").on("click", function(){
var $ul = $(this).parents("ul");
var type = $ul.data("type");
var rod = $ul.find("input[name="+type+"]:checked").val();
var jlbl = $ul.find("input[name='jlbl']").val();
var jlbl2 = $ul.find("input[name='jlbl']");
var rjbl = $ul.find("input[name='rjbl']").val();
var rjbl2 = $ul.find("input[name='rjbl']");
var ecid = $("input[name='ecid']").val();
var reg =/^[0-9]+(.[0-9]{1,3})?$/;
if(!reg.test(jlbl)) { alert("请填写数字!");jlbl2.focus(); return false;}
if(!reg.test(rjbl)) { alert("请填写数字!");rjbl2.focus(); return false;}
$.ajax({type:'POST', // post提交
url:'/index.php/Home/Ajax/configset', // 请求的地址
data:{ecid:ecid,rod:rod,jlbl:jlbl,rjbl:rjbl,type:type,op:1},
dataType:'text',
async:false,
success: function(response){ // 请求成功后
if(response=='操作成功'){
alert(response);
}else{
alert(response);
}
}
});
})
$(".ajaxSubmit2").on("click", function(){
var $ul = $(this).parents("ul");
var type = $ul.data("type");
var xjfl = $ul.find("input[name='xjfl']").val();
var xjfl2 = $ul.find("input[name='xjfl']");
var jffl = $ul.find("input[name='jffl']").val();
var jffl2 = $ul.find("input[name='jffl']");
var rfbl = $ul.find("input[name='rfbl']").val();
var rfbl2 = $ul.find("input[name='rfbl']");
var ecid = $("input[name='ecid']").val();
var reg =/^[0-9]+(.[0-9]{1,3})?$/;
if(!reg.test(xjfl)) { alert("请填写数字!");xjfl2.focus(); return false;}
if(!reg.test(jffl)) { alert("请填写数字!");jffl2.focus(); return false;}
if(!reg.test(rfbl)) { alert("请填写数字!");rfbl2.focus(); return false;}
$.ajax({type:'POST', // post提交
url:'/index.php/Home/Ajax/configset', // 请求的地址
data:{ecid:ecid,xjfl:xjfl,jffl:jffl,rfbl:rfbl,type:type,op:2},
dataType:'text',
async:false,
success: function(response){ // 请求成功后
if(response=='操作成功'){
alert(response);
}else{
alert(response);
}
}
});
})
})
</script>
</body>
</html>