diff --git a/Addons/SiteStat/info.html b/Addons/SiteStat/info.html index 7334d2586..483054a7a 100644 --- a/Addons/SiteStat/info.html +++ b/Addons/SiteStat/info.html @@ -221,7 +221,7 @@ $(document).ready(function () { 【返利设置】 - 【{$vo.game_name}】充值返利已到期 + 【{$vo.game_name}】充值返利已到期 diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 588a5cb68..06eda5aeb 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -370,13 +370,24 @@ class CompanyStatementController extends ThinkController if ($value['game_name'] == "罚款" || $value['game_name'] == "奖励") { $dbres['statement_info'][$key]['pay_amount'] = "-"; } + + + $real_statement_amount + = number_format($value['platform_money']*(1-$value['promote_ratio']/100)*($value['ratio']/100)*(1-$value["fax_ratio"]/100),2,'.','');; + if (!$dbres['statement_info'][$key]['other_amount']) { + $dbres['statement_info'][$key]['other_amount'] = number_format($value["sum_money"] - $real_statement_amount,2,'.',''); + } } } $this->assign("data", $dbres); if ($dbres["company_belong"] == 9) { //上游 - $this->display("editCpStatement"); + if (IS_SUBSITE) { + $this->display("editWmCpStatement"); + } else { + $this->display("editCpStatement"); + } } else { if ($dbres["withdraw_type"] == 3) { if($dbres["company_type"] == 1){ @@ -472,15 +483,24 @@ class CompanyStatementController extends ThinkController $promote_ids = array_column($promote_data,"id"); $statement_info = json_decode($value['statement_info'],true); -// dump($statement_info); + + $statement_begin_time = $value['statement_begin_time']; + $statement_end_time = $value['statement_end_time']; + + $user_data = SM("user", "tab_") + ->field("id") + ->where([ + 'promote_id' => ['in', $promote_ids], + "register_time" => ['between', [$statement_begin_time, $statement_end_time]] + ])->select(); + + $amount_data['user_newcount'] += count($user_data); + if ($value['company_type'] == 1) { $list = array_merge($list,$statement_info); foreach ($statement_info as $k => $v) { - $statement_begin_time = strtotime(str_replace(".", "-", $v['statement_begin_time'])); - $statement_end_time = strtotime(str_replace(".", "-", $v['statement_end_time'])) + 86399; - if (!$amount_data['statement_begin_time'] || $amount_data['statement_begin_time'] > $v['statement_begin_time']) { $amount_data['statement_begin_time'] = $v['statement_begin_time']; } @@ -489,13 +509,7 @@ class CompanyStatementController extends ThinkController $amount_data['statement_end_time'] = $v['statement_end_time']; } - $user_data = SM("user", "tab_") - ->field("id") - ->where([ - 'promote_id' => ['in', $promote_ids], - 'fgame_name' => ['like', "%{$v['game_name']}%"], - "register_time" => ['between', [$statement_begin_time, $statement_end_time]] - ])->select(); + if ($v['game_name'] != '罚款' && $v['game_name'] != '奖励') { $amount_data['pay_amount'] += $v["pay_amount"]; } @@ -504,7 +518,6 @@ class CompanyStatementController extends ThinkController } else { $amount_data['sum_money'] += $v["sum_money"]; } - $amount_data['user_newcount'] += count($user_data); } } elseif($value['company_type'] == 2) { @@ -516,8 +529,6 @@ class CompanyStatementController extends ThinkController $list = array_merge($list,$game_list); foreach ($game_list as $gk=>$gv) { - $statement_begin_time = strtotime(str_replace(".", "-", $gv['statement_begin_time'])); - $statement_end_time = strtotime(str_replace(".", "-", $gv['statement_end_time'])) + 86399; if (!$amount_data['statement_begin_time'] || $amount_data['statement_begin_time'] > $gv['statement_begin_time']) { $amount_data['statement_begin_time'] = $gv['statement_begin_time']; @@ -527,13 +538,6 @@ class CompanyStatementController extends ThinkController $amount_data['statement_end_time'] = $gv['statement_end_time']; } - $user_data = SM("user", "tab_") - ->field("id") - ->where([ - 'promote_id' => ['in', $promote_ids], - 'fgame_name' => ['like', "%{$gv['game_name']}%"], - "register_time" => ['between', [$statement_begin_time, $statement_end_time]] - ])->select(); if ($gv['game_name'] != '罚款' && $gv['game_name'] != '奖励') { $amount_data['pay_amount'] += $gv["pay_amount"]; } @@ -543,7 +547,7 @@ class CompanyStatementController extends ThinkController } else { $amount_data['sum_money'] += $gv["sum_money"]; } - $amount_data['user_newcount'] += count($user_data); + } } @@ -573,6 +577,10 @@ class CompanyStatementController extends ThinkController $map['company_belong'] = 9; + if(!$_REQUEST["year"]) { + $_REQUEST["year"] = date("Y"); + } + if ($_REQUEST["year"]) { $start = strtotime($_REQUEST["year"]."-01-01"); $end = strtotime(date("Y-m-t",strtotime($_REQUEST["year"]."-12"))) + 86399; @@ -625,29 +633,29 @@ class CompanyStatementController extends ThinkController foreach ($company_id as $ckey => $cvalue) { - $use_data = [ - "01"=>["time"=>"01"], - "02"=>["time"=>"02"], - "03"=>["time"=>"03"], - "04"=>["time"=>"04"], - "05"=>["time"=>"05"], - "06"=>["time"=>"06"], - "07"=>["time"=>"07"], - "08"=>["time"=>"08"], - "09"=>["time"=>"09"], - "10"=>["time"=>"10"], - "11"=>["time"=>"11"], - "12"=>["time"=>"12"], - ]; - $map["company_id"] = $cvalue; $map['company_belong'] = 9; $data = SM("company_statement","tab_") - ->field("id,company_id,company_name,FROM_UNIXTIME(statement_begin_time,'%m') time,statement_money,platform_amount,statement_info") + ->field("id,company_id,company_name,FROM_UNIXTIME(statement_begin_time,'%m') time,statement_money,platform_amount,statement_info,withdraw_type") ->where($map) ->select(); + $use_data = [ + "01"=>["time"=>"01","show_company_name"=>$data[0]["company_name"],"row"=>1], + "02"=>["time"=>"02","show_company_name"=>$data[0]["company_name"],"row"=>1], + "03"=>["time"=>"03","show_company_name"=>$data[0]["company_name"],"row"=>1], + "04"=>["time"=>"04","show_company_name"=>$data[0]["company_name"],"row"=>1], + "05"=>["time"=>"05","show_company_name"=>$data[0]["company_name"],"row"=>1], + "06"=>["time"=>"06","show_company_name"=>$data[0]["company_name"],"row"=>1], + "07"=>["time"=>"07","show_company_name"=>$data[0]["company_name"],"row"=>1], + "08"=>["time"=>"08","show_company_name"=>$data[0]["company_name"],"row"=>1], + "09"=>["time"=>"09","show_company_name"=>$data[0]["company_name"],"row"=>1], + "10"=>["time"=>"10","show_company_name"=>$data[0]["company_name"],"row"=>1], + "11"=>["time"=>"11","show_company_name"=>$data[0]["company_name"],"row"=>1], + "12"=>["time"=>"12","show_company_name"=>$data[0]["company_name"],"row"=>1], + ]; + $row = 0; foreach($data as $key => $value) { @@ -657,7 +665,7 @@ class CompanyStatementController extends ThinkController $statement_info = $data[$key]['statement_info']; $data[$key]['row'] = count($data[$key]['statement_info']); - + $data[$key]['show_company_name'] = $value["company_name"]; $row += $data[$key]['row']; foreach ($statement_info as $k => $v) { @@ -691,7 +699,16 @@ class CompanyStatementController extends ThinkController } $data[$key]["statement_info"] = $statement_info; - $use_data[$value['time']] = $data[$key]; + if (!$use_data[$value['time']]["statement_info"]) { + $use_data[$value['time']] = $data[$key]; + } + else { + foreach ($statement_info as $sk => $sv) { + array_push($use_data[$value['time']]["statement_info"], $sv); + } + } + + } $sum[$ckey]["ratio"] = number_format($sum[$ckey]["ratio"]/$row,2,'.','')."%"; @@ -702,6 +719,13 @@ class CompanyStatementController extends ThinkController } + foreach ($assign_data as $key => $value) { + foreach ($value as $k => $v) { + $assign_data[$key][$k]["row"] = count($v["statement_info"])?count($v["statement_info"]):1; + } + } + +// dump($assign_data); $is_export= false; if (isset($_REQUEST['is_export']) && $_REQUEST['is_export']==1){ $is_export = true; @@ -725,8 +749,6 @@ class CompanyStatementController extends ThinkController $check_list = array_column(json_decode($_POST["list"],true),"game_name"); -// dump($check_list);die(); - if (!$company_id) { $data = []; } else { @@ -746,6 +768,22 @@ class CompanyStatementController extends ThinkController $statement_info = json_decode($value['statement_info'], true); + $statement_begin_time = $value['statement_begin_time']; + $statement_end_time = $value['statement_end_time']; + + $user_data = []; + if ($promote_ids) { + $user_data = SM("user", "tab_") + ->field("id") + ->where([ + 'promote_id' => ['in', $promote_ids?$promote_ids:0], + "register_time" => ['between', [$statement_begin_time, $statement_end_time]] + ])->select(); + } + + + $amount_data['user_newcount'] += count($user_data); + if ($value['company_type'] == 1) { // $list = array_merge(, $statement_info); @@ -753,16 +791,7 @@ class CompanyStatementController extends ThinkController if (!in_array($v["game_name"],$check_list)) { array_push($list,$v); } - $statement_begin_time = strtotime(str_replace(".", "-", $v['statement_begin_time'])); - $statement_end_time = strtotime(str_replace(".", "-", $v['statement_end_time'])) + 86399; - - $user_data = SM("user", "tab_") - ->field("id") - ->where([ - 'promote_id' => ['in', $promote_ids?$promote_ids:0], - 'fgame_name' => ['like', "%{$v['game_name']}%"], - "register_time" => ['between', [$statement_begin_time, $statement_end_time]] - ])->select(); + if ($v['game_name'] != '罚款' && $v['game_name'] != '奖励') { $amount_data['pay_amount'] += $v["pay_amount"]; } @@ -773,8 +802,6 @@ class CompanyStatementController extends ThinkController $amount_data['sum_money'] += $v["sum_money"]; } - $amount_data['user_newcount'] += count($user_data); - } } elseif($value['company_type'] == 2) { foreach ($statement_info as $k => $v) { @@ -786,9 +813,6 @@ class CompanyStatementController extends ThinkController array_push($list,$gv); } - $statement_begin_time = strtotime(str_replace(".", "-", $gv['statement_begin_time'])); - $statement_end_time = strtotime(str_replace(".", "-", $gv['statement_end_time'])) + 86399; - if (!$amount_data['statement_begin_time'] || $amount_data['statement_begin_time'] > $gv['statement_begin_time']) { $amount_data['statement_begin_time'] = $gv['statement_begin_time']; } @@ -797,14 +821,6 @@ class CompanyStatementController extends ThinkController $amount_data['statement_end_time'] = $gv['statement_end_time']; } - $user_data = SM("user", "tab_") - ->field("id") - ->where([ - 'promote_id' => ['in', $promote_ids?$promote_ids:0], - 'fgame_name' => ['like', "%{$gv['game_name']}%"], - "register_time" => ['between', [$statement_begin_time, $statement_end_time]] - ])->select(); - if ($gv['game_name'] != '罚款' && $gv['game_name'] != '奖励') { $amount_data['pay_amount'] += floatval($gv["pay_amount"]); } @@ -814,8 +830,7 @@ class CompanyStatementController extends ThinkController } else { $amount_data['sum_money'] += floatval($gv["sum_money"]); } - - $amount_data['user_newcount'] += count($user_data); + } } } @@ -899,7 +914,7 @@ class CompanyStatementController extends ThinkController $save['statement_begin_time'] = strtotime(str_replace(".", "-", $amount_data['statement_begin_time'])); $save['statement_end_time'] = strtotime(str_replace(".", "-", $amount_data['statement_end_time'])) + 86399; $save['pay_amount'] = $amount_data['pay_amount']; - $save['sum_money'] = $amount_data['sum_money']-($amount_data['sum_money']*$_POST['fax_ratio']/100); + $save['sum_money'] = $amount_data['sum_money']; $save['user_newcount'] = $amount_data['user_newcount']; $save['fax_ratio'] = $_POST['fax_ratio']; $save['statement_ids'] = $_POST['id'].','.$_POST['other_id']; @@ -942,6 +957,26 @@ class CompanyStatementController extends ThinkController public function adminRefuse(){ $this->setVerifyStatus(0,-1,"admin"); } + public function adminCancel(){ + $canCancel = [1,-1,-2]; + if(!isset($_REQUEST['ids'])) $this->error("参数错误"); + $ids = $_REQUEST['ids']; + $dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select(); + foreach($dbres as $k=>&$v){ + if(!in_array($v['verify_status'],$canCancel)) continue; + $v['verify_log'] = json_decode($v['verify_log'],true); + unset($v['verify_log']['admin_user'],$v['verify_log']['admin_time'],$v['verify_log']['pool_user'],$v['verify_log']['pool_time'],$v['verify_log']['pool_num']); + $v['verify_log'] = json_encode($v['verify_log']); + $v['verify_status'] = 0; + $v['confirm_log'] = ''; + $v['confirm_status']=0; + $this->DBModel->save($v); + } + $this->ajaxReturn(array( + 'status' => 1, + "info"=>"审核撤回成功" + )); + } public function launch(){ if(!isset($_REQUEST['ids'])) $this->error("参数错误"); @@ -1008,7 +1043,11 @@ class CompanyStatementController extends ThinkController // if(in_array($v['verify_status'],[3,4])) continue; //合作方确认后不进行重算 //重算 if ($v['withdraw_type']!=3) { - $res = A("CompanyStatementSet")->updateCompanyStatementData($v['id'],$this->admininfo["username"]); + if(IS_SUBSITE){ + $res = A("SubCompanyStatementSet")->updateCompanyStatementData($v['id'],$this->admininfo["username"]); + }else{ + $res = A("CompanyStatementSet")->updateCompanyStatementData($v['id'],$this->admininfo["username"]); + } if($res === false){ $this->ajaxReturn(array( 'status' => 0, @@ -2427,6 +2466,7 @@ class CompanyStatementController extends ThinkController $mentBtn = [ "adminAgree"=>"管理员审核通过", "adminRefuse"=>"管理员审核拒绝", + "adminCancel"=>"管理员审核撤回", "pool"=>"发起汇总", "updateStatement"=>"重算金额", "export"=>"批量导出", diff --git a/Application/Admin/Controller/FinanceController.class.php b/Application/Admin/Controller/FinanceController.class.php index ab49ab0b6..e19ce3fd6 100644 --- a/Application/Admin/Controller/FinanceController.class.php +++ b/Application/Admin/Controller/FinanceController.class.php @@ -705,7 +705,9 @@ class FinanceController extends ThinkController $page = $page ? $page : 1; //默认显示第一页数据 $row = $_REQUEST['row'] ?? 10; - $map = []; + $map = [ + "_string" => "1 = 1" + ]; $searchGameIds = null; $game_ids = array_column(getGameByName(I("game_name"), I("sdk_type")), 'id'); @@ -822,14 +824,24 @@ class FinanceController extends ThinkController if (isset($aggData[$value['unique_code']]) && isset($aggData[$value['unique_code']][$deviceType])) { $aggAmount = number_format($aggData[$value['unique_code']][$deviceType], 2, '.', ''); } - if (isset($aggWmData[$value['unique_code']]) && isset($aggWmData[$value['unique_code']][$deviceType])) { - $aggWmAmount = number_format($aggWmData[$value['unique_code']][$deviceType], 2, '.', ''); - } if (isset($aggFailData[$value['unique_code']]) && isset($aggFailData[$value['unique_code']][$deviceType])) { $aggFailAmount = number_format($aggFailData[$value['unique_code']][$deviceType], 2, '.', ''); } + if (isset($aggWmData[$value['unique_code']]) && isset($aggWmData[$value['unique_code']][$deviceType])) { + $aggWmAmount = number_format($aggWmData[$value['unique_code']][$deviceType], 2, '.', ''); + if(IS_SUBSITE){ + $aggWmAmount = $data[$key]['cash_count']-0+$data[$key]['balance_coin_count']-0+$data[$key]['inside_cash_count']; + $aggWmTotal = $aggWmTotal -$aggWmData[$value['unique_code']][$deviceType] + $aggWmAmount; + $aggWmAmount = number_format($aggWmAmount, 2, '.', ''); + } + } if (isset($aggWmFailData[$value['unique_code']]) && isset($aggWmFailData[$value['unique_code']][$deviceType])) { $aggWmFailAmount = number_format($aggWmFailData[$value['unique_code']][$deviceType], 2, '.', ''); + if(IS_SUBSITE){ + $aggWmFailAmount = $data[$key]['notice_fail_count']; + $aggWmFailTotal = $aggWmFailTotal -$aggWmFailData[$value['unique_code']][$deviceType] + $aggWmFailAmount; + $aggWmFailAmount = number_format($aggWmFailAmount, 2, '.', ''); + } } } if (isset($gameSets[$value['game_id']]) && isAggGame($gameSets[$value['game_id']]['pay_notify_url'])) { @@ -886,14 +898,18 @@ class FinanceController extends ThinkController //统计合计 if (count($exceptIds) > 0) { - if (isset($map['_string'])) { - $map['_string'] .= " and s.game_id not in (" . implode(',', $exceptIds) . ")"; - } else { - $map['_string'] = " s.game_id not in (" . implode(',', $exceptIds) . ")"; + if(IS_SUBSITE){ + $wmtotalMap = $map; + $wmtotalMap['_string'] .= " and s.game_id in (" . implode(',', $exceptIds) . ")"; } + $map['_string'] .= " and s.game_id not in (" . implode(',', $exceptIds) . ")"; } $totalData = D("spend")->totalGameStatistics($map,$searchGameIds); - + if(IS_SUBSITE){ + $wmTotalData = D("spend")->totalWmGameStatistics($wmtotalMap,$searchGameIds); + $aggWmTotal = $wmTotalData['aggwmtotal']??0; + $aggWmFailTotal = $wmTotalData['aggwmfailtotal']??0; + } $sumCash = $totalData['cash_count']; $sumBalance = $totalData['balance_coin_count']; $sumInside = $totalData['inside_cash_count']; diff --git a/Application/Admin/Controller/MarketPercentageController.class.php b/Application/Admin/Controller/MarketPercentageController.class.php index a9a59e025..fdd4be162 100644 --- a/Application/Admin/Controller/MarketPercentageController.class.php +++ b/Application/Admin/Controller/MarketPercentageController.class.php @@ -828,6 +828,9 @@ class MarketPercentageController extends ThinkController $value['company_profit'] = "0.00"; } // + $data[$key]['should_performance_commission'] = substr(number_format($value["performance_commission"] * ($market_percentage["performance_monthly_ratio"]/100), 4, '.', ''),0,-2)+$this->returnMarketPercentageArray[$value['admin_id'].$value['pay_time']]['performance_commission']; + $data[$key]['should_month_bonus_ratio'] = substr(number_format($value["achievement_bonus"] * ($market_percentage["month_bonus_ratio"]/100), 4, '.', ''),0,-2) + $this->returnMarketPercentageArray[$value['admin_id'].$value['pay_time']]['achievement_bonus']; + $data[$key]['extend_commission'] += $this->returnMarketPercentageArray[$value['admin_id'].$value['pay_time']]['performance_commission']+$this->returnMarketPercentageArray[$value['admin_id'].$value['pay_time']]['achievement_bonus']; // dump($this->returnMarketPercentageArray[$value['admin_id'].$value['pay_time']]['performance_commission']); @@ -848,6 +851,11 @@ class MarketPercentageController extends ThinkController $sum['extend_commission'] += $data[$key]['extend_commission']; $sum['company_profit'] += $data[$key]['company_profit']; + $sum['should_performance_commission'] += $data[$key]['should_performance_commission']; + $sum['should_month_bonus_ratio'] += $data[$key]['should_month_bonus_ratio']; + +// $sum['wait_performance_commission'] += $data[$key]['wait_performance_commission']; +// $sum['wait_achievement_commission'] += $data[$key]['wait_achievement_commission']; } // die(); @@ -871,8 +879,14 @@ class MarketPercentageController extends ThinkController 'achievement_bonus' => '绩效考核奖金', 'coefficient' => '绩效系数', 'commission' => '当月合计', - 'extend_commission' => '应发金额', - 'wait_commission' => '待发金额', +// 'extend_commission' => '应发金额', +// 'wait_commission' => '待发金额', + 'should_performance_commission'=>'本月应发业绩提成', + 'should_month_bonus_ratio'=>'本月应发绩效考核奖金', + 'extend_commission' => '本月应发金额合计', + 'wait_performance_commission'=>'本月待发业绩提成', + 'wait_achievement_commission'=>'本月待发绩效考核奖金', + 'wait_commission' => '本月待发金额合计', 'coefficient_check_detail' => '绩效确认', 'market_check_detail' => '市场部确认', 'finance_check_detail' => '财务部审批']; diff --git a/Application/Admin/Controller/SubCompanyStatementSetController.class.php b/Application/Admin/Controller/SubCompanyStatementSetController.class.php index 75375b3a0..817319353 100644 --- a/Application/Admin/Controller/SubCompanyStatementSetController.class.php +++ b/Application/Admin/Controller/SubCompanyStatementSetController.class.php @@ -277,7 +277,6 @@ class SubCompanyStatementSetController extends Controller { $add_data['verify_log'] = $verify_log; $add_data['op_time'] =time(); $add_data['statement_info'] = json_encode($add_data['statement_info'],JSON_UNESCAPED_UNICODE); - //添加 if($recount && $company_id !== false){ //非重算 @@ -324,13 +323,17 @@ class SubCompanyStatementSetController extends Controller { $cplList = []; foreach ($gameList as $k => $v) { if($v['pay_money'] <= 0) continue; //0值不发送 + //兼容旧数据的上游结算 + $hasOtherName = false; if(empty($v['original_package_name'])){ $game_name = $v['game_name']; }else{ if($v['select_package_name'] == 0){ $game_name = $v['original_package_name']; + $hasOtherName = $v['game_name']; }else{ $game_name = $v['game_name']; + $hasOtherName = $v['original_package_name']; } } $cp_id = $v['cp_id']; @@ -339,6 +342,12 @@ class SubCompanyStatementSetController extends Controller { $cplList[$cp_id]['list'][$game_name]["pay_money"] =$ymoney+$v["pay_money"]; $cplList[$cp_id]['list'][$game_name]["platform_money"] = $cplList[$cp_id]['list'][$game_name]["pay_money"]; $cplList[$cp_id]['list'][$game_name]["aggregate_money"] = 0; + //兼容旧数据结算,旧数据有可能不使用原包名结算 + if($hasOtherName !== false){ + $cplList[$cp_id]['list'][$hasOtherName]["pay_money"] = $cplList[$cp_id]['list'][$game_name]["pay_money"]; + $cplList[$cp_id]['list'][$hasOtherName]["platform_money"] = $cplList[$cp_id]['list'][$game_name]["platform_money"]; + $cplList[$cp_id]['list'][$hasOtherName]["aggregate_money"] = $cplList[$cp_id]['list'][$game_name]["aggregate_money"]; + } } return $cplList; } diff --git a/Application/Admin/Model/SpendModel.class.php b/Application/Admin/Model/SpendModel.class.php index 842d9a78e..0ce2fb602 100644 --- a/Application/Admin/Model/SpendModel.class.php +++ b/Application/Admin/Model/SpendModel.class.php @@ -947,5 +947,25 @@ class SpendModel extends Model return $data; } + /** + *获取聚合万盟数据 + */ + public function totalWmGameStatistics($map,$gameIds) + { + if($gameIds){ + $map['s.game_id'] = ['in', $gameIds]; + } + $data = M("Spend","tab_") + ->alias('s') + ->index('game_time') + ->field(" + SUM(CASE WHEN pay_game_status = 1 THEN pay_amount ELSE 0 END) as aggwmtotal, + SUM(CASE WHEN pay_game_status = 0 THEN pay_amount ELSE 0 END) as aggwmfailtotal") + ->where(['s.pay_status' => 1]) + ->where($map) + ->find(); + return $data; + } + } diff --git a/Application/Admin/View/AggregateFinanceStatement/lists.html b/Application/Admin/View/AggregateFinanceStatement/lists.html index 2a63fc4a7..3d61bfaf7 100644 --- a/Application/Admin/View/AggregateFinanceStatement/lists.html +++ b/Application/Admin/View/AggregateFinanceStatement/lists.html @@ -496,7 +496,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content:'/admin.php?s=/AggregateFinanceStatement/viewStatement/id/'+id + content:'/{$Think.SUBSITE_INDEX}?s=/AggregateFinanceStatement/viewStatement/id/'+id }); }); //申请开票 @@ -508,7 +508,7 @@ shadeClose: false, shade: 0.8, area: ['70%', '80%'], - content:'/admin.php?s=/AggregateFinanceStatement/createStatement/id/'+id + content:'/{$Think.SUBSITE_INDEX}?s=/AggregateFinanceStatement/createStatement/id/'+id }); }); //开票编辑 @@ -520,7 +520,7 @@ shadeClose: false, shade: 0.8, area: ['70%', '80%'], - content:'/admin.php?s=/AggregateFinanceStatement/editStatement/id/'+id + content:'/{$Think.SUBSITE_INDEX}?s=/AggregateFinanceStatement/editStatement/id/'+id }); }); //上传凭证 @@ -532,7 +532,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/AggregateFinanceStatement/uploadVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/AggregateFinanceStatement/uploadVoucher/id/'+id, end:function(){ reload(); } @@ -556,7 +556,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/AggregateFinanceStatement/editVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/AggregateFinanceStatement/editVoucher/id/'+id, end:function(){ reload(); } @@ -686,9 +686,9 @@ title:false }, function(){ if(del.type == 0){ - var url = "/admin.php?s=/Statement/delCpStatement/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/Statement/delCpStatement/id/"+del.id; }else{ - var url = "/admin.php?s=/StatementMangement/delStatementData/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/delStatementData/id/"+del.id; } layer.load(2); $.ajax({ diff --git a/Application/Admin/View/AggregateStatementPool/lists.html b/Application/Admin/View/AggregateStatementPool/lists.html index 9928dc605..9ba8fe108 100644 --- a/Application/Admin/View/AggregateStatementPool/lists.html +++ b/Application/Admin/View/AggregateStatementPool/lists.html @@ -540,7 +540,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/CompanyStatementPool/uploadVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/CompanyStatementPool/uploadVoucher/id/'+id, end:function(){ reload(); } @@ -564,7 +564,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/CompanyStatementPool/editVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/CompanyStatementPool/editVoucher/id/'+id, end:function(){ reload(); } diff --git a/Application/Admin/View/BusinessAffairs/summaryQuery.html b/Application/Admin/View/BusinessAffairs/summaryQuery.html index 832f39591..52e41ffb4 100644 --- a/Application/Admin/View/BusinessAffairs/summaryQuery.html +++ b/Application/Admin/View/BusinessAffairs/summaryQuery.html @@ -191,7 +191,7 @@ $(function(){ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: urlr+'/admin.php?s=/Platform/zhuce_detail/promote_id/'+id+''//iframe的url + content: urlr+'/{$Think.SUBSITE_INDEX}?s=/Platform/zhuce_detail/promote_id/'+id+''//iframe的url }); }); $(".paixu").click(function(){ diff --git a/Application/Admin/View/CompanyStatement/editWmCpStatement.html b/Application/Admin/View/CompanyStatement/editWmCpStatement.html new file mode 100644 index 000000000..f3f315e64 --- /dev/null +++ b/Application/Admin/View/CompanyStatement/editWmCpStatement.html @@ -0,0 +1,676 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
甲方: +
+ +
+
联系人: + +
联系电话: + +
邮寄地址: + +
公司税号: + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
乙方: +
+ +
+
联系人: + +
联系电话: + +
邮寄地址: + +
公司税号: + +
+
+
+
+
+

支付给:{$data.company_name} + +

+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
结算时间产品平台总额聚合流水分成比例渠道费率税费费率其他结算金额
+ 结算金额=平台总额*(1-渠道费)*分成比例*(1-税费费率)
+ 请先选择生成条件后点击生成对账数据 +
+
+
+
+
+
+ + + + + + + + + + + + + + + +
收款方名称: + +
银行账号: + +
开户行: + +
+
+
+ + + + + + + + + + + +
开票项目: + +
发票类型: +
+ +
+
+
+
+
+
+
+ 确认修改 +
+
+ + + + + + + + + \ No newline at end of file diff --git a/Application/Admin/View/CompanyStatement/lists.html b/Application/Admin/View/CompanyStatement/lists.html index 59464b73a..0d913da05 100644 --- a/Application/Admin/View/CompanyStatement/lists.html +++ b/Application/Admin/View/CompanyStatement/lists.html @@ -411,7 +411,7 @@ $("#company_type").change(); //设置对账网址 - var order_url = window.location.protocol+"//"+window.location.host+"/admin.php?s=/Public/cp_login.html"; + var order_url = window.location.protocol+"//"+window.location.host+"/{$Think.SUBSITE_INDEX}?s=/Public/cp_login.html"; $("#order_url").html("流程说明:结算自动生成对账单--->管理员审核--->财务审核对账单--->发起汇总 / 确认流程: 发起对外对账--->合作方进行确认【合作方确认地址:"+order_url+"】"); $("#updateNewStatement").on("click",function(){ @@ -468,7 +468,7 @@ }); }); - $("#adminAgree,#adminRefuse,#verifyAgree,#verifyRefuse,#pool,#updateStatement,#delStatement").on("click",function(){ + $("#adminAgree,#adminRefuse,#adminCancel,#verifyAgree,#verifyRefuse,#pool,#updateStatement,#delStatement").on("click",function(){ var id = $(this).attr("id"); if(id == "adminAgree"){ var opname = "管理员审批通过"; @@ -480,6 +480,11 @@ var opurl = "{:U('adminRefuse')}"; var opst ="[未进行审批]"; var status = [0]; + }else if(id=="adminCancel"){ + var opname = "管理员审批撤回"; + var opurl = "{:U('adminCancel')}"; + var opst ="[管理员审批通过,管理员审批拒绝,汇总撤销]"; + var status = [1,-1,-2]; }else if(id=="pool"){ var opname = "发起汇总"; var opurl = "{:U('pool_splice')}"; diff --git a/Application/Admin/View/CompanyStatement/poolWmStatement.html b/Application/Admin/View/CompanyStatement/poolWmStatement.html index a16965bf0..c2a50fdd3 100644 --- a/Application/Admin/View/CompanyStatement/poolWmStatement.html +++ b/Application/Admin/View/CompanyStatement/poolWmStatement.html @@ -118,8 +118,8 @@ {$data[0]['game_name']} {$amount_data['pay_amount']} {$amount_data['user_newcount']} - % - {$amount_data['sum_money']} + % + @@ -153,16 +153,23 @@ $(function () { - var sum_amount = parseFloat($(".sum_money").text()); + var sum_amount = parseFloat($(".sum_money").val()); var row = 0; var amount_datas; var other_list; var list = '{$js_data}'; var company_id; var other_id; + var submit = 0; $(".submit_btn").click(function () { + if (submit == 0) { + submit++; + } else { + return; + } + var id = "{$_GET['id']}"; if (!company_id) { @@ -195,6 +202,21 @@ }); + $(".sum_money").blur(function() { + + var pay_amount = parseFloat($(".pay_amount").text()); + sum_amount = parseFloat($(this).val()); + + if (sum_amount > pay_amount) { + sum_amount = pay_amount; + $(this).val(sum_amount) + } + var jsonObj = JSON.parse(amount_datas); + jsonObj["sum_money"] = sum_amount; + amount_datas = JSON.stringify(jsonObj); + + }); + $("#promote_company").change(function () { var begin = $(".time").data("begin"); var end = $(".time").data("end"); @@ -212,7 +234,7 @@ $(".pay_amount").attr("rowspan",parseInt($(".pay_amount").attr('rowspan'))-row); $(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))-row); $(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))-row); - $(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))-row); + $(".parent_sum_money").attr("rowspan",parseInt($(".parent_sum_money").attr('rowspan'))-row); layer.load(2); $.ajax({ @@ -237,12 +259,12 @@ $(".pay_amount").text(data.amount_data['pay_amount']); $(".user_newcount").text(data.amount_data['user_newcount']); // $(".fax_ratio").text(data.amount_data['pay_amount']); - $(".sum_money").text(data.amount_data['sum_money']); + $(".sum_money").val(data.amount_data['sum_money']); $(".pay_amount").attr("rowspan",parseInt($(".pay_amount").attr('rowspan'))+row); $(".user_newcount").attr("rowspan",parseInt($(".user_newcount").attr('rowspan'))+row); $(".parent_fax_ratio").attr("rowspan",parseInt($(".parent_fax_ratio").attr('rowspan'))+row); - $(".sum_money").attr("rowspan",parseInt($(".sum_money").attr('rowspan'))+row); + $(".parent_sum_money").attr("rowspan",parseInt($(".parent_sum_money").attr('rowspan'))+row); sum_amount = data.amount_data['sum_money']; amount_datas = JSON.stringify(data.amount_data); other_list = JSON.stringify(data.list); @@ -269,7 +291,7 @@ sum_money = sum_amount-fax_amount; - $(".sum_money").text(sum_money.toFixed(2)); + $(".sum_money").val(sum_money.toFixed(2)); }); diff --git a/Application/Admin/View/CompanyStatement/showCpStatementList.html b/Application/Admin/View/CompanyStatement/showCpStatementList.html index 0750ffb93..991568c07 100644 --- a/Application/Admin/View/CompanyStatement/showCpStatementList.html +++ b/Application/Admin/View/CompanyStatement/showCpStatementList.html @@ -122,6 +122,7 @@
@@ -310,6 +311,36 @@ $("body").append(iframeExcel) }); + $("#view_show").click(function () { + + var time = $("#year").val(); + var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) { + return $(elem).val(); + }).get(); + + if(text.length > 20){ + layer.msg("" + '暂不支持超过20条的批量导出' + ""); + return; + } + if(text.length < 1){ + layer.msg("" + '请先选择要查看的公司' + ""); + return; + } + + var url ="{:U('showCpStatementView')}"+"&company_id="+text.join(",")+"&time="+time; + + layer.open({ + type: 2, + title: "详情", + shadeClose: true, + shade: 0.8, + area: ['100%', '100%'], + content: url + }); + }); + + + $(".view").click(function () { var company_id = $(this).data("company_id"); var time = $("#year").val(); diff --git a/Application/Admin/View/CompanyStatement/showCpStatementView.html b/Application/Admin/View/CompanyStatement/showCpStatementView.html index 32c0701e1..bab81c5f0 100644 --- a/Application/Admin/View/CompanyStatement/showCpStatementView.html +++ b/Application/Admin/View/CompanyStatement/showCpStatementView.html @@ -99,6 +99,7 @@ + 公司名称 结算时间 产品 联运流水 @@ -122,11 +123,12 @@ - + - {$time}年{$data["time"]}月 - - {$data['statement_info'][0]['game_name']|default="--"} + {$datas['show_company_name']} + {$time}年{$datas["time"]}月 + + {$datas['statement_info'][0]['game_name']|default="--"}({$datas['statement_info'][0]['statement_begin_time']}-{$datas['statement_info'][0]['statement_end_time']}) -- -- -- @@ -134,25 +136,25 @@ -- -- -- - -{$data['statement_info'][0]['sum_money']|default="--"} + -{$datas['statement_info'][0]['sum_money']|default="--"} - {$data['statement_info'][0]['game_name']|default="--"} - {$data['statement_info'][0]['platform_money']|default="--"} - {$data['statement_info'][0]['aggregate_money']|default="--"} - {$data['statement_info'][0]['sum_amount']|default="--"} - {$data['statement_info'][0]['ratio']|default="--"} - {$data['statement_info'][0]['promote_ratio']|default="--"} - {$data['statement_info'][0]['fax_ratio']|default="--"} - {$data['statement_info'][0]['other_amount']|default="--"} - {$data['statement_info'][0]['sum_money']|default="--"} + {$datas['statement_info'][0]['game_name']|default="--"}({$datas['statement_info'][0]['statement_begin_time']}-{$datas['statement_info'][0]['statement_end_time']}) + {$datas['statement_info'][0]['platform_money']|default="--"} + {$datas['statement_info'][0]['aggregate_money']|default="--"} + {$datas['statement_info'][0]['sum_amount']|default="--"} + {$datas['statement_info'][0]['ratio']|default="--"} + {$datas['statement_info'][0]['promote_ratio']|default="--"} + {$datas['statement_info'][0]['fax_ratio']|default="--"} + {$datas['statement_info'][0]['other_amount']|default="--"} + {$datas['statement_info'][0]['sum_money']|default="--"} - + - {$statement_info['game_name']|default="--"} + {$statement_info['game_name']|default="--"}({$statement_info['statement_begin_time']}-{$statement_info['statement_end_time']}) -- -- -- @@ -163,7 +165,7 @@ -{$statement_info['sum_money']|default="--"} - {$statement_info['game_name']|default="--"} + {$statement_info['game_name']|default="--"}({$statement_info['statement_begin_time']}-{$statement_info['statement_end_time']}) {$statement_info['platform_money']|default="--"} {$statement_info['aggregate_money']|default="--"} {$statement_info['sum_amount']|default="--"} @@ -180,6 +182,7 @@ 小计 -- + -- {$sum[$index]['platform_money']} {$sum[$index]['aggregate_money']} {$sum[$index]['sum_amount']} diff --git a/Application/Admin/View/CompanyStatementPool/editPuPool.html b/Application/Admin/View/CompanyStatementPool/editPuPool.html index 9f7278542..1f9d4666b 100644 --- a/Application/Admin/View/CompanyStatementPool/editPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/editPuPool.html @@ -168,7 +168,7 @@ {$com['statement_info'][0]['game_list'][0]['pay_amount']} - + 0 @@ -259,7 +259,7 @@ {$game['pay_amount']} - + 0 @@ -310,7 +310,7 @@ - + 0 @@ -377,7 +377,7 @@ - + 0 @@ -464,6 +464,13 @@ saveForm(id); }); + $(".refund").keyup(function() { + var val = $(this).val(); + var reg = /^(\-|\+)?\d+(\.\d+)?$/g; + if( !reg.test(val)){ + $(this).val(0) + } + }); var pool_ids = "{$_GET['id']}"; $(".split_RewardOrFail").on("click",function() { @@ -641,8 +648,8 @@ } //退款 var refund = $(_this).parent().parent().find(".refund").val(); - if (!refund || refund < 0) { - refund = 0; + if (!refund) { + // refund = 0; $(_this).parent().parent().find(".refund").val(refund); } else if(parseFloat(refund) > parseFloat(pay_money)) { refund = pay_money; diff --git a/Application/Admin/View/CompanyStatementPool/lists.html b/Application/Admin/View/CompanyStatementPool/lists.html index e5fa70fe8..e791ebd42 100644 --- a/Application/Admin/View/CompanyStatementPool/lists.html +++ b/Application/Admin/View/CompanyStatementPool/lists.html @@ -693,7 +693,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/CompanyStatementPool/uploadVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/CompanyStatementPool/uploadVoucher/id/'+id, end:function(){ reload(); } @@ -717,7 +717,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/CompanyStatementPool/editVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/CompanyStatementPool/editVoucher/id/'+id, end:function(){ reload(); } diff --git a/Application/Admin/View/CpJuheCompany/export.html b/Application/Admin/View/CpJuheCompany/export.html index 9623b174c..14954cff5 100644 --- a/Application/Admin/View/CpJuheCompany/export.html +++ b/Application/Admin/View/CpJuheCompany/export.html @@ -249,7 +249,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/Member/denglu/id/', 'no'] + content: ['{$Think.SUBSITE_INDEX}?s=/Member/denglu/id/', 'no'] }); } diff --git a/Application/Admin/View/CpJuheCompany/index.html b/Application/Admin/View/CpJuheCompany/index.html index 33e975183..65a626a55 100644 --- a/Application/Admin/View/CpJuheCompany/index.html +++ b/Application/Admin/View/CpJuheCompany/index.html @@ -272,7 +272,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/Member/denglu/id/', 'no'] + content: ['{$Think.SUBSITE_INDEX}?s=/Member/denglu/id/', 'no'] }); } diff --git a/Application/Admin/View/Developers/gameEdit.html b/Application/Admin/View/Developers/gameEdit.html index 2f1a40e24..8a85da2aa 100644 --- a/Application/Admin/View/Developers/gameEdit.html +++ b/Application/Admin/View/Developers/gameEdit.html @@ -581,7 +581,7 @@ $("#add_another").click(function() { shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: url+'admin.php?s=/Game/add_another/id/1111'//iframe的url + content: url+'{$Think.SUBSITE_INDEX}?s=/Game/add_another/id/1111'//iframe的url }); }); /*获取游戏类型名称*/ diff --git a/Application/Admin/View/Developers/relation.html b/Application/Admin/View/Developers/relation.html index ea8895d93..a81ee3993 100644 --- a/Application/Admin/View/Developers/relation.html +++ b/Application/Admin/View/Developers/relation.html @@ -315,7 +315,7 @@ $("#add_another").click(function() { shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: url+'admin.php?s=/Game/add_another/id/1111'//iframe的url + content: url+'{$Think.SUBSITE_INDEX}?s=/Game/add_another/id/1111'//iframe的url }); }); /*获取游戏类型名称*/ diff --git a/Application/Admin/View/Finance/aggDetail.html b/Application/Admin/View/Finance/aggDetail.html index a727da166..c224af64d 100644 --- a/Application/Admin/View/Finance/aggDetail.html +++ b/Application/Admin/View/Finance/aggDetail.html @@ -240,7 +240,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url }); }); diff --git a/Application/Admin/View/Finance/gameFinance.html b/Application/Admin/View/Finance/gameFinance.html index 5b6291597..fcd2d18e6 100644 --- a/Application/Admin/View/Finance/gameFinance.html +++ b/Application/Admin/View/Finance/gameFinance.html @@ -262,7 +262,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url }); }); diff --git a/Application/Admin/View/Finance/gameFinanceDetail.html b/Application/Admin/View/Finance/gameFinanceDetail.html index 72c538978..b7efcdd05 100644 --- a/Application/Admin/View/Finance/gameFinanceDetail.html +++ b/Application/Admin/View/Finance/gameFinanceDetail.html @@ -203,7 +203,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url }); }); diff --git a/Application/Admin/View/Finance/gameStatistics.html b/Application/Admin/View/Finance/gameStatistics.html index 87d8d047c..2a9911c15 100644 --- a/Application/Admin/View/Finance/gameStatistics.html +++ b/Application/Admin/View/Finance/gameStatistics.html @@ -237,15 +237,21 @@ false))}">{$data.inside_cash_count}0 {$data.all_cash_count}0 {$data.notice_fail_count}0 - {$data.agg_wm_amount} + + + {$data.agg_wm_amount} + + {$data.agg_wm_amount} + + {$data.agg_wm_failed_amount}0
绩效考核奖金当月开发税后毛利奖金与维护税后毛利奖金之和
绩效系数 当月合计 - 本月应发金额 - 待发金额 + + 本月应发业绩提成 + 本月应发绩效考核奖金 + 本月应发金额合计 + + 本月待发业绩提成 + 本月待发绩效考核奖金 + 本月待发金额合计 绩效确认 市场部确认 财务部审批 @@ -232,7 +238,15 @@ {$data['achievement_bonus']|default='0.00'} {$data['coefficient']|default='1'} {$data['commission']|default='0.00'} + + + {$data['should_performance_commission']|default='0.00'} + {$data['should_month_bonus_ratio']|default='0.00'}
{$data['extend_commission']|default='0.00'} + + + {$data['wait_performance_commission']|default='0.00'} + {$data['wait_achievement_commission']|default='0.00'} {$data['wait_commission']|default='0.00'} {$data['coefficient_check_detail']|default=''}
{$data['market_check_detail']|default=''} @@ -254,11 +268,15 @@ {$sum['achievement_bonus']|default='0.00'} {$sum['commission']|default='0.00'} + {$sum['should_performance_commission']|default='0.00'} + {$sum['should_month_bonus_ratio']|default='0.00'} {$sum['extend_commission']|default='0.00'} + + diff --git a/Application/Admin/View/Member/balance.html b/Application/Admin/View/Member/balance.html index 9a3fa626a..a463af7dc 100644 --- a/Application/Admin/View/Member/balance.html +++ b/Application/Admin/View/Member/balance.html @@ -29,7 +29,7 @@ body{ padding: 0px; } (function(){ var ThinkPHP = window.Think = { "ROOT" : "", //当前网站地址 - "APP" : "/admin.php?s=", //当前项目地址 + "APP" : "/{$Think.SUBSITE_INDEX}?s=", //当前项目地址 "PUBLIC" : "/Public", //项目公共目录地址 "DEEP" : "/", //PATHINFO分割符 "MODEL" : ["3", "", "html"], diff --git a/Application/Admin/View/Member/bind_balance1.html b/Application/Admin/View/Member/bind_balance1.html index 5d502e8cb..480f705bc 100644 --- a/Application/Admin/View/Member/bind_balance1.html +++ b/Application/Admin/View/Member/bind_balance1.html @@ -64,7 +64,7 @@ body{ padding: 0px; } (function(){ var ThinkPHP = window.Think = { "ROOT" : "", //当前网站地址 - "APP" : "/admin.php?s=", //当前项目地址 + "APP" : "/{$Think.SUBSITE_INDEX}?s=", //当前项目地址 "PUBLIC" : "/Public", //项目公共目录地址 "DEEP" : "/", //PATHINFO分割符 "MODEL" : ["3", "", "html"], diff --git a/Application/Admin/View/Member/edit.html b/Application/Admin/View/Member/edit.html index e3cc35045..ee34d3b9a 100644 --- a/Application/Admin/View/Member/edit.html +++ b/Application/Admin/View/Member/edit.html @@ -313,7 +313,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no'] + content: [url + '{$Think.SUBSITE_INDEX}?s=/Member/chax/id/' + id + '' , 'no'] }); }); @@ -324,7 +324,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no'] + content: [url + '{$Think.SUBSITE_INDEX}?s=/Member/role_list/user_id/' + id + '' , 'no'] }); }); @@ -335,7 +335,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/gold_coin/user_id/' + id + '/account/'+$.trim($('input[name="account"]').val()), 'no'] + content: [url + '{$Think.SUBSITE_INDEX}?s=/Member/gold_coin/user_id/' + id + '/account/'+$.trim($('input[name="account"]').val()), 'no'] }); }); @@ -358,7 +358,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/denglu/id/' + id + '', 'no'] + content: [url + '{$Think.SUBSITE_INDEX}?s=/Member/denglu/id/' + id + '', 'no'] }); }); $("#bind_balance").click(function () { @@ -369,7 +369,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: [url + 'admin.php?s=/Member/bind_balance/id/' + id + '', 'no'] + content: [url + '{$Think.SUBSITE_INDEX}?s=/Member/bind_balance/id/' + id + '', 'no'] }); }); diff --git a/Application/Admin/View/PayChannel/gameDetail.html b/Application/Admin/View/PayChannel/gameDetail.html index 0995074c5..82ad9bd70 100644 --- a/Application/Admin/View/PayChannel/gameDetail.html +++ b/Application/Admin/View/PayChannel/gameDetail.html @@ -286,7 +286,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url }); }); diff --git a/Application/Admin/View/PayChannel/index.html b/Application/Admin/View/PayChannel/index.html index 5490f4205..511a83475 100644 --- a/Application/Admin/View/PayChannel/index.html +++ b/Application/Admin/View/PayChannel/index.html @@ -315,7 +315,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/Member/denglu/id/', 'no'] + content: ['{$Think.SUBSITE_INDEX}?s=/Member/denglu/id/', 'no'] }); } @@ -395,7 +395,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url }); }); diff --git a/Application/Admin/View/PayChannel/testDetail.html b/Application/Admin/View/PayChannel/testDetail.html index 043e0e0df..d8b0f46fa 100644 --- a/Application/Admin/View/PayChannel/testDetail.html +++ b/Application/Admin/View/PayChannel/testDetail.html @@ -312,7 +312,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url }); }); diff --git a/Application/Admin/View/PayChannelIntention/index.html b/Application/Admin/View/PayChannelIntention/index.html index b35564d13..d5f5dca48 100644 --- a/Application/Admin/View/PayChannelIntention/index.html +++ b/Application/Admin/View/PayChannelIntention/index.html @@ -403,7 +403,7 @@ pay_status = ''; } - var url = "admin.php?s=/PayChannelIntention/detail/"+ pay_ways + pay_way + pay_status + timestart + timeend; + var url = "{$Think.SUBSITE_INDEX}?s=/PayChannelIntention/detail/"+ pay_ways + pay_way + pay_status + timestart + timeend; window.location.href = url; diff --git a/Application/Admin/View/PayMerchant/index.html b/Application/Admin/View/PayMerchant/index.html index 8b28cb7e4..fe922c044 100644 --- a/Application/Admin/View/PayMerchant/index.html +++ b/Application/Admin/View/PayMerchant/index.html @@ -308,7 +308,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/Member/denglu/id/', 'no'] + content: ['{$Think.SUBSITE_INDEX}?s=/Member/denglu/id/', 'no'] }); } diff --git a/Application/Admin/View/PaymentMerchant/list.html b/Application/Admin/View/PaymentMerchant/list.html index edd6e797b..d7065264d 100644 --- a/Application/Admin/View/PaymentMerchant/list.html +++ b/Application/Admin/View/PaymentMerchant/list.html @@ -373,8 +373,8 @@ shadeClose: true, shade: 0.8, area: ['500px', '300px'], - // content:'/admin.php?s=/AggregateFinanceStatement/viewStatement/id/'+1 - content: '/admin.php?s=/PaymentMerchant/editDefault' + // content:'/{$Think.SUBSITE_INDEX}?s=/AggregateFinanceStatement/viewStatement/id/'+1 + content: '/{$Think.SUBSITE_INDEX}?s=/PaymentMerchant/editDefault' }) } }) diff --git a/Application/Admin/View/Platform/promote_statistics.html b/Application/Admin/View/Platform/promote_statistics.html index c8d360bd8..937bec171 100644 --- a/Application/Admin/View/Platform/promote_statistics.html +++ b/Application/Admin/View/Platform/promote_statistics.html @@ -270,7 +270,7 @@ // shadeClose: true, // shade: 0.8, // area: ['70%', '80%'], - // content: '/admin.php?s=/Platform/zhuce_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + // content: '/{$Think.SUBSITE_INDEX}?s=/Platform/zhuce_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url // }); // }); $(".paixu").click(function(){ diff --git a/Application/Admin/View/Platform/promotepay_statistics.html b/Application/Admin/View/Platform/promotepay_statistics.html index bee67d7b0..397b1b053 100644 --- a/Application/Admin/View/Platform/promotepay_statistics.html +++ b/Application/Admin/View/Platform/promotepay_statistics.html @@ -284,7 +284,7 @@ // shadeClose: true, // shade: 0.8, // area: ['70%', '80%'], - // content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url + // content: '{$Think.SUBSITE_INDEX}?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url // }); // }); $(".paixu").click(function(){ diff --git a/Application/Admin/View/Public/base.html b/Application/Admin/View/Public/base.html index 18469cfe8..b05dc4b99 100644 --- a/Application/Admin/View/Public/base.html +++ b/Application/Admin/View/Public/base.html @@ -160,7 +160,7 @@ $(function(){ $.ajax({ type: 'POST', type:'json', - url: "/admin.php?s=/Public/en_us", + url: "/{$Think.SUBSITE_INDEX}?s=/Public/en_us", success: function(data) { location.reload(); }, diff --git a/Application/Admin/View/Public/cp_base.html b/Application/Admin/View/Public/cp_base.html index 76583e070..eb2d19f8c 100644 --- a/Application/Admin/View/Public/cp_base.html +++ b/Application/Admin/View/Public/cp_base.html @@ -164,7 +164,7 @@ $.ajax({ type: 'POST', type: 'json', - url: "/admin.php?s=/Public/en_us", + url: "/{$Think.SUBSITE_INDEX}?s=/Public/en_us", success: function (data) { location.reload(); }, @@ -215,7 +215,7 @@

万盟对账单管理

diff --git a/Application/Admin/View/Query/cpsettlement.html b/Application/Admin/View/Query/cpsettlement.html index 7dd6ddf70..a50acc675 100644 --- a/Application/Admin/View/Query/cpsettlement.html +++ b/Application/Admin/View/Query/cpsettlement.html @@ -509,7 +509,7 @@ function detailsInfo(developers,create_time){ shadeClose: true, shade: 0.8, area: ['80%', '70%'], - content: '/admin.php?s=/Query/detailscps/developers_id/'+developers+'/create_time/'+ create_time //iframe的url + content: '/{$Think.SUBSITE_INDEX}?s=/Query/detailscps/developers_id/'+developers+'/create_time/'+ create_time //iframe的url }); } diff --git a/Application/Admin/View/Query/marketList.html b/Application/Admin/View/Query/marketList.html index 3789f7498..c3674a893 100644 --- a/Application/Admin/View/Query/marketList.html +++ b/Application/Admin/View/Query/marketList.html @@ -263,7 +263,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/Query/detaillist/my_time/'+my_time+'/game_id/' + game_id + '/promote_id/' + promote_id + '', 'no'] + content: ['{$Think.SUBSITE_INDEX}?s=/Query/detaillist/my_time/'+my_time+'/game_id/' + game_id + '/promote_id/' + promote_id + '', 'no'] }); } diff --git a/Application/Admin/View/Query/settlement.html b/Application/Admin/View/Query/settlement.html index 4e10a6665..988137835 100644 --- a/Application/Admin/View/Query/settlement.html +++ b/Application/Admin/View/Query/settlement.html @@ -419,7 +419,7 @@ shadeClose: true, shade: 0.8, area: ['80%', '70%'], - content: '/admin.php?s=/Query/details/promote_id/'+promote_id+'/create_time/'+ create_time //iframe的url + content: '/{$Think.SUBSITE_INDEX}?s=/Query/details/promote_id/'+promote_id+'/create_time/'+ create_time //iframe的url }); } diff --git a/Application/Admin/View/Query/withdraw.html b/Application/Admin/View/Query/withdraw.html index eba56679a..01f0e722c 100644 --- a/Application/Admin/View/Query/withdraw.html +++ b/Application/Admin/View/Query/withdraw.html @@ -332,7 +332,7 @@ shadeClose: true, shade: 0.8, area: ['80%', '70%'], - content: '/admin.php?s=/Query/withdrawDetails/id/'+id+'' //iframe的url + content: '/{$Think.SUBSITE_INDEX}?s=/Query/withdrawDetails/id/'+id+'' //iframe的url }); } diff --git a/Application/Admin/View/Question/show.html b/Application/Admin/View/Question/show.html index 4dc82b892..658c9b9d8 100644 --- a/Application/Admin/View/Question/show.html +++ b/Application/Admin/View/Question/show.html @@ -71,7 +71,7 @@ $(function(){ shadeClose: true, shade: 0.8, area: ['60%', '50%'], - content: 'admin.php?s=/Question/reply/id/'+id+''//iframe的url + content: '{$Think.SUBSITE_INDEX}?s=/Question/reply/id/'+id+''//iframe的url }); }); }) diff --git a/Application/Admin/View/Settlement/generatesettlementsheet.html b/Application/Admin/View/Settlement/generatesettlementsheet.html index ac4057643..2ceb55a95 100644 --- a/Application/Admin/View/Settlement/generatesettlementsheet.html +++ b/Application/Admin/View/Settlement/generatesettlementsheet.html @@ -115,7 +115,7 @@ diff --git a/Application/Admin/View/Stat/cha_userarpu.html b/Application/Admin/View/Stat/cha_userarpu.html index e42635910..6a1d0d0e9 100644 --- a/Application/Admin/View/Stat/cha_userarpu.html +++ b/Application/Admin/View/Stat/cha_userarpu.html @@ -71,7 +71,7 @@ body{ padding: 0px; } (function(){ var ThinkPHP = window.Think = { "ROOT" : "", //当前网站地址 - "APP" : "/admin.php?s=", //当前项目地址 + "APP" : "/{$Think.SUBSITE_INDEX}?s=", //当前项目地址 "PUBLIC" : "/Public", //项目公共目录地址 "DEEP" : "/", //PATHINFO分割符 "MODEL" : ["3", "", "html"], diff --git a/Application/Admin/View/StatementMangement/PersonOrderEdit.html b/Application/Admin/View/StatementMangement/PersonOrderEdit.html index 1d2643564..d9d966cb8 100644 --- a/Application/Admin/View/StatementMangement/PersonOrderEdit.html +++ b/Application/Admin/View/StatementMangement/PersonOrderEdit.html @@ -279,7 +279,7 @@ }).get().join(","); var id =$("#withdraw_id").val(); var withdraw =$("#withdraw").val(); - var url = "/admin.php?s=/statementMangement/PersonOrderEdit/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val() + "/id/" + id; + var url = "/{$Think.SUBSITE_INDEX}?s=/statementMangement/PersonOrderEdit/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val() + "/id/" + id; console.log(url) @@ -389,7 +389,7 @@ ); //设置对账网址 - var order_url = window.location.protocol+"//"+window.location.host+"/admin.php?s=/Public/cp_login.html"; + var order_url = window.location.protocol+"//"+window.location.host+"/{$Think.SUBSITE_INDEX}?s=/Public/cp_login.html"; $("#order_url").html("结算单管理,对账地址:"+order_url+""); //全选的实现 diff --git a/Application/Admin/View/StatementMangement/PersonOrderList.html b/Application/Admin/View/StatementMangement/PersonOrderList.html index 197f800c9..570d07e7d 100644 --- a/Application/Admin/View/StatementMangement/PersonOrderList.html +++ b/Application/Admin/View/StatementMangement/PersonOrderList.html @@ -277,7 +277,7 @@ return $(elem).val(); }).get().join(","); - var url = "/admin.php?s=/statementMangement/PersonOrderList/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val(); + var url = "/{$Think.SUBSITE_INDEX}?s=/statementMangement/PersonOrderList/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val(); console.log(url) @@ -386,7 +386,7 @@ ); //设置对账网址 - var order_url = window.location.protocol+"//"+window.location.host+"/admin.php?s=/Public/cp_login.html"; + var order_url = window.location.protocol+"//"+window.location.host+"/{$Think.SUBSITE_INDEX}?s=/Public/cp_login.html"; $("#order_url").html("结算单管理,对账地址:"+order_url+""); //全选的实现 diff --git a/Application/Admin/View/StatementMangement/lists.html b/Application/Admin/View/StatementMangement/lists.html index 7b4b9f5ec..c512f256f 100644 --- a/Application/Admin/View/StatementMangement/lists.html +++ b/Application/Admin/View/StatementMangement/lists.html @@ -289,7 +289,7 @@ } } //设置对账网址 - var order_url = window.location.protocol+"//"+window.location.host+"/admin.php?s=/Public/cp_login.html"; + var order_url = window.location.protocol+"//"+window.location.host+"/{$Think.SUBSITE_INDEX}?s=/Public/cp_login.html"; $("#order_url").html("结算单管理,对账地址:"+order_url+""); $("#upstream").click(function () { @@ -299,7 +299,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content:'/admin.php?s=/Statement/createCpStatement/' + content:'/{$Think.SUBSITE_INDEX}?s=/Statement/createCpStatement/' }); }); @@ -310,7 +310,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: '/admin.php?s=/statementMangement/createDownstreamOrder/' + content: '/{$Think.SUBSITE_INDEX}?s=/statementMangement/createDownstreamOrder/' }); }); @@ -321,7 +321,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: '/admin.php?s=/statementMangement/PersonOrderList/' + content: '/{$Think.SUBSITE_INDEX}?s=/statementMangement/PersonOrderList/' }); }); @@ -330,11 +330,11 @@ var edit = $(this).data(); var ext_field = $(this).attr('ext_field'); if(edit.type == 0){ - var url = "/admin.php?s=/Statement/editCpStatement/id/"+edit.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/Statement/editCpStatement/id/"+edit.id; }else if(edit.type == 1){ - var url = "/admin.php?s=/StatementMangement/editDownstreamOrder/id/"+edit.id+"/ext_field/"+ext_field; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/editDownstreamOrder/id/"+edit.id+"/ext_field/"+ext_field; }else if(edit.type == 2){ - var url = "/admin.php?s=/StatementMangement/PersonOrderEdit/id/"+edit.id+"/withdraw/"+ext_field+"/time_start/"+edit.start+"/time_end/"+edit.end; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/PersonOrderEdit/id/"+edit.id+"/withdraw/"+ext_field+"/time_start/"+edit.start+"/time_end/"+edit.end; } layer.open({ @@ -351,9 +351,9 @@ var type = $(this).data("type"); if (type == 2) { - var url = "/admin.php?s=/StatementMangement/personOrderDetail/id/"+id; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/personOrderDetail/id/"+id; } else { - var url = "/admin.php?s=/VerifyBill/show/id/"+id+"/from/pc"; + var url = "/{$Think.SUBSITE_INDEX}?s=/VerifyBill/show/id/"+id+"/from/pc"; } layer.open({ @@ -372,9 +372,9 @@ title:false }, function(){ if(del.type == 0){ - var url = "/admin.php?s=/Statement/delCpStatement/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/Statement/delCpStatement/id/"+del.id; }else{ - var url = "/admin.php?s=/StatementMangement/delStatementData/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/delStatementData/id/"+del.id; } layer.load(2); $.ajax({ diff --git a/Application/Admin/View/StatementMangement/personOrderDetail.html b/Application/Admin/View/StatementMangement/personOrderDetail.html index f401a0b45..522e7c573 100644 --- a/Application/Admin/View/StatementMangement/personOrderDetail.html +++ b/Application/Admin/View/StatementMangement/personOrderDetail.html @@ -209,7 +209,7 @@ return $(elem).val(); }).get().join(","); - var url = "/admin.php?s=/statementMangement/PersonOrderList/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val(); + var url = "/{$Think.SUBSITE_INDEX}?s=/statementMangement/PersonOrderList/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val(); console.log(url) @@ -314,7 +314,7 @@ ); //设置对账网址 - var order_url = window.location.protocol+"//"+window.location.host+"/admin.php?s=/Public/cp_login.html"; + var order_url = window.location.protocol+"//"+window.location.host+"/{$Think.SUBSITE_INDEX}?s=/Public/cp_login.html"; $("#order_url").html("结算单管理,对账地址:"+order_url+""); //全选的实现 diff --git a/Application/Admin/View/SubCompanyStatementPool/lists.html b/Application/Admin/View/SubCompanyStatementPool/lists.html index 837507ad6..966ecc73d 100644 --- a/Application/Admin/View/SubCompanyStatementPool/lists.html +++ b/Application/Admin/View/SubCompanyStatementPool/lists.html @@ -589,7 +589,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/CompanyStatementPool/uploadVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/CompanyStatementPool/uploadVoucher/id/'+id, end:function(){ reload(); } @@ -613,7 +613,7 @@ shadeClose: true, shade: 0.8, area: ['60%', '60%'], - content:'/admin.php?s=/CompanyStatementPool/editVoucher/id/'+id, + content:'/{$Think.SUBSITE_INDEX}?s=/CompanyStatementPool/editVoucher/id/'+id, end:function(){ reload(); } diff --git a/Application/Admin/View/SuperStatistical/index.html b/Application/Admin/View/SuperStatistical/index.html index b514aece0..39c9404d2 100644 --- a/Application/Admin/View/SuperStatistical/index.html +++ b/Application/Admin/View/SuperStatistical/index.html @@ -159,7 +159,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/SuperStatistical/lists' + params + content: '{$Think.SUBSITE_INDEX}?s=/SuperStatistical/lists' + params }); }); $("#role1").click(function () { @@ -169,7 +169,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/SuperStatistical/lists' + params + content: '{$Think.SUBSITE_INDEX}?s=/SuperStatistical/lists' + params }); }); $("#superDetail").click(function () { @@ -179,7 +179,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: 'admin.php?s=/SuperStatistical/superDetail' + params + content: '{$Think.SUBSITE_INDEX}?s=/SuperStatistical/superDetail' + params }); }); //搜索功能 diff --git a/Application/Admin/View/TestOrder/lists.html b/Application/Admin/View/TestOrder/lists.html index ba4c405e4..b59937bd0 100644 --- a/Application/Admin/View/TestOrder/lists.html +++ b/Application/Admin/View/TestOrder/lists.html @@ -263,7 +263,7 @@ btn: ['确认','取消'], title:false }, function(){ - var url = "/admin.php?s=/TestOrder/del/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/TestOrder/del/id/"+del.id; layer.load(2); $.ajax({ @@ -359,7 +359,7 @@ shadeClose: true, shade: 0.8, area: ['500px', '600px'], - content:'/admin.php?s=/TestOrder/addOrder/' + content:'/{$Think.SUBSITE_INDEX}?s=/TestOrder/addOrder/' }); }); diff --git a/Application/Admin/View/UserActionLog/index.html b/Application/Admin/View/UserActionLog/index.html index fb6b96e06..2afb3daf4 100644 --- a/Application/Admin/View/UserActionLog/index.html +++ b/Application/Admin/View/UserActionLog/index.html @@ -230,7 +230,7 @@ btn: ['确认','取消'], title:false }, function(){ - var url = "/admin.php?s=/UserActionLog/del/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/UserActionLog/del/id/"+del.id; layer.load(2); $.ajax({ diff --git a/Application/Admin/View/UserActionLog/operateLog.html b/Application/Admin/View/UserActionLog/operateLog.html index aa2f890f9..e01af64f3 100644 --- a/Application/Admin/View/UserActionLog/operateLog.html +++ b/Application/Admin/View/UserActionLog/operateLog.html @@ -237,7 +237,7 @@ btn: ['确认','取消'], title:false }, function(){ - var url = "/admin.php?s=/UserActionLog/operateLogDel/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/UserActionLog/operateLogDel/id/"+del.id; layer.load(2); $.ajax({ diff --git a/Application/Admin/View/UserPayWhiteList/add.html b/Application/Admin/View/UserPayWhiteList/add.html index 9ea115432..cbe668c63 100644 --- a/Application/Admin/View/UserPayWhiteList/add.html +++ b/Application/Admin/View/UserPayWhiteList/add.html @@ -114,7 +114,7 @@ layer.msg("" + data.msg + "") setTimeout(function(){ - window.location.href = "/admin.php?s=/UserPayWhiteList/index.html"; + window.location.href = "/{$Think.SUBSITE_INDEX}?s=/UserPayWhiteList/index.html"; },1500); } } diff --git a/Application/Admin/View/UserPayWhiteList/index.html b/Application/Admin/View/UserPayWhiteList/index.html index 59638c190..e094623d2 100644 --- a/Application/Admin/View/UserPayWhiteList/index.html +++ b/Application/Admin/View/UserPayWhiteList/index.html @@ -100,8 +100,8 @@ @@ -276,7 +276,7 @@ } } //设置对账网址 - var order_url = window.location.protocol+"//"+window.location.host+"/admin.php?s=/Public/cp_login.html"; + var order_url = window.location.protocol+"//"+window.location.host+"/{$Think.SUBSITE_INDEX}?s=/Public/cp_login.html"; $("#order_url").html("说明:允许玩家正常支付的白名单"); $("#upstream").click(function () { @@ -286,7 +286,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content:'/admin.php?s=/Statement/createCpStatement/' + content:'/{$Think.SUBSITE_INDEX}?s=/Statement/createCpStatement/' }); }); @@ -297,7 +297,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: '/admin.php?s=/statementMangement/createDownstreamOrder/' + content: '/{$Think.SUBSITE_INDEX}?s=/statementMangement/createDownstreamOrder/' }); }); @@ -308,7 +308,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: '/admin.php?s=/statementMangement/PersonOrderList/' + content: '/{$Think.SUBSITE_INDEX}?s=/statementMangement/PersonOrderList/' }); }); @@ -317,11 +317,11 @@ var edit = $(this).data(); var ext_field = $(this).attr('ext_field'); if(edit.type == 0){ - var url = "/admin.php?s=/Statement/editCpStatement/id/"+edit.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/Statement/editCpStatement/id/"+edit.id; }else if(edit.type == 1){ - var url = "/admin.php?s=/StatementMangement/editDownstreamOrder/id/"+edit.id+"/ext_field/"+ext_field; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/editDownstreamOrder/id/"+edit.id+"/ext_field/"+ext_field; }else if(edit.type == 2){ - var url = "/admin.php?s=/StatementMangement/PersonOrderEdit/id/"+edit.id+"/withdraw/"+ext_field+"/time_start/"+edit.start+"/time_end/"+edit.end; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/PersonOrderEdit/id/"+edit.id+"/withdraw/"+ext_field+"/time_start/"+edit.start+"/time_end/"+edit.end; } layer.open({ @@ -338,9 +338,9 @@ var type = $(this).data("type"); if (type == 2) { - var url = "/admin.php?s=/StatementMangement/personOrderDetail/id/"+id; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/personOrderDetail/id/"+id; } else { - var url = "/admin.php?s=/VerifyBill/show/id/"+id+"/from/pc"; + var url = "/{$Think.SUBSITE_INDEX}?s=/VerifyBill/show/id/"+id+"/from/pc"; } layer.open({ @@ -359,9 +359,9 @@ title:false }, function(){ if(del.type == 0){ - var url = "/admin.php?s=/Statement/delCpStatement/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/Statement/delCpStatement/id/"+del.id; }else{ - var url = "/admin.php?s=/StatementMangement/delStatementData/id/"+del.id; + var url = "/{$Think.SUBSITE_INDEX}?s=/StatementMangement/delStatementData/id/"+del.id; } layer.load(2); $.ajax({ diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index a22b1ff59..87f6f3bb7 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -20,7 +20,8 @@ {$game['relation_game_name']} - + +