|
|
@ -65,9 +65,29 @@
|
|
|
|
.iconfont-unselected:hover {
|
|
|
|
.iconfont-unselected:hover {
|
|
|
|
background-color: #ababab;
|
|
|
|
background-color: #ababab;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input[type=number]{
|
|
|
|
|
|
|
|
padding: 4px 6px;
|
|
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
|
|
color: #555;
|
|
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
-webkit-border-radius: 4px;
|
|
|
|
|
|
|
|
-moz-border-radius: 4px;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
|
|
|
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
|
|
|
|
|
|
|
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
|
|
|
|
|
|
|
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
|
|
|
|
|
|
|
|
-webkit-transition: border linear .2s, box-shadow linear .2s;
|
|
|
|
|
|
|
|
-moz-transition: border linear .2s, box-shadow linear .2s;
|
|
|
|
|
|
|
|
-o-transition: border linear .2s, box-shadow linear .2s;
|
|
|
|
|
|
|
|
transition: border linear .2s, box-shadow linear .2s;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<h3 class="page_title">{$meta_title}</h3>
|
|
|
|
<h3 class="page_title">新增游戏分成比例模板</h3>
|
|
|
|
<!-- <p class="description_text">说明:此功是创建推广员时所需填写信息</p>-->
|
|
|
|
<!-- <p class="description_text">说明:此功是创建推广员时所需填写信息</p>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -128,7 +148,7 @@
|
|
|
|
<td class="l"><i class="mustmark">*</i>分成比例设定:</td>
|
|
|
|
<td class="l"><i class="mustmark">*</i>分成比例设定:</td>
|
|
|
|
<td class="r table_radio">
|
|
|
|
<td class="r table_radio">
|
|
|
|
<label>默认分成比例:</label>
|
|
|
|
<label>默认分成比例:</label>
|
|
|
|
<input type="text" class="txt ratio" name="ratio" id="ratio" value="{$record.ratio|default='0.00'}" placeholder="" οninput="value=value.replace(/[^\d]/g,'')" style="width: 60px;">
|
|
|
|
<input type="number" class="txt ratio" name="ratio" id="ratio" value="{$record.ratio|default='0.00'}" placeholder="" οninput="value=value.replace(/[^\w\.\/]/ig, '')" style="width: 60px;float: left;">
|
|
|
|
<span class="form_unit">%</span>
|
|
|
|
<span class="form_unit">%</span>
|
|
|
|
<span class="notice-text">当前需要修改成的分成比例</span>
|
|
|
|
<span class="notice-text">当前需要修改成的分成比例</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
@ -140,20 +160,6 @@
|
|
|
|
<div class="list-ratio">
|
|
|
|
<div class="list-ratio">
|
|
|
|
<div class="li-ratio">
|
|
|
|
<div class="li-ratio">
|
|
|
|
<label class="instanceof_text" style="margin-right: 10px;">流水分成设定:</label>
|
|
|
|
<label class="instanceof_text" style="margin-right: 10px;">流水分成设定:</label>
|
|
|
|
<!-- <select name="instanceof[]" style="width: 50px;margin-right: 10px;">
|
|
|
|
|
|
|
|
<option value="1">≥</option>
|
|
|
|
|
|
|
|
<option value="2">></option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div class="turnover">
|
|
|
|
|
|
|
|
<input type="text" class="txt turnover_money" name="turnover[]" value="" placeholder="请输入金额" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" style="width: 100px;margin-right: 10px;">
|
|
|
|
|
|
|
|
<span></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label>分成比例:</label>
|
|
|
|
|
|
|
|
<div class="turnover-ratio">
|
|
|
|
|
|
|
|
<input type="text" class="txt turnover_ratio" name="turnover_ratio[]" value="" placeholder="请输入比例" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" style="width: 60px;">
|
|
|
|
|
|
|
|
<span class="form_unit" style="margin-right: 10px;">%</span>
|
|
|
|
|
|
|
|
<span class="error-message">sadasdas</span>
|
|
|
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
<span class="iconfont-btn iconfont-btn-add" title="添加流水比例"><i class="iconfont-style iconfont-selected iconfont iconjiahao1"></i></span>
|
|
|
|
<span class="iconfont-btn iconfont-btn-add" title="添加流水比例"><i class="iconfont-style iconfont-selected iconfont iconjiahao1"></i></span>
|
|
|
|
<span class="iconfont-btn iconfont-btn-del" title="删除流水比例"><i class="iconfont-style iconfont-unselected iconfont iconjianhao"></i></span>
|
|
|
|
<span class="iconfont-btn iconfont-btn-del" title="删除流水比例"><i class="iconfont-style iconfont-unselected iconfont iconjianhao"></i></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -270,11 +276,17 @@ $(function(){
|
|
|
|
var obj = {
|
|
|
|
var obj = {
|
|
|
|
"relation_game_id":["required","游戏不能为空","select"],
|
|
|
|
"relation_game_id":["required","游戏不能为空","select"],
|
|
|
|
"company_belong":["required","公司类型不能为空","select"],
|
|
|
|
"company_belong":["required","公司类型不能为空","select"],
|
|
|
|
|
|
|
|
"ratio":["number","默认比例必须是大于0的数字"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var cres = CIC.checkAddInput(obj);
|
|
|
|
var cres = CIC.checkAddInput(obj);
|
|
|
|
if(!cres){
|
|
|
|
if(!cres){
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(cres.ratio > 100){
|
|
|
|
|
|
|
|
layer.msg("默认比例不能大于100", {icon: 2});
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".error-message").each(function(index,elm){
|
|
|
|
$(".error-message").each(function(index,elm){
|
|
|
|
var t = $(elm).css("display");
|
|
|
|
var t = $(elm).css("display");
|
|
|
@ -286,7 +298,6 @@ $(function(){
|
|
|
|
})
|
|
|
|
})
|
|
|
|
$(".turnover_money").each(function(index,elm){
|
|
|
|
$(".turnover_money").each(function(index,elm){
|
|
|
|
var t = $(elm).val();
|
|
|
|
var t = $(elm).val();
|
|
|
|
console.log(t)
|
|
|
|
|
|
|
|
if(t == ''){
|
|
|
|
if(t == ''){
|
|
|
|
flag = false;
|
|
|
|
flag = false;
|
|
|
|
layer.msg("流水及比例不允许为空", {icon: 2});
|
|
|
|
layer.msg("流水及比例不允许为空", {icon: 2});
|
|
|
@ -300,40 +311,29 @@ $(function(){
|
|
|
|
var target = $('form').get(0).action;
|
|
|
|
var target = $('form').get(0).action;
|
|
|
|
var query = $('form').serialize();
|
|
|
|
var query = $('form').serialize();
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
// console.log($('form'));
|
|
|
|
$(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true);
|
|
|
|
return false;
|
|
|
|
$.post(target,query).success(function(data){
|
|
|
|
// $(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true);
|
|
|
|
if(layer) {layer.closeAll('loading');}
|
|
|
|
|
|
|
|
if (data.code==1) {
|
|
|
|
// $.post(target,query).success(function(data){
|
|
|
|
if (data.url) {
|
|
|
|
// if(layer) {layer.closeAll('loading');}
|
|
|
|
updateAlert(data.msg + ' 页面即将自动跳转~');
|
|
|
|
// if (data.status==1) {
|
|
|
|
}else{
|
|
|
|
// if (data.url) {
|
|
|
|
updateAlert(data.msg);
|
|
|
|
// updateAlert(data.info + ' 页面即将自动跳转~');
|
|
|
|
}
|
|
|
|
// }else{
|
|
|
|
setTimeout(function(){
|
|
|
|
// updateAlert(data.info);
|
|
|
|
$(that).removeClass('disabled').prop('disabled',false);
|
|
|
|
// }
|
|
|
|
if (data.url) {
|
|
|
|
// setTimeout(function(){
|
|
|
|
location.href=data.url;
|
|
|
|
// $(that).removeClass('disabled').prop('disabled',false);
|
|
|
|
}else if( $(that).hasClass('no-refresh')){
|
|
|
|
// if (data.url) {
|
|
|
|
$('#tip').find('.tipclose').click();
|
|
|
|
// location.href=data.url;
|
|
|
|
}else{
|
|
|
|
// }else if( $(that).hasClass('no-refresh')){
|
|
|
|
location.reload();
|
|
|
|
// $('#tip').find('.tipclose').click();
|
|
|
|
}
|
|
|
|
// }else{
|
|
|
|
},1500);
|
|
|
|
// location.reload();
|
|
|
|
}else{
|
|
|
|
// }
|
|
|
|
layer.msg(data.msg,{icon: 2});
|
|
|
|
// },1500);
|
|
|
|
}
|
|
|
|
// }else{
|
|
|
|
});
|
|
|
|
// updateAlert(data.info,'tip_error');
|
|
|
|
|
|
|
|
// setTimeout(function(){
|
|
|
|
|
|
|
|
// $(that).removeClass('disabled').prop('disabled',false);
|
|
|
|
|
|
|
|
// if (data.url) {
|
|
|
|
|
|
|
|
// location.href=data.url;
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
// $('#tip').find('.tipclose').click();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },3000);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -408,7 +408,7 @@ $(function(){
|
|
|
|
var thatLiRatioIndex = thatLiRatio.index();
|
|
|
|
var thatLiRatioIndex = thatLiRatio.index();
|
|
|
|
var thatTurnoverRatio = parseFloat(that.val());
|
|
|
|
var thatTurnoverRatio = parseFloat(that.val());
|
|
|
|
|
|
|
|
|
|
|
|
if (thatLiRatioIndex === 0) {
|
|
|
|
if (thatLiRatioIndex === 1) {
|
|
|
|
prevTurnoverRatio = ratio;
|
|
|
|
prevTurnoverRatio = ratio;
|
|
|
|
prevTurnoverRatioHandle(thatTurnoverRatio, prevTurnoverRatio, that, true);
|
|
|
|
prevTurnoverRatioHandle(thatTurnoverRatio, prevTurnoverRatio, that, true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|