合作方

master
liuweiwen 5 years ago
parent 52668ace85
commit 04bb4a7bb7

@ -345,9 +345,7 @@ class PartnerController extends ThinkController
$save['has_game_evidence'] = I('has_game_evidence');
$save['company_type'] = I('company_type');
$save['remark'] = I('remark');
if (!empty(I('file_info'))) {
$save['file_info'] = I('file_info');
}
$save['file_info'] = I('file_info');
$save['status'] = $status;
$save['last_up_time'] = $time;

@ -283,11 +283,10 @@
</script>
<script>
var doc = {$data.file_info};
var doc = <?php echo ($data['file_info'] ?: "''") ?>;
if(!doc){
doc = [];
}
function addFile(info) {
doc.push(info);
layer.closeAll();
@ -308,11 +307,14 @@
});
});
$("#submit2").on("click",function(){
console.log(111);
var cres = $('form').serializeArray();
console.log(222);
//验证通过
if(doc.length > 0){
cres.push({"name":"file_info", "value":JSON.stringify(doc)});
}
console.log(333);
//添加
$.ajax({
url:"{:U('partner/edit')}",

@ -88,7 +88,7 @@
<td rowspan="{$data.row}">{$data.contract_time}</td>
<td rowspan="{$data.row}">{$data.invoice_rate}%</td>
<td rowspan="{$data.row}">{$data.settlement_type}</td>
<td rowspan="{$data.row}">{$data.bank_account}</td>
<td rowspan="{$data.row}">&nbsp;{$data.bank_account}</td>
<td rowspan="{$data.row}">{$data.opening_bank}</td>
<td rowspan="{$data.row}">{$data.remark}</td>
<td rowspan="{$data.row}">{$data.has_game_evidence}</td>

Loading…
Cancel
Save