|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
<block name="css">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__STATIC__/webuploader/webuploader.css" media="all">
|
|
|
|
|
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" />
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<style>
|
|
|
|
@ -32,61 +34,138 @@
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.list-ratio {
|
|
|
|
|
display: table;
|
|
|
|
|
}
|
|
|
|
|
.list-ratio .li-ratio {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.list-ratio .li-ratio .turnover, .list-ratio .li-ratio .turnover-ratio {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.list-ratio .li-ratio .turnover span, .list-ratio .li-ratio .turnover-ratio .error-message {
|
|
|
|
|
color: red;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 30px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.iconfont-btn {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.iconfont-style {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border: 0;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
.iconfont-selected {
|
|
|
|
|
background-color: #0A9AF2;
|
|
|
|
|
}
|
|
|
|
|
.iconfont-selected:hover {
|
|
|
|
|
background-color: #03a9f4;
|
|
|
|
|
}
|
|
|
|
|
.iconfont-unselected {
|
|
|
|
|
background-color: #999;
|
|
|
|
|
}
|
|
|
|
|
.iconfont-unselected:hover {
|
|
|
|
|
background-color: #ababab;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<!-- 标签页导航 -->
|
|
|
|
|
<div class="tab-wrap">
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
|
<h3 class="page_title">推广公司查看</h3>
|
|
|
|
|
<h3 class="page_title">推广公司编辑</h3>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
|
|
<!-- 表单 -->
|
|
|
|
|
<!-- <form id="form" action="{:U('add')}" method="post" class="form-horizontal"> -->
|
|
|
|
|
<form id="form" autocomplete="off">
|
|
|
|
|
<!-- 基础 -->
|
|
|
|
|
<div id="tab1" class="tab-pane in tab1 ">
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">推广公司名称:</td>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广公司名称:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="company_name" value="{$data.company_name}" readonly placeholder="请输入推广公司名称">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>团体归属:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
|
|
|
|
|
<select id="company_belong" name="company_belong" disabled class="select_gallery" style="width: 215px;">
|
|
|
|
|
<!-- <option value="">请选择团体归属</option> -->
|
|
|
|
|
<volist name=":getCompanyBlong()" id="vo">
|
|
|
|
|
<option value="{$vo.id}" <php> if($data['company_belong'] !='' && $vo['id'] == $data['company_belong'])echo selected;</php>>{$vo.name}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">对应平台(简称):</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="platform_name" value="{$data.platform_name}" readonly placeholder="请输入对应平台">
|
|
|
|
|
<input type="text" class="txt " name="platform_name" readonly value="{$data.platform_name}" placeholder="请输入对应平台">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">合同期限:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<div class="input-list" style="margin:0;">
|
|
|
|
|
<input type="text" readonly id="contact_begin" name="contact_begin" class="" value="{$data.contact_begin}"
|
|
|
|
|
<input type="text" readonly id="contact_begin" readonly name="contact_begin" class="" value="{$data.contact_begin}"
|
|
|
|
|
placeholder="合同开始时间" />
|
|
|
|
|
-
|
|
|
|
|
<div class="input-append date" id="datetimepicker" style="display:inline-block">
|
|
|
|
|
<input type="text" readonly id="contact_end" name="contact_end" class="" value="{$data.contact_end}"
|
|
|
|
|
<input type="text" readonly id="contact_end" readonly name="contact_end" class="" value="{$data.contact_end}"
|
|
|
|
|
placeholder="合同结束时间" />
|
|
|
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">结算生效期限:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<input type="text" class="txt time time3" readonly name="validity_start_time" value="{$data.validity_start_time}" placeholder="生效开始时间">
|
|
|
|
|
- <input type="text" class="txt time time4" readonly name="validity_end_time" value="{$data.validity_end_time}" placeholder="生效结束时间">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">开票税点:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="number" class="txt" name="fax_ratio" value="{$data.fax_ratio}" readonly placeholder="请输入开票税点">
|
|
|
|
|
<span>%</span>
|
|
|
|
|
<input type="text" class="txt" name="fax_ratio" readonly value="{$data.fax_ratio}" placeholder="开票税点(最多两位小数)">
|
|
|
|
|
<span style="margin-left: 3px;padding-top: 5px">%</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">渠道费率:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="channel_rate" readonly value="{$data.channel_rate}" placeholder="渠道费率(最多两位小数)"> <span style="margin-left: 3px;padding-top: 5px">%</span>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">税费费率:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="taxation_rate" readonly value="{$data.taxation_rate}" placeholder="税费费率(最多三位小数)"><span style="margin-left: 3px;padding-top: 5px">%</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">公司性质:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
|
|
|
|
|
<select id="company_type" disabled="true" name="company_type" class="select_gallery" style="width: 215px;">
|
|
|
|
|
<option value="">请选择公司性质</option>
|
|
|
|
|
<select id="company_type" disabled name="company_type" class="select_gallery" style="width: 215px;">
|
|
|
|
|
<!-- <option value="">请选择公司性质</option> -->
|
|
|
|
|
<option value="1" <if condition="$data['company_type'] eq 1">selected
|
|
|
|
|
</if>>公司</option>
|
|
|
|
|
<option value="2" <if condition="$data.company_type eq 2">selected
|
|
|
|
@ -99,8 +178,8 @@
|
|
|
|
|
<td class="l">是否签署合同:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
|
|
|
|
|
<select id="is_sign_contact" disabled="true" name="is_sign_contact" class="select_gallery" style="width: 215px;">
|
|
|
|
|
<option value="">请选择是否签署合同</option>
|
|
|
|
|
<select id="is_sign_contact" disabled name="is_sign_contact" class="select_gallery" style="width: 215px;">
|
|
|
|
|
<!-- <option value="">请选择是否签署合同</option> -->
|
|
|
|
|
<option value="0" <if condition="$data['is_sign_contact'] eq 0">selected
|
|
|
|
|
</if>>否</option>
|
|
|
|
|
<option value="1" <if condition="$data['is_sign_contact'] eq 1">selected
|
|
|
|
@ -110,124 +189,293 @@
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">团体归属:</td>
|
|
|
|
|
<td class="l">是否展示合同服务协议:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
|
|
|
|
|
<select id="company_belong" disabled="true" name="company_belong" class="select_gallery" style="width: 215px;">
|
|
|
|
|
<option value="">请选择团体归属</option>
|
|
|
|
|
<option value="0" <if condition="$data['company_belong'] eq 0">selected
|
|
|
|
|
</if>>内团</option>
|
|
|
|
|
<option value="1" <if condition="$data['company_belong'] eq 1">selected
|
|
|
|
|
</if>>外团</option>
|
|
|
|
|
<option value="2" <if condition="$data['company_belong'] eq 2">selected
|
|
|
|
|
</if>>外团-分发</option>
|
|
|
|
|
<option value="3" <if condition="$data['company_belong'] eq 3">selected
|
|
|
|
|
</if>>其他</option>
|
|
|
|
|
<select id="service_agreement_show" disabled name="service_agreement_show" class="select_gallery" style="width: 215px;">
|
|
|
|
|
<!-- <option value="">请选择是否签署合同</option> -->
|
|
|
|
|
<option value="0" selected>不显示</option>
|
|
|
|
|
<?php foreach($serviceAgreements as $index => $service):?>
|
|
|
|
|
<option value="{$service.id}" <?php if($service['id'] == $data['service_agreement_show']):?>selected<?php endif;?>>{$service.name}</option>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">开发类型:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<select id="develop_type" name="develop_type" disabled class="select_gallery" style="width: 215px;">
|
|
|
|
|
<option value="">请选择开发类型</option>
|
|
|
|
|
<option value="1" <if condition="$data.develop_type eq 1">selected</if>>自主开发</option>
|
|
|
|
|
<option value="2" <if condition="$data.develop_type eq 2">selected</if>>自主开发及维护</option>
|
|
|
|
|
<option value="3" <if condition="$data.develop_type eq 3">selected</if>>只维护</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">联系结算人:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="settlement_contact" value="{$data.settlement_contact}" readonly placeholder="请输入结算联系人">
|
|
|
|
|
<input type="text" class="txt" readonly name="settlement_contact" value="{$data.settlement_contact}" placeholder="请输入结算联系人">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">联系电话:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="contact_phone" value="{$data.contact_phone}" readonly placeholder="请输入联系电话">
|
|
|
|
|
<input type="text" class="txt" readonly name="contact_phone" value="{$data.contact_phone}" placeholder="请输入联系电话">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">所在地址:</td>
|
|
|
|
|
<td class="l">注册地址:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="address" value="{$data.address}" readonly placeholder="请输入所在地址">
|
|
|
|
|
<input type="text" class="txt" readonly name="reg_address" value="{$data.reg_address}" placeholder="请输入注册地址">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">银行卡号:</td>
|
|
|
|
|
<td class="l">注册电话:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="bank_card" value="{$data.bank_card}" readonly placeholder="请输入银行卡号">
|
|
|
|
|
<input type="text" class="txt" readonly name="reg_phone" value="{$data.reg_phone}" placeholder="请输入注册电话">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">收款银行:</td>
|
|
|
|
|
<td class="l">邮寄地址:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="bank_name" value="{$data.bank_name}" readonly placeholder="请输入收款银行">
|
|
|
|
|
<input type="text" class="txt" readonly name="address" value="{$data.address}" placeholder="请输入邮寄地址">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">账户名:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="bank_address" value="{$data.bank_address}" readonly placeholder="请输入账户名">
|
|
|
|
|
<input type="text" class="txt" readonly name="bank_address" value="{$data.bank_address}" placeholder="请输入账户名">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">银行卡号:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt" readonly name="bank_card" value="{$data.bank_card}" placeholder="请输入银行卡号">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">收款银行:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt" readonly name="bank_name" value="{$data.bank_name}" placeholder="请输入收款银行">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">支付宝真实姓名:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="ali_user" value="{$data.ali_user}" readonly placeholder="请输入支付宝真实姓名">
|
|
|
|
|
<input type="text" class="txt" readonly name="ali_user" value="{$data.ali_user}" placeholder="请输入支付宝真实姓名">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">支付宝登陆账号:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="ali_account" value="{$data.ali_account}" readonly placeholder="可以是手机及邮箱等">
|
|
|
|
|
<input type="text" class="txt" readonly name="ali_account" value="{$data.ali_account}" placeholder="可以是手机及邮箱等">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">开发类型:</td>
|
|
|
|
|
<td class="l">备注:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<select id="develop_type" name="develop_type" class="select_gallery" disabled="true" style="width: 215px;">
|
|
|
|
|
<option value="">请选择开发类型</option>
|
|
|
|
|
<option value="1" <if condition="$data.develop_type eq 1">selected</if>>自主开发</option>
|
|
|
|
|
<option value="2" <if condition="$data.develop_type eq 2">selected</if>>自主开发及维护</option>
|
|
|
|
|
<option value="3" <if condition="$data.develop_type eq 3">selected</if>>只维护</option>
|
|
|
|
|
</select>
|
|
|
|
|
<input type="text" class="txt" readonly name="content" value="{$data.content}" placeholder="">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px"></i>备注:</td>
|
|
|
|
|
<td class="l">推广游戏:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="content" value="{$data.content}" readonly placeholder="">
|
|
|
|
|
<a class="ajax-view">查看</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l noticeinfo">显示状态:</td>
|
|
|
|
|
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>承担服务费:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn" style="width: auto;">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="0" name="has_server_fee" <if condition="$data['has_server_fee'] eq 0">checked</if>> 否
|
|
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="1" name="has_server_fee" <if condition="$data['has_server_fee'] eq 1">checked</if>> 是
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="notice-text" id="server_fee_input" style="color: #000;<if condition="$data['has_server_fee'] eq 0">display: none;</if>"><input type="text" class="txt " name="server_fee" value="{$data['server_fee']}" placeholder="请输入服务器费用" style="width: 100px;"> 元</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作关系:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled="true" class="inp_radio" value="1" name="status" <if condition="$data['status'] eq 1">checked
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="1" name="cooperation_status" <if condition="$data['cooperation_status'] eq 1">checked</if>> 合作中
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="0" name="cooperation_status" <if condition="$data['cooperation_status'] eq 0">checked</if>> 停止合作
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>显示状态:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="1" name="status" <if condition="$data['status'] eq 1">checked
|
|
|
|
|
</if>> 开启
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled="true" class="inp_radio" value="0" name="status" <if condition="$data['status'] eq 0">checked
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="0" name="status" <if condition="$data['status'] eq 0">checked
|
|
|
|
|
</if>> 关闭
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l noticeinfo">市场总监信息展示:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="1" name="marketing_director_show" <if condition="$data['marketing_director_show'] eq 1">checked</if>> 展示
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="2" name="marketing_director_show" <if condition="$data['marketing_director_show'] eq 2">checked
|
|
|
|
|
</if>> 隐藏
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作方比例增量:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="0" name="has_ratio" <if condition="$data['has_ratio'] eq 0">checked</if>> 否
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" disabled class="inp_radio" value="1" name="has_ratio" <if condition="$data['has_ratio'] eq 1">checked</if>> 是
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr id="turnover_ratio" <if condition="$data['has_ratio'] eq 0">style="display: none;"</if> >
|
|
|
|
|
<td class="l"></td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<div class="list-ratio">
|
|
|
|
|
<div class="li-ratio">
|
|
|
|
|
<label class="instanceof_text" style="margin-right: 10px;">流水分成设定:</label>
|
|
|
|
|
</div>
|
|
|
|
|
<volist name="data['turnover_ratio']" key="key" id="vo">
|
|
|
|
|
<div class="li-ratio">
|
|
|
|
|
<label class="instanceof_text" style="margin-right: 10px;">月流水</label>
|
|
|
|
|
<select name="instanceof[]" disabled style="width: 50px;margin-right: 10px;">
|
|
|
|
|
<option value="1" <if condition="empty($vo['instanceof']) or $vo['instanceof'] eq 1">selected</if>>≥</option>
|
|
|
|
|
<option value="2" <if condition="!empty($vo['instanceof']) and $vo['instanceof'] eq 2">selected</if>>></option>
|
|
|
|
|
</select>
|
|
|
|
|
<div class="turnover">
|
|
|
|
|
<input type="text" class="txt turnover_money" readonly name="turnover[]" value="{$vo['turnover']|default=''}" placeholder="" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" style="width: 100px;margin-right: 10px;">
|
|
|
|
|
<span class="error-message"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<label>分成比例:</label>
|
|
|
|
|
<div class="turnover-ratio">
|
|
|
|
|
<input type="text" class="txt turnover_ratio" readonly name="turnover_ratio[]" value="{$vo['ratio']|default=''}" placeholder="" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" style="width: 60px;">
|
|
|
|
|
<span class="form_unit" style="margin-right: 10px;">%</span>
|
|
|
|
|
<span class="error-message"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</volist>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<span class="notice-text" style="width: auto;"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l noticeinfo">文档管理</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<table border="1" style="width: 680px;text-align: center;margin:10px 0 0 60px;" cellspacing="0" cellpadding="0" id="docShow">
|
|
|
|
|
<table border="1" style="width: 600px;text-align: center;margin:10px 0 0 60px;" cellspacing="0" cellpadding="0" id="docShow">
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 100%;height: 60px;"></div>
|
|
|
|
|
<div class="form-item cf" style="margin-bottom: 40px;">
|
|
|
|
|
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:history.back(-1);" >
|
|
|
|
|
返回
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="common_settings">
|
|
|
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
|
|
|
<form class="addShortcutIcon">
|
|
|
|
|
<input type="hidden" name="title" value="{$meta_title}">
|
|
|
|
|
<input type="hidden" name="url" value="Partner/add">
|
|
|
|
|
<div class="pro_promot" style="display:none">
|
|
|
|
|
<form id="promotForm" >
|
|
|
|
|
<div class="pro_promot_main">
|
|
|
|
|
<div class="pro_promot_title">
|
|
|
|
|
<div class="fl pro_promot_title_text">
|
|
|
|
|
<div class="fl pro_promot_title_bigtext"> 可申请游戏</div> 选中的游戏将在对应的推广员后台进行展示,推广员可进行游戏申请</div>
|
|
|
|
|
<div class="pro_promot_close fr"><img src="__IMG__/icon_close.png"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pro_promot_con">
|
|
|
|
|
<div class="pro_promot_select">
|
|
|
|
|
<div class="pro_promot_select_title fl">可推广游戏:</div>
|
|
|
|
|
<div class="pro_promot_select_list fl">
|
|
|
|
|
<a class="pro_promot_select_list_con fl active pro_promot_all pro_promot_mr20">全部 </a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="A">A</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="B">B</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="C">C</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="D">D</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="E">E</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="F">F</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="G">G</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="H">H</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="I">I</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="J">J</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="K">K</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="L">L</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="M">M</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="N">N</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="O">O</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="P">P</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Q">Q</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="R">R</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="S">S</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="T">T</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="U">U</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="V">V</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="W">W</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="X">X</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Y">Y</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Z">Z</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
<div class="pro_promot_game">
|
|
|
|
|
<ul id="game_list" class="z_clearfix game_list" style="clear: both;">
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/html" id="doctpl">
|
|
|
|
|
|
|
|
|
@ -237,7 +485,6 @@
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>文档名称</th>
|
|
|
|
|
<th>文档类型</th>
|
|
|
|
|
<th>上传时间</th>
|
|
|
|
|
<th style="width:150px;">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
@ -245,7 +492,6 @@
|
|
|
|
|
{@/if}
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding:0;">${it.file_name}</td>
|
|
|
|
|
<td>${it.file_type}</td>
|
|
|
|
|
<td>${it.upload_time}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a class="filedown" data-index="${index}" data-path="${it.file_path}">下载</a>
|
|
|
|
@ -262,6 +508,8 @@
|
|
|
|
|
$('#submit').click(function(){
|
|
|
|
|
$('#form').submit();
|
|
|
|
|
});
|
|
|
|
|
var ids = "{$data.game_ids}";
|
|
|
|
|
ids = ids.split(",");
|
|
|
|
|
var PROMOTE = {
|
|
|
|
|
juicerFun(){
|
|
|
|
|
var tpl =$("#doctpl").html();
|
|
|
|
@ -280,36 +528,49 @@
|
|
|
|
|
link.click()
|
|
|
|
|
});
|
|
|
|
|
$(".filedel").on("click",function(){
|
|
|
|
|
var path = $(this).data("path");
|
|
|
|
|
var index = $(this).data("index");
|
|
|
|
|
console.log(index);
|
|
|
|
|
var id = 0;
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('PromoteCompany/delFile')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:{
|
|
|
|
|
"id":0,
|
|
|
|
|
"file_path":path
|
|
|
|
|
},
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status == 1){
|
|
|
|
|
doc.splice(index,1)
|
|
|
|
|
PROMOTE.juicerFun();
|
|
|
|
|
}else{
|
|
|
|
|
layer.alert(data.info);
|
|
|
|
|
layer.confirm('删除将即时生效,并且无法回退。请慎重选择', {icon: 2, title:'删除提示'}, function(index){
|
|
|
|
|
var path = $(this).data("path");
|
|
|
|
|
var index = $(this).data("index");
|
|
|
|
|
var id = {$data.id};
|
|
|
|
|
var doccopy = doc.concat();
|
|
|
|
|
doccopy.splice(index,1)
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('PromoteCompany/delFile')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:{
|
|
|
|
|
"id":id,
|
|
|
|
|
"file_path":path,
|
|
|
|
|
"resources":doccopy
|
|
|
|
|
},
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status == 1){
|
|
|
|
|
doc.splice(index,1);
|
|
|
|
|
layer.msg(data.info,function(){
|
|
|
|
|
PROMOTE.juicerFun();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
layer.alert(data.info);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error:function(e){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error:function(e){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
|
var doc = {$data.resources};
|
|
|
|
|
if(!doc){
|
|
|
|
|
doc = [];
|
|
|
|
|
}
|
|
|
|
|
var id = {$data.id};
|
|
|
|
|
PROMOTE.juicerFun();
|
|
|
|
|
|
|
|
|
|
function addFile(info) {
|
|
|
|
@ -318,85 +579,117 @@
|
|
|
|
|
PROMOTE.juicerFun();
|
|
|
|
|
// window.parent.addFile(info);
|
|
|
|
|
}
|
|
|
|
|
// $('#contact_begin').datetimepicker({
|
|
|
|
|
// format: 'yyyy-mm-dd',
|
|
|
|
|
// language: "zh-CN",
|
|
|
|
|
// minView: 2,
|
|
|
|
|
// autoclose: true
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//点击字母按照条件按钮筛选
|
|
|
|
|
$(".pro_promot_select_list_con").click(function(){
|
|
|
|
|
//选中高亮样式
|
|
|
|
|
$(this).addClass('active');
|
|
|
|
|
$(this).siblings().removeClass('active');
|
|
|
|
|
|
|
|
|
|
var that = $(this);
|
|
|
|
|
var index = $(this).attr("data-index");
|
|
|
|
|
|
|
|
|
|
$("#game_list li").each(function(index,ele){
|
|
|
|
|
var short = $(this).attr('data-short');
|
|
|
|
|
$(this).show();
|
|
|
|
|
if(that.attr('data-index')){
|
|
|
|
|
if(that.attr('data-index')!=short.charAt(0)){
|
|
|
|
|
$(this).hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//打开弹窗
|
|
|
|
|
$(".ajax-view").click(function(){
|
|
|
|
|
//获取游戏列表
|
|
|
|
|
var url = "{:U('getCompanyGame')}";
|
|
|
|
|
var checked = 'checked';
|
|
|
|
|
|
|
|
|
|
// $('#datetimepicker').datetimepicker({
|
|
|
|
|
// format: 'yyyy-mm-dd',
|
|
|
|
|
// language: "zh-CN",
|
|
|
|
|
// minView: 2,
|
|
|
|
|
// autoclose: true,
|
|
|
|
|
// pickerPosition: 'bottom-left'
|
|
|
|
|
// })
|
|
|
|
|
$(".coin-detail").click(function () {
|
|
|
|
|
var url = $(this).data('url');
|
|
|
|
|
var title = '文档添加';
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: title,
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0.8,
|
|
|
|
|
area: ['40%', '60%'],
|
|
|
|
|
content: url
|
|
|
|
|
$.post(url,{},function(res){
|
|
|
|
|
if(res.code==1){
|
|
|
|
|
$(".pro_promot_select_list a").eq(0).addClass('active');
|
|
|
|
|
$(".pro_promot_select_list a").eq(0).siblings().removeClass('active');
|
|
|
|
|
|
|
|
|
|
var game_list = res.data.game_list;
|
|
|
|
|
var lis = [];
|
|
|
|
|
var promote_info = [];
|
|
|
|
|
promote_info['game_ids'] = ids;
|
|
|
|
|
|
|
|
|
|
$.each(game_list,function(index,ele){
|
|
|
|
|
if(ele.game_name.length>6){
|
|
|
|
|
ele.game_name = ele.game_name .substring(0,6)+"..."
|
|
|
|
|
}
|
|
|
|
|
if(promote_info['game_ids'].indexOf(ele.id)>-1){
|
|
|
|
|
lis.push('<li class="fl pro_promot_game_con" data-short="'+ele.short+'">');
|
|
|
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" disabled class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
|
|
|
|
lis.push('<label for="gameCheck'+index+'" class="fl"></label>');
|
|
|
|
|
lis.push('<span class="fl pro_promot_game_name">'+ele.game_name+'</span>');
|
|
|
|
|
lis.push('</li>');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// $(".jsgamecheckall").attr('checked',checked);
|
|
|
|
|
|
|
|
|
|
$("#game_list").html(lis.join(''));
|
|
|
|
|
$(".pro_promot_number").text(res.data.promote_info.company_name);
|
|
|
|
|
$("#se_promote_id").val(res.data.promote_info.id);
|
|
|
|
|
$(".pro_promot").css("display","block");
|
|
|
|
|
|
|
|
|
|
jsgameid();
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
var tip_msg = res.info ? res.info : '操作失败';
|
|
|
|
|
layer.msg(tip_msg);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
$("#submit").on("click",function(){
|
|
|
|
|
var obj = {
|
|
|
|
|
"company_name":["required","推广公司名称不允许为空"],
|
|
|
|
|
"platform_name":["nocheck"],
|
|
|
|
|
"contact_begin":["date","合同开始时间不能为空"],
|
|
|
|
|
"contact_end":["date","合同结束时间不能为空"],
|
|
|
|
|
"fax_ratio":["number","开票税率必须是数字,如果无此项请填0"],
|
|
|
|
|
"company_type":["required","公司性质不能为空","select"],
|
|
|
|
|
"is_sign_contact":["required","是否签署合同项不能为空","select"],
|
|
|
|
|
"company_belong":["required","团体归属不能为空","select"],
|
|
|
|
|
"settlement_contact":["required","结算联系人不能为空"],
|
|
|
|
|
"contact_phone":["phone","联系人电话格式不对或不能为空"],
|
|
|
|
|
"address":["required","联系人地址不能为空"],
|
|
|
|
|
"bank_card":["bankid","银行卡格式错误或不能为空"],
|
|
|
|
|
"bank_name":["required","银行名称不能为空"],
|
|
|
|
|
"bank_address":["required","银行开户网点不能为空"],
|
|
|
|
|
"content":["nocheck"],
|
|
|
|
|
"status":["nocheck","","radio"]
|
|
|
|
|
}
|
|
|
|
|
var cres = CIC.checkAddInput(obj);
|
|
|
|
|
if(!cres){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (Date.parse(cres.contact_begin) > Date.parse(cres.contact_end)) {
|
|
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
//验证通过
|
|
|
|
|
if(doc.length > 0){
|
|
|
|
|
cres.resources = doc;
|
|
|
|
|
|
|
|
|
|
//保存修改
|
|
|
|
|
$(".pro_promot_btn_confirm").click(function(){
|
|
|
|
|
ids = [];
|
|
|
|
|
var res = $("#promotForm").serializeArray();
|
|
|
|
|
for (var key in res) {
|
|
|
|
|
if (res.hasOwnProperty(key)) {
|
|
|
|
|
var e = res[key];
|
|
|
|
|
ids.push(e['value']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//添加
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('PromoteCompany/add')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:cres,
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status == 1){
|
|
|
|
|
layer.msg(data.info,function(){
|
|
|
|
|
window.location.href="{:U('PromoteCompany/lists')}";
|
|
|
|
|
});
|
|
|
|
|
// layer.msg("编辑成功,保存并审核通过后生效");
|
|
|
|
|
$(".pro_promot").hide();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//关闭弹窗
|
|
|
|
|
$(".pro_promot_close").click(function(){
|
|
|
|
|
$(".pro_promot").css("display","none");
|
|
|
|
|
});
|
|
|
|
|
//取消修改
|
|
|
|
|
$(".pro_promot_btn_cancel").click(function(){
|
|
|
|
|
$(".pro_promot").css("display","none");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".jsgamecheckall").click(function(){
|
|
|
|
|
$(this).closest('.jsgamecheckallbox').siblings("#game_list").find(".jsgameid").prop("checked", this.checked);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function jsgameid(){
|
|
|
|
|
$(".jsgameid").click(function(){
|
|
|
|
|
var option = $(this).closest('ul').find(".jsgameid"),
|
|
|
|
|
checkall = $(this).closest('ul').siblings('.jsgamecheckallbox').find('.jsgamecheckall');
|
|
|
|
|
option.each(function(i){
|
|
|
|
|
if(!this.checked){
|
|
|
|
|
checkall.prop("checked", false);
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
layer.msg(data.info);
|
|
|
|
|
checkall.prop("checked", true);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error:function(e){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|