|
|
@ -125,6 +125,10 @@
|
|
|
|
line-height: 25px;
|
|
|
|
line-height: 25px;
|
|
|
|
margin-bottom: 0px;
|
|
|
|
margin-bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.normal-table .normal-btn.delete-btn {
|
|
|
|
|
|
|
|
background: rgb(221, 10, 10);
|
|
|
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
|
|
}
|
|
|
|
.layer-box .tabcon1711 input~.notice-text {
|
|
|
|
.layer-box .tabcon1711 input~.notice-text {
|
|
|
|
width: auto;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -234,7 +238,7 @@
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>押金付款方式:</td>
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>押金付款方式:</td>
|
|
|
|
<td class="r">
|
|
|
|
<td class="r">
|
|
|
|
<select name="pay_type" id="pay_type" class="select_gallery">
|
|
|
|
<select name="deposit[pay_type]" id="deposit-pay-type" class="select_gallery">
|
|
|
|
<option value="">押金付款方式</option>
|
|
|
|
<option value="">押金付款方式</option>
|
|
|
|
<?php foreach($payTypes as $key => $name):?>
|
|
|
|
<?php foreach($payTypes as $key => $name):?>
|
|
|
|
<option value="<?=$key?>"><?=$name?></option>
|
|
|
|
<option value="<?=$key?>"><?=$name?></option>
|
|
|
@ -244,10 +248,10 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr class="need-amount">
|
|
|
|
<tr class="need-amount">
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>押金付款方式:</td>
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>押金支付方式:</td>
|
|
|
|
<td class="r">
|
|
|
|
<td class="r">
|
|
|
|
<select name="pay_way" id="pay_way" class="select_gallery">
|
|
|
|
<select name="deposit[pay_way]" id="deposit-pay-way" class="select_gallery">
|
|
|
|
<option value="">押金付款方式</option>
|
|
|
|
<option value="">押金支付方式</option>
|
|
|
|
<?php foreach($payWays as $key => $name):?>
|
|
|
|
<?php foreach($payWays as $key => $name):?>
|
|
|
|
<option value="<?=$key?>"><?=$name?></option>
|
|
|
|
<option value="<?=$key?>"><?=$name?></option>
|
|
|
|
<?php endforeach;?>
|
|
|
|
<?php endforeach;?>
|
|
|
@ -258,21 +262,21 @@
|
|
|
|
<tr class="need-amount">
|
|
|
|
<tr class="need-amount">
|
|
|
|
<td class="l"><?php if($record):?><i class="mustmark">*</i><?php endif?>押金金额:</td>
|
|
|
|
<td class="l"><?php if($record):?><i class="mustmark">*</i><?php endif?>押金金额:</td>
|
|
|
|
<td class="r table_radio">
|
|
|
|
<td class="r table_radio">
|
|
|
|
<input type="text" class="txt ratio" name="amount" id="amount" value="<?=$record?$record['amount']:''?>" placeholder="请输入押金金额">
|
|
|
|
<input type="text" class="txt ratio" name="deposit[amount]" id="deposit-amount" value="<?=$record?$record['amount']:''?>" placeholder="请输入押金金额">
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr class="need-amount">
|
|
|
|
<tr class="need-amount">
|
|
|
|
<td class="l">押金付款人:</td>
|
|
|
|
<td class="l">押金付款人:</td>
|
|
|
|
<td class="r table_radio">
|
|
|
|
<td class="r table_radio">
|
|
|
|
<input type="text" class="txt ratio" name="payer" id="payer" value="<?=$record?$record['payer']:''?>" placeholder="请输入押金付款人">
|
|
|
|
<input type="text" class="txt ratio" name="deposit[payer]" id="deposit-payer" value="<?=$record?$record['payer']:''?>" placeholder="请输入押金付款人">
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr class="need-amount">
|
|
|
|
<tr class="need-amount">
|
|
|
|
<td class="l">押金付款账号:</td>
|
|
|
|
<td class="l">押金付款账号:</td>
|
|
|
|
<td class="r table_radio">
|
|
|
|
<td class="r table_radio">
|
|
|
|
<input type="text" class="txt ratio" name="pay_account" id="pay_account" value="<?=$record?$record['pay_account']:''?>" placeholder="请输入押金付款账号">
|
|
|
|
<input type="text" class="txt ratio" name="deposit[pay_account]" id="deposit-pay-account" value="<?=$record?$record['pay_account']:''?>" placeholder="请输入押金付款账号">
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -355,6 +359,81 @@
|
|
|
|
<div id="tab2" class="tab-pane tab2 ">
|
|
|
|
<div id="tab2" class="tab-pane tab2 ">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>合作方式:</td>
|
|
|
|
|
|
|
|
<td class="r">
|
|
|
|
|
|
|
|
<select name="relation[collaborate_way]" id="collaborate_way" class="select_gallery">
|
|
|
|
|
|
|
|
<option value="1" >甲方</option>
|
|
|
|
|
|
|
|
<option value="2" selected>乙方</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>己方公司:</td>
|
|
|
|
|
|
|
|
<td class="r">
|
|
|
|
|
|
|
|
<select name="relation[self_company_id]" id="self_company" class="select_gallery">
|
|
|
|
|
|
|
|
<option value="0">无</option>
|
|
|
|
|
|
|
|
<?php foreach($selfCompanies as $selfCompany):?>
|
|
|
|
|
|
|
|
<option value="<?=$selfCompany['id']?>"><?=$selfCompany['company_name']?></option>
|
|
|
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>结算周期:</td>
|
|
|
|
|
|
|
|
<td class="r">
|
|
|
|
|
|
|
|
<select name="relation[settlement_type]" id="settlement_type" class="select_gallery">
|
|
|
|
|
|
|
|
<option value="0">无</option>
|
|
|
|
|
|
|
|
<option value="1" selected>周结</option>
|
|
|
|
|
|
|
|
<option value="2">月结</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>开票类型:</td>
|
|
|
|
|
|
|
|
<td class="r">
|
|
|
|
|
|
|
|
<select name="relation[invoice_type]" id="invoice_type" class="select_gallery">
|
|
|
|
|
|
|
|
<option value="0" selected>无</option>
|
|
|
|
|
|
|
|
<option value="1">专票</option>
|
|
|
|
|
|
|
|
<option value="2">普票</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l">开票内容:</td>
|
|
|
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
|
|
|
<input type="text" name="relation[invoice_content]" id="invoice_content" class="input" value="信息服务费"></textarea>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l">是否有打款流程:</td>
|
|
|
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
|
|
|
<span class="form_radio table_btn">
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="radio" value="1" name="relation[is_payment]" checked="checked"> 是
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="radio" value="2" name="relation[is_payment]"> 否
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="notice-text">选择否将不能进行线上打款</span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>收款方:</td>
|
|
|
|
|
|
|
|
<td class="r">
|
|
|
|
|
|
|
|
<select name="relation[collection]" id="collection" class="select_gallery">
|
|
|
|
|
|
|
|
<option value="1" >甲方</option>
|
|
|
|
|
|
|
|
<option value="2" selected>乙方</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="l">结算生效期限:</td>
|
|
|
|
<td class="l">结算生效期限:</td>
|
|
|
|
<td class="r">
|
|
|
|
<td class="r">
|
|
|
@ -364,7 +443,6 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="l">支付宝真实姓名:</td>
|
|
|
|
<td class="l">支付宝真实姓名:</td>
|
|
|
|
<td class="r" >
|
|
|
|
<td class="r" >
|
|
|
@ -573,10 +651,10 @@
|
|
|
|
<td class="r table_radio">
|
|
|
|
<td class="r table_radio">
|
|
|
|
<span class="form_radio table_btn" style="width: 215px;">
|
|
|
|
<span class="form_radio table_btn" style="width: 215px;">
|
|
|
|
<label >
|
|
|
|
<label >
|
|
|
|
<input type="radio" value="1" name="can_view_recharge" checked="checked"> 开启
|
|
|
|
<input type="radio" class="can_view_recharge" value="1" name="can_view_recharge" checked="checked"> 开启
|
|
|
|
</label >
|
|
|
|
</label >
|
|
|
|
<label >
|
|
|
|
<label >
|
|
|
|
<input type="radio" value="0" name="can_view_recharge"> 锁定
|
|
|
|
<input type="radio" class="can_view_recharge" value="0" name="can_view_recharge"> 锁定
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
@ -758,6 +836,9 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!flag) return false;
|
|
|
|
if(!flag) return false;
|
|
|
|
senddata.push({"name":"game_ids", "value":ids.join(",")});
|
|
|
|
senddata.push({"name":"game_ids", "value":ids.join(",")});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
senddata.push({'name': 'promotes', 'value': JSON.stringify(getPromotes())})
|
|
|
|
|
|
|
|
|
|
|
|
//添加
|
|
|
|
//添加
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url:"{:U('add')}",
|
|
|
|
url:"{:U('add')}",
|
|
|
@ -948,9 +1029,13 @@
|
|
|
|
content: $('#promote-box'),
|
|
|
|
content: $('#promote-box'),
|
|
|
|
area: ['800px', '460px'],
|
|
|
|
area: ['800px', '460px'],
|
|
|
|
zIndex: 250,
|
|
|
|
zIndex: 250,
|
|
|
|
|
|
|
|
cancel: function() {
|
|
|
|
|
|
|
|
clearPromoteBox()
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
$('#confirm-promote').on({
|
|
|
|
$('#confirm-promote').on({
|
|
|
|
click: function () {
|
|
|
|
click: function () {
|
|
|
|
var box = $('#promote-box')
|
|
|
|
var box = $('#promote-box')
|
|
|
@ -962,36 +1047,108 @@
|
|
|
|
email: box.find('input[name=email]').val(),
|
|
|
|
email: box.find('input[name=email]').val(),
|
|
|
|
can_view_recharge: box.find('input[name=can_view_recharge]:checked').val(),
|
|
|
|
can_view_recharge: box.find('input[name=can_view_recharge]:checked').val(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (promote.account == '') {
|
|
|
|
|
|
|
|
return layer.msg('请输入会长账号')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (promote.password == '') {
|
|
|
|
|
|
|
|
return layer.msg('请输入登录密码')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (promote.password.length < 6) {
|
|
|
|
|
|
|
|
return layer.msg('密码不能小于6位')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var canViewRecharge = promote.can_view_recharge == 1 ? '允许' : '禁止'
|
|
|
|
var canViewRecharge = promote.can_view_recharge == 1 ? '允许' : '禁止'
|
|
|
|
console.log(promote)
|
|
|
|
|
|
|
|
$('#promote-table').find('.no-record').remove()
|
|
|
|
var editTr = $('#promote-table').find('.edit')
|
|
|
|
var html = '<tr><td>' + promote.account + '</td>'
|
|
|
|
if (editTr.length > 0) {
|
|
|
|
+ '<td>' + promote.real_name + '</td>'
|
|
|
|
editTr.attr('data-post', JSON.stringify(promote))
|
|
|
|
+ '<td>' + promote.mobile_phone + '</td>'
|
|
|
|
var html = '<td>' + promote.account + '</td>'
|
|
|
|
+ '<td>' + promote.email + '</td>'
|
|
|
|
+ '<td>' + promote.real_name + '</td>'
|
|
|
|
+ '<td>' + canViewRecharge + '</td>'
|
|
|
|
+ '<td>' + promote.mobile_phone + '</td>'
|
|
|
|
+ '<td><button class="normal-btn" type="button">删除</button></td>'
|
|
|
|
+ '<td>' + promote.email + '</td>'
|
|
|
|
+ '</tr>'
|
|
|
|
+ '<td>' + canViewRecharge + '</td>'
|
|
|
|
console.log(html)
|
|
|
|
+ '<td><button class="modify-btn normal-btn" type="button">编辑</button><button class="delete-btn normal-btn" type="button">删除</button></td>'
|
|
|
|
$('#promote-table').children('tbody').append(html)
|
|
|
|
editTr.html(html)
|
|
|
|
|
|
|
|
editTr.removeClass('edit')
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('#promote-table').find('.no-record').remove()
|
|
|
|
|
|
|
|
var html = '<tr data-post=' + JSON.stringify(promote) + '><td>' + promote.account + '</td>'
|
|
|
|
|
|
|
|
+ '<td>' + promote.real_name + '</td>'
|
|
|
|
|
|
|
|
+ '<td>' + promote.mobile_phone + '</td>'
|
|
|
|
|
|
|
|
+ '<td>' + promote.email + '</td>'
|
|
|
|
|
|
|
|
+ '<td>' + canViewRecharge + '</td>'
|
|
|
|
|
|
|
|
+ '<td><button class="modify-btn normal-btn" type="button">编辑</button><button class="delete-btn normal-btn" type="button">删除</button></td>'
|
|
|
|
|
|
|
|
+ '</tr>'
|
|
|
|
|
|
|
|
$('#promote-table').children('tbody').append(html)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
layer.closeAll()
|
|
|
|
layer.closeAll()
|
|
|
|
|
|
|
|
clearPromoteBox()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
$('#pay_type').change(function() {
|
|
|
|
function clearPromoteBox() {
|
|
|
|
|
|
|
|
var box = $('#promote-box')
|
|
|
|
|
|
|
|
box.find('input[name=account]').val('')
|
|
|
|
|
|
|
|
box.find('input[name=password]').val('')
|
|
|
|
|
|
|
|
box.find('input[name=realname]').val('')
|
|
|
|
|
|
|
|
box.find('input[name=mobile]').val('')
|
|
|
|
|
|
|
|
box.find('input[name=email]').val('')
|
|
|
|
|
|
|
|
box.find('.can_view_recharge[value=1]').click()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function initPromoteBox(promote) {
|
|
|
|
|
|
|
|
var box = $('#promote-box')
|
|
|
|
|
|
|
|
box.find('input[name=account]').val(promote.account)
|
|
|
|
|
|
|
|
box.find('input[name=password]').val(promote.password)
|
|
|
|
|
|
|
|
box.find('input[name=realname]').val(promote.real_name)
|
|
|
|
|
|
|
|
box.find('input[name=mobile]').val(promote.mobile_phone)
|
|
|
|
|
|
|
|
box.find('input[name=email]').val(promote.email)
|
|
|
|
|
|
|
|
box.find('.can_view_recharge[value=' + promote.can_view_recharge + ']').click()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#promote-table').on('click', '.delete-btn', function() {
|
|
|
|
|
|
|
|
$(this).parents('tr').eq(0).remove()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#promote-table').on('click', '.modify-btn', function() {
|
|
|
|
|
|
|
|
$(this).parents('tr').eq(0).addClass('edit')
|
|
|
|
|
|
|
|
var promote = JSON.parse($(this).parents('tr').eq(0).attr('data-post'))
|
|
|
|
|
|
|
|
layer.open({
|
|
|
|
|
|
|
|
title: '编辑会长',
|
|
|
|
|
|
|
|
type: 1,
|
|
|
|
|
|
|
|
content: $('#promote-box'),
|
|
|
|
|
|
|
|
area: ['800px', '460px'],
|
|
|
|
|
|
|
|
zIndex: 250,
|
|
|
|
|
|
|
|
cancel: function() {
|
|
|
|
|
|
|
|
clearPromoteBox()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
initPromoteBox(promote)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getPromotes() {
|
|
|
|
|
|
|
|
var promotes = []
|
|
|
|
|
|
|
|
$('#promote-table tbody tr').each(function(index, elem) {
|
|
|
|
|
|
|
|
promotes.push(JSON.parse($(elem).attr('data-post')))
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return promotes
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#deposit-pay-type').change(function() {
|
|
|
|
var val = $(this).val()
|
|
|
|
var val = $(this).val()
|
|
|
|
if (val == 2) {
|
|
|
|
if (val == 2) {
|
|
|
|
$('.need-amount').show();
|
|
|
|
$('.need-amount').show();
|
|
|
|
$("#pay_way option[value='4']").removeProp('disabled');
|
|
|
|
$("#deposit-pay-way option[value='4']").removeProp('disabled');
|
|
|
|
$('#pay_way').val('4')
|
|
|
|
$('#deposit-pay-way').val('4')
|
|
|
|
$('#pay_way').attr('disabled', 'disabled')
|
|
|
|
$('#deposit-pay-way').attr('disabled', 'disabled')
|
|
|
|
} else if(val == 3) {
|
|
|
|
} else if(val == 3) {
|
|
|
|
$('.need-amount').hide();
|
|
|
|
$('.need-amount').hide();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('.need-amount').show();
|
|
|
|
$('.need-amount').show();
|
|
|
|
$('#pay_way').removeAttr('disabled');
|
|
|
|
$('#deposit-pay-way').removeAttr('disabled');
|
|
|
|
$("#pay_way option[value='4']").prop('disabled', true);
|
|
|
|
$("#deposit-pay-way option[value='4']").prop('disabled', true);
|
|
|
|
$('#pay_way').val('')
|
|
|
|
$('#deposit-pay-way').val('')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|