Merge branch 'master' of 8.136.139.249:wmtx/platform into feature/more_finance_20201211

master
chenzhi 4 years ago
commit 6dd2558350

@ -280,6 +280,8 @@ class PartnerController extends ThinkController
// $count = $model
// ->where($map)
// ->count();
$arraypage = $page;
//分页
$parameter['p'] = $page;
$parameter['row'] = $row;
@ -288,7 +290,7 @@ class PartnerController extends ThinkController
$this->assign('_page', $page);
}
$arraypage = $page;
// $arraypage = $page;
$size = $row;//每页显示的记录数
$parseData = array_slice($parseData, ($arraypage - 1) * $size, $size);
// $page = set_pagination($count, $row, $parameter);
@ -473,7 +475,12 @@ class PartnerController extends ThinkController
if ($_POST) {
$save = I("post.");
$this->checkData($save);
$save['relation']['collaborate_way'] = $save['part_a_type'];
if ($save['part_a_type'] == 1) { // 1己方公司的时候 合作类型是2
$save['relation']['collaborate_way'] = 2;
}
if ($save['part_a_type'] == 2) { // 2下游推广公司的时候 合作类型是1
$save['relation']['collaborate_way'] = 1;
}
if ($save['part_a_type'] == 1) {
$save['relation']['self_company_id'] = $save['part_a'];
}

@ -1192,9 +1192,9 @@ class PlatformController extends ThinkController
}
$tdata = M('promote', 'tab_')->alias('tp1')
->field('tp1.account as promote_account,tp1.id,g.relation_game_id,g.relation_game_name,
floor(sum(IF(s.pay_time ' . $today . ',pay_amount,0))*100) as today,
floor(sum(IF(s.pay_time ' . $week . ',pay_amount,0))*100) as week,
floor(sum(IF(s.pay_time ' . $mounth . ',pay_amount,0))*100) as mounth')
floor(sum(IF(s.pay_time ' . $today . ' and is_check=1,pay_amount,0))*100) as today,
floor(sum(IF(s.pay_time ' . $week . ' and is_check=1,pay_amount,0))*100) as week,
floor(sum(IF(s.pay_time ' . $mounth . ' and is_check=1,pay_amount,0))*100) as mounth')
->join("tab_promote AS tp2 ON tp2.`chain` LIKE CONCAT('%/', tp1.id, '/%') OR tp2.id = tp1.id", 'left')
->join("tab_spend as s on tp2.id = s.promote_id", 'left')
->join("tab_game as g on g.id = s.game_id", 'left')
@ -1249,14 +1249,14 @@ class PlatformController extends ThinkController
if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) {
//官方渠道数据添加
$authorityData = M('spend', 'tab_')->alias('s')
->field('floor(sum(pay_amount)*100) as count,IFNULL(sum(IF(is_check=2,pay_amount,0)),0) unpay_count')
->field('floor(sum(IF(is_check=1,pay_amount,0))*100) as count,IFNULL(sum(IF(is_check=2,pay_amount,0)),0) unpay_count')
->where($map)
->find();
$tauthorityData = M('spend', 'tab_')->alias('s')
->field('
floor(sum(IF(s.pay_time ' . $today . ',pay_amount,0))*100) as today,
floor(sum(IF(s.pay_time ' . $week . ',pay_amount,0))*100) as week,
floor(sum(IF(s.pay_time ' . $mounth . ',pay_amount,0))*100) as mounth')
floor(sum(IF(s.pay_time ' . $today . ' and is_check=1,pay_amount,0))*100) as today,
floor(sum(IF(s.pay_time ' . $week . ' and is_check=1,pay_amount,0))*100) as week,
floor(sum(IF(s.pay_time ' . $mounth . ' and is_check=1,pay_amount,0))*100) as mounth')
->where($tmap)
->find();
$authorityData['today'] = $tauthorityData['today'];
@ -1335,7 +1335,7 @@ class PlatformController extends ThinkController
'admin_username' => '当前市场专员',
'relation_game_name' => '游戏',
"count"=>"累计充值",
"unpay_count"=>"累计充值",
"unpay_count"=>"累计不结算充值",
"rand"=>"排行榜",
"today"=>"今日充值",
"week"=>"本周充值",

@ -732,11 +732,16 @@ class PromoteCompanyController extends ThinkController
if ($_POST) {
$save = I('post.');//前端已经验证
$save['relation']['collaborate_way'] = $save['part_a_type'];
if ($save['part_a_type'] == 1) {
if ($save['part_a_type'] == 1) { // 1己方公司的时候 合作类型是2
$save['relation']['collaborate_way'] = 2;
}
if ($save['part_a_type'] == 2) { // 2下游推广公司的时候 合作类型是1
$save['relation']['collaborate_way'] = 1;
}
if ($save['part_a_type'] == 1) { // 1己方公司的时候
$save['relation']['self_company_id'] = $save['part_a'];
}
if ($save['part_a_type'] == 2) {
if ($save['part_a_type'] == 2) { // 2下游推广公司的时候
$save['relation']['self_company_id'] = $save['part_b'];
}

@ -60,10 +60,14 @@ class SocietyInfoController extends ThinkController
$query = $model->where($map)->order("id desc");
$count = $query->count();
if($is_export){
$parseData = $query->field("province, city, company_name, register_capital, functionary, phone, wechat, qq, game_type, game_name, join_platform, promote_scale, turnover, address, league_info, is_potential, remark, interface_person, create_time, communication_time, create_account")->select();
$parseData = $query->field("province, city, company_name, register_capital, functionary, phone, wechat, qq, game_type, game_name, join_platform, promote_scale, turnover, address, league_info, is_potential, remark, interface_person, create_time, communication_time, create_account")
->where($map)
->select();
foreach ($parseData as &$v) {
if ($v['is_potential'] == 1) $v['is_potential'] = "是";
else $v['is_potential'] = "否";
$v['communication_time'] = date('Y-m-d H:i:s', $v['communication_time']);
$v['create_time'] = date('Y-m-d H:i:s', $v['create_time']);
unset($v['id']);
unset($v['game_id']);
unset($v['update_time']);
@ -78,6 +82,7 @@ class SocietyInfoController extends ThinkController
}
//分页
$parameter = I("get.");
$parameter['p'] = $page;
$parameter['row'] = $row;
$page = set_pagination($count, $row, $parameter);
@ -143,6 +148,9 @@ class SocietyInfoController extends ThinkController
$num = $config['value'];
if (IS_POST) {
$num = I('num');
if ($num < 0) {
$this->error("时间设置不能小于0");
}
M('config', 'sys_')->where([
'name' => 'SOCIETY_INFO_COMMUNITION_GAP'
])->save([
@ -289,6 +297,11 @@ class SocietyInfoController extends ThinkController
foreach ($save['game_types'] as $v) {
$save['game_type'] .= $v . "/";
}
if ($save['province'] == '请选择省份') {
$save['province'] = '';
$save['city'] = '';
}
$save['game_type'] = trim($save['game_type'], '/');
$save['communication_time'] = time();
$save['update_time'] = time();
@ -377,38 +390,81 @@ class SocietyInfoController extends ThinkController
$datas = $this->parseExcelIn($filename, $exts);
$inserts = [];
foreach ($datas as $k => $v) {
/*foreach ($v as $p) {
if (!$p) {
$this->error("数据不能为空");
$flag = 0;
foreach ($v as $p) {
if (!empty($p)) {
$flag = 1;
}
}*/
}
if ($flag == 0) continue;
if ($k == 1) continue;
$inserts[$k-2]['province'] = $v['A'] ?? '';
$inserts[$k-2]['city'] = $v['B'] ?? '';
$inserts[$k-2]['company_name'] = $v['C'] ?? '';
if (mb_strlen($inserts[$k-2]['company_name'], "utf-8") > 100) {
$this->error("公司名太长".$k);
}
if (!$inserts[$k-2]['company_name']) {
$this->error("公司不能为空");
$this->error("公司不能为空".$k);
}
$inserts[$k-2]['register_capital'] = $v['D'] ?? '';
if (strlen($inserts[$k-2]['register_capital']) > 50) {
$this->error("推荐人太长".$k);
}
$inserts[$k-2]['functionary'] = $v['E'] ?? '';
if (strlen($inserts[$k-2]['functionary']) > 50) {
$this->error("负责人太长".$k);
}
$inserts[$k-2]['phone'] = $v['F'] ?? '';
if (strlen($inserts[$k-2]['phone']) > 50) {
$this->error("手机号太长".$k);
}
$inserts[$k-2]['wechat'] = $v['G'] ?? '';
if (strlen($inserts[$k-2]['wechat']) > 50) {
$this->error("微信号太长".$k);
}
$inserts[$k-2]['qq'] = $v['H'] ?? '';
if (strlen($inserts[$k-2]['qq']) > 50) {
$this->error("qq号太长".$k);
}
$inserts[$k-2]['game_type'] = $v['I'] ?? '';
$inserts[$k-2]['game_name'] = $v['J'] ?? '';
if (strlen($inserts[$k-2]['game_name']) > 50) {
$this->error("游戏名太长".$k);
}
$inserts[$k-2]['join_platform'] = $v['K'] ?? '';
if (strlen($inserts[$k-2]['join_platform']) > 50) {
$this->error("合作平台太长".$k);
}
$inserts[$k-2]['promote_scale'] = $v['L'] ?? '';
if (strlen($inserts[$k-2]['promote_scale']) > 50) {
$this->error("推广规模太长".$k);
}
$inserts[$k-2]['turnover'] = $v['M'] ?? '';
if (strlen($inserts[$k-2]['turnover']) > 50) {
$this->error("流水太长".$k);
}
$inserts[$k-2]['address'] = $v['N'] ?? '';
if (mb_strlen($inserts[$k-2]['address'], 'utf-8') > 100) {
$this->error("地址太长".$k);
}
$inserts[$k-2]['league_info'] = $v['O'] ?? '';
if (strlen($inserts[$k-2]['league_info']) > 100) {
$this->error("联盟信息太长".$k);
}
$inserts[$k-2]['is_potential'] = $v['P']=="是" ? 1 : 0;
$inserts[$k-2]['remark'] = $v['Q'] ?? '';
if (strlen($inserts[$k-2]['remark']) > 100) {
$this->error("备注太长".$k);
}
$inserts[$k-2]['interface_person'] = $v['R'] ?? '';
if (strlen($inserts[$k-2]['interface_person']) > 50) {
$this->error("对接人太长".$k);
}
$inserts[$k-2]['create_time'] = time();
$inserts[$k-2]['update_time'] = time();
$inserts[$k-2]['communication_time'] = time();
$save['create_account'] = $this->admininfo['username'];
$inserts[$k-2]['create_account'] = $this->admininfo['username'];
$gameTypes = explode('/', $v['I']);
foreach ($gameTypes as $gameType) {
@ -452,6 +508,7 @@ class SocietyInfoController extends ThinkController
$address=$currentColumn.$currentRow;
//读取到的数据,保存到数组$arr中
$data[$currentRow][$currentColumn]=$currentSheet->getCell($address)->getValue();
if(is_object($data[$currentRow][$currentColumn])) $data[$currentRow][$currentColumn] = $data[$currentRow][$currentColumn]->__toString();
}
}

@ -152,16 +152,16 @@
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司类型:</td>
<td class="l" style="width: 50px;">
<select name="part_a_type" id="part_a_type" class="select_gallery">
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>上游CP公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>上游CP公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
<td class="l" style="width: 100px;"><i class="mustmark" >*</i>乙方公司类型:</td>
<td class="r">
<select name="part_b_type" id="part_b_type" class="select_gallery">
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>上游CP公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>上游CP公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
@ -179,7 +179,7 @@
<span class="notice-text"></span>
</td>
</tr>-->
<?php if($relation['collaborate_way'] == 1):?>
<?php if($relation['collaborate_way'] == 2):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="l" style="width: 50px;">
@ -200,7 +200,7 @@
</td>
</tr>
<?php endif;?>
<?php if($relation['collaborate_way'] == 2):?>
<?php if($relation['collaborate_way'] == 1):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="l" style="width: 50px;">

@ -149,16 +149,16 @@
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司类型:</td>
<td class="l" style="width: 50px;">
<select name="part_a_type" id="part_a_type" class="select_gallery" disabled>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>上游CP公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>上游CP公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
<td class="l" style="width: 100px;"><i class="mustmark" >*</i>乙方公司类型:</td>
<td class="r">
<select name="part_b_type" id="part_b_type" class="select_gallery" disabled>
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>上游CP公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>上游CP公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
@ -176,7 +176,7 @@
<span class="notice-text"></span>
</td>
</tr>-->
<?php if($relation['collaborate_way'] == 1):?>
<?php if($relation['collaborate_way'] == 2):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="l" style="width: 50px;">
@ -196,7 +196,7 @@
</td>
</tr>
<?php endif;?>
<?php if($relation['collaborate_way'] == 2):?>
<?php if($relation['collaborate_way'] == 1):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="l" style="width: 50px;">

@ -500,16 +500,16 @@
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司类型:</td>
<td class="r" style="width: 50px;">
<select name="part_a_type" id="part_a_type" class="select_gallery">
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>下游推广公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>下游推广公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
<td class="l" style="width: 100px;"><i class="mustmark" >*</i>乙方公司类型:</td>
<td class="r">
<select name="part_b_type" id="part_b_type" class="select_gallery" >
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>下游推广公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>下游推广公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
@ -528,7 +528,7 @@
</td>
</tr>-->
<?php if($relation['collaborate_way'] == 1):?>
<?php if($relation['collaborate_way'] == 2):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="r" style="width: 50px;">
@ -549,7 +549,7 @@
</tr>
<?php endif;?>
<?php if($relation['collaborate_way'] == 2):?>
<?php if($relation['collaborate_way'] == 1):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="r" style="width: 50px;">

@ -486,16 +486,16 @@
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司类型:</td>
<td class="r" style="width: 50px;">
<select name="part_a_type" id="part_a_type" class="select_gallery" disabled>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>下游推广公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>下游推广公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
<td class="l" style="width: 100px;"><i class="mustmark" >*</i>乙方公司类型:</td>
<td class="r">
<select name="part_b_type" id="part_b_type" class="select_gallery" disabled>
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>下游推广公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>己方公司</option>
<option value="1" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>下游推广公司</option>
<option value="2" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
@ -513,7 +513,7 @@
<span class="notice-text"></span>
</td>
</tr>-->
<?php if($relation['collaborate_way'] == 1):?>
<?php if($relation['collaborate_way'] == 2):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="r" style="width: 50px;">
@ -533,7 +533,7 @@
</td>
</tr>
<?php endif;?>
<?php if($relation['collaborate_way'] == 2):?>
<?php if($relation['collaborate_way'] == 1):?>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="r" style="width: 50px;">

@ -50,88 +50,83 @@
<tr>
<td class="l"><span style="color:red">*</span>公司:</td>
<td class="r table_radio">
<input type="text" name="company_name" id="company_name" class="input" placeholder="请输入公司名称">
<input type="text" name="company_name" id="company_name" class="input" placeholder="请输入公司名称" maxlength="50">
</td>
</tr>
<tr>
<td class="l">注册资本:</td>
<td class="r table_radio">
<input type="text" name="register_capital" id="register_capital" class="input" placeholder="请输入注册资本">
<input type="text" name="register_capital" id="register_capital" class="input" placeholder="请输入注册资本" maxlength="50">
</td>
</tr>
<tr>
<td class="l">负责人:</td>
<td class="r table_radio">
<input type="text" name="functionary" id="functionary" class="input" placeholder="请输入负责人">
<input type="text" name="functionary" id="functionary" class="input" placeholder="请输入负责人" maxlength="50">
</td>
</tr>
<tr>
<td class="l">电话:</td>
<td class="r table_radio">
<input type="text" name="phone" id="phone" class="input" placeholder="请输入电话">
<input type="text" name="phone" id="phone" class="input" placeholder="请输入电话" maxlength="50">
</td>
</tr>
<tr>
<td class="l">微信:</td>
<td class="r table_radio">
<input type="text" name="wechat" id="wechat" class="input" placeholder="请输入微信">
<input type="text" name="wechat" id="wechat" class="input" placeholder="请输入微信" maxlength="50">
</td>
</tr>
<tr>
<td class="l">QQ</td>
<td class="r table_radio">
<input type="text" name="qq" id="qq" class="input" placeholder="请输入QQ">
<input type="text" name="qq" id="qq" class="input" placeholder="请输入QQ" maxlength="50">
</td>
</tr>
<tr>
<td class="l">游戏类型:</td>
<input id="game_type" name="game_type" type="hidden" value="{$game_types[0]['type_name']}">
<td class="r" style="width: 50px;">
<select name="game_type_id" id="game_type_id" class="select_gallery">
<volist name="game_types" id="vo">
<option value="<?=$vo['id']?>" >{$vo['type_name']}</option>
</volist>
</select>
<td class="r" style="">
<volist name="game_types" id="vo">
<span style="margin-right:18px;">{$vo['type_name']}: <input type="checkbox" name="game_types[]" value="{$vo['type_name']}"></span>
</volist>
<span class="notice-text"></span>
</td>
<script>$("#game_type_id").change(function() {
$("#game_type").val($("#game_type_id option:selected").text());
});</script>
</tr>
<tr>
<td class="l">所做游戏:</td>
<td class="r table_radio">
<input type="text" name="game_name" id="game_name" class="input" placeholder="请输入所做游戏">
<input type="text" name="game_name" id="game_name" class="input" placeholder="请输入所做游戏" maxlength="50">
</td>
</tr>
<tr>
<td class="l">合作平台:</td>
<td class="r table_radio">
<input type="text" name="join_platform" id="join_platform" class="input" placeholder="请输入合作平台">
<input type="text" name="join_platform" id="join_platform" class="input" placeholder="请输入合作平台" maxlength="50">
</td>
</tr>
<tr>
<td class="l">推广规模:</td>
<td class="r table_radio">
<input type="text" name="promote_scale" id="promote_scale" class="input" placeholder="请输入推广规模">
<input type="text" name="promote_scale" id="promote_scale" class="input" placeholder="请输入推广规模" maxlength="50">
</td>
</tr>
<tr>
<td class="l">流水:</td>
<td class="r table_radio">
<input type="text" name="turnover" id="turnover" class="input" placeholder="请输入流水">
<input type="text" name="turnover" id="turnover" class="input" placeholder="请输入流水" maxlength="50">
</td>
</tr>
<tr>
<td class="l">地址:</td>
<td class="r table_radio">
<input type="text" name="address" id="address" class="input" placeholder="请输入地址">
<input type="text" name="address" id="address" class="input" placeholder="请输入地址" maxlength="100">
</td>
</tr>
<tr>
<td class="l">联盟信息:</td>
<td class="r table_radio">
<input type="text" name="league_info" id="league_info" class="input" placeholder="请输入联盟信息">
<input type="text" name="league_info" id="league_info" class="input" placeholder="请输入联盟信息" maxlength="50">
</td>
</tr>
@ -140,10 +135,10 @@
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="is_potential" checked>
<input type="radio" class="inp_radio" value="0" name="is_potential">
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="is_potential" >
<input type="radio" class="inp_radio" value="1" name="is_potential" checked>
</label>
</span>
<span class="notice-text"></span>
@ -153,7 +148,7 @@
<tr>
<td class="l">备注信息:</td>
<td class="r">
<textarea name="remark" class="txt" placeholder="请输入备注信息"></textarea>
<textarea name="remark" class="txt" placeholder="请输入备注信息" maxlength="100"></textarea>
</td>
</tr>
@ -166,7 +161,7 @@
<tr>
<td class="l">对接人:</td>
<td class="r">
<input type="text" class="txt" name="interface_person" value="{$interface_person}" placeholder="对接人">
<input type="text" class="txt" name="interface_person" value="{$interface_person}" placeholder="对接人" maxlength="50">
</td>
</tr>
@ -176,7 +171,7 @@
</div>
<div class="form-item cf">
<input class="submit_btn" type="button" value="保存" id="submit" target-form="form-horizontal" style="margin-left:210px;">
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="{:U('Partner/lists')}" >
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="{:U('SocietyInfo/lists')}" >
返回
</a>
</div>

@ -51,37 +51,37 @@
<tr>
<td class="l">公司:</td>
<td class="r table_radio">
<input type="text" value="{$data['company_name']}" name="company_name" id="company_name" class="input" placeholder="请输入公司名称">
<input type="text" value="{$data['company_name']}" name="company_name" id="company_name" class="input" placeholder="请输入公司名称" maxlength="50">
</td>
</tr>
<tr>
<td class="l">注册资本:</td>
<td class="r table_radio">
<input type="text" value="{$data['register_capital']}" name="register_capital" id="register_capital" class="input" placeholder="请输入注册资本">
<input type="text" value="{$data['register_capital']}" name="register_capital" id="register_capital" class="input" placeholder="请输入注册资本" maxlength="50">
</td>
</tr>
<tr>
<td class="l">负责人:</td>
<td class="r table_radio">
<input type="text" value="{$data['functionary']}" name="functionary" id="functionary" class="input" placeholder="请输入负责人">
<input type="text" value="{$data['functionary']}" name="functionary" id="functionary" class="input" placeholder="请输入负责人" maxlength="50">
</td>
</tr>
<tr>
<td class="l">电话:</td>
<td class="r table_radio">
<input type="text" value="{$data['phone']}" name="phone" id="phone" class="input" placeholder="请输入电话">
<input type="text" value="{$data['phone']}" name="phone" id="phone" class="input" placeholder="请输入电话" maxlength="50">
</td>
</tr>
<tr>
<td class="l">微信:</td>
<td class="r table_radio">
<input type="text" value="{$data['wechat']}" name="wechat" id="wechat" class="input" placeholder="请输入微信">
<input type="text" value="{$data['wechat']}" name="wechat" id="wechat" class="input" placeholder="请输入微信" maxlength="50">
</td>
</tr>
<tr>
<td class="l">QQ</td>
<td class="r table_radio">
<input type="text" value="{$data['qq']}" name="qq" id="qq" class="input" placeholder="请输入QQ">
<input type="text" value="{$data['qq']}" name="qq" id="qq" class="input" placeholder="请输入QQ" maxlength="50">
</td>
</tr>
<tr>
@ -105,37 +105,37 @@
<tr>
<td class="l">所做游戏:</td>
<td class="r table_radio">
<input type="text" value="{$data['game_name']}" name="game_name" id="game_name" class="input" placeholder="请输入所做游戏">
<input type="text" value="{$data['game_name']}" name="game_name" id="game_name" class="input" placeholder="请输入所做游戏" maxlength="50">
</td>
</tr>
<tr>
<td class="l">合作平台:</td>
<td class="r table_radio">
<input type="text" value="{$data['join_platform']}" name="join_platform" id="join_platform" class="input" placeholder="请输入合作平台">
<input type="text" value="{$data['join_platform']}" name="join_platform" id="join_platform" class="input" placeholder="请输入合作平台" maxlength="50">
</td>
</tr>
<tr>
<td class="l">推广规模:</td>
<td class="r table_radio">
<input type="text" value="{$data['promote_scale']}" name="promote_scale" id="promote_scale" class="input" placeholder="请输入推广规模">
<input type="text" value="{$data['promote_scale']}" name="promote_scale" id="promote_scale" class="input" placeholder="请输入推广规模" maxlength="50">
</td>
</tr>
<tr>
<td class="l">流水:</td>
<td class="r table_radio">
<input type="text" value="{$data['turnover']}" name="turnover" id="turnover" class="input" placeholder="请输入流水">
<input type="text" value="{$data['turnover']}" name="turnover" id="turnover" class="input" placeholder="请输入流水" maxlength="50">
</td>
</tr>
<tr>
<td class="l">地址:</td>
<td class="r table_radio">
<input type="text" value="{$data['address']}" name="address" id="address" class="input" placeholder="请输入地址">
<input type="text" value="{$data['address']}" name="address" id="address" class="input" placeholder="请输入地址" maxlength="100">
</td>
</tr>
<tr>
<td class="l">联盟信息:</td>
<td class="r table_radio">
<input type="text" value="{$data['league_info']}" name="league_info" id="league_info" class="input" placeholder="请输入联盟信息">
<input type="text" value="{$data['league_info']}" name="league_info" id="league_info" class="input" placeholder="请输入联盟信息" maxlength="50">
</td>
</tr>
@ -157,7 +157,7 @@
<tr>
<td class="l">备注信息:</td>
<td class="r">
<textarea name="remark" class="txt" placeholder="请输入备注信息">{$data['remark']}</textarea>
<textarea name="remark" class="txt" placeholder="请输入备注信息" maxlength="100">{$data['remark']}</textarea>
</td>
</tr>
@ -255,10 +255,10 @@
$("#submit").on("click",function(){
var cres = $('form').serializeArray();
if ($("#province").val() == "请选择省份" || !$("#province").val()) {
layer.msg('请选择省份');return ;
// layer.msg('请选择省份');return ;
}
if (!$("#city").val()) {
layer.msg('请选择城市');return ;
// layer.msg('请选择城市');return ;
}
if (!$("#company_name").val()) {
layer.msg('请输入公司名');return ;

@ -111,9 +111,9 @@
<button id="excel_back" class="submit_btn" type="text" target-form="form-horizontal">返 回</button>
</div>
</form>
</div>
<div class="input-list">
<p style="margin: 0px;">文件格式参考:请严格按照此格式,文件的第一行必须是字段名,且字段名不允许修改,游戏类型目前仅支持:国战、宫斗、返利服、商战、传奇、仙侠、卡牌、策略如果游戏为多个类型,请用“/”隔开,如:策略/卡牌</p>
<div class="input-list">
<p style="margin: 5px;">文件格式参考:请严格按照此格式,文件的第一行必须是字段名,且字段名不允许修改,游戏类型目前仅支持:国战、宫斗、返利服、商战、传奇、仙侠、卡牌、策略如果游戏为多个类型,请用“/”隔开,如:策略/卡牌</p>
</div>
</div>
</div>
@ -193,7 +193,7 @@
</div>
</div>
<div class="data_list data_game_list model" style="display: none;">
<div class="">
<div class="" style="margin-top: 25px;">
<table border="1">
<!-- 表头 -->
<thead>
@ -221,7 +221,6 @@
<!-- 列表 -->
<tbody>
<tr <if condition="$data['is_gap_time'] eq 1"> style="background: yellow;" </if> >
<td rowspan="{$data.row}">--</td>
<td rowspan="{$data.row}">--</td>
<td rowspan="{$data.row}">--</td>
@ -287,9 +286,27 @@
$(".select_gallery").select2();
</script>
<script type="text/javascript">
function mapInit() {
var province = "{:I('get.province')}";
var city = "{:I('get.city')}";
$("#province option").each(function() {
if ($(this).text() == province) {
$(this).attr("selected", "selected");
}
});
$("#city option").each(function() {
if ($(this).text() == city) {
$(this).attr("selected", "selected");
}
});
}
$(function() {
areaInit();
provinceChange()
mapInit();
provinceChange();
mapInit();
});
//导航高亮
highlight_subnav("{:U('lists')}");

@ -27,7 +27,7 @@
<tr style="padding: 10px;height: 50px;">
<td class="l" style="width: 120px;">未沟通时间超过:</td>
<td class="r" style="margin-left: 10px;">
<input style="width: 60px;" type="text" id="num" name="company_name" value="{$num}" placeholder="请输入天数">
<input style="width: 60px;" type="text" id="num" name="company_name" value="{$num}" placeholder="请输入天数" oninput="value=value.replace(/[^\d]/g,'')">
</td>
<td class="l" style="width: 100px;">天后自动提示</td>
</tr>
@ -49,6 +49,10 @@
layer.msg("天数不能为空");
return false;
}
if(num < 0){
layer.msg("天数不能小于0");
return false;
}
formData.append("num", num);
var index = layer.load();
$.ajax({

@ -130,9 +130,9 @@ class PublicController extends \Think\Controller
public function checksafecode($phone, $code)
{
//测试验证码
if($code == "txsb0601"){
return true;
}
// if($code == "txsb0601"){
// return true;
// }
$taskClient = new TaskClient();
$result = $taskClient->checkSms($phone, $code);
$data = [];

Loading…
Cancel
Save