+
-
+
-
-
-
-
-
+
+
+
+
-
+ $(function () {
+ showTab();
+ prov = "{:substr($data['bank_area'],0,2)}";
+ city = "{:substr($data['bank_area'],2,2)}";
+ ciarea = "{:substr($data['bank_area'],4,2)}";
+ $(".select_gallery").select2();
+ $("input[name=company_belong]").click(function () {
+ if ($(this).val() == 1) {
+ $('#company_relation').show();
+ } else {
+ $('#company_relation').hide();
+ }
+ });
+ $(".withdraw_done").click(function () {
+ if ($(this).val() == 1) {
+ $.ajax({
+ url: "{:U('Promote/getWithdrawDone')}",
+ type: "post",
+ data: { company_id: $("#company_id option:selected").val(), promote_id: $(".promote_id").val() },
+ dataType: 'json',
+ success: function (data) {
+ if (data.status == 1) {
+ layer.alert('公司提现推广员只能设置一个,原先已设置提现推广员,保存后会将这个推广员设置成提现推广员');
+ }
+ }
+ })
+ }
+ });
+ });
+
+
\ No newline at end of file
diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php
index 7bdbf9b23..4fb364a91 100644
--- a/Application/Home/Controller/HomeController.class.php
+++ b/Application/Home/Controller/HomeController.class.php
@@ -8,6 +8,7 @@ use Base\Service\ApplyService;
use Base\Service\PromoteService;
use Base\Service\PackageDownloadLogService;
use Base\Tool\MobileDetect;
+use config;
/**
* 前台公共控制器
@@ -21,11 +22,23 @@ class HomeController extends Controller
/* 空操作,用于输出404页面 */
public function _empty()
{
- $this->redirect('Index/404');
+ $this->redirect('Index/index');
}
protected function _initialize()
{
+ https://dl-3.wmtxkj.com/index.php?s=/Home/Home/landingPage/code/Y3k2Rks3SkFUeVRhOXFhVWQ2TXNwczVQWGs0S2ROWlNCanlENEZKcE5xcz0=
+
+ if (stripos($_SERVER['HTTP_HOST'], C('DOMAIN_DOWNLOAD', null, '')) === 0) {
+ if (
+ strtolower(MODULE_NAME) != 'home' &&
+ strtolower(CONTROLLER_NAME) != 'home' &&
+ strtolower(ACTION_NAME) != 'landingpage') {
+ header('HTTP/1.1 404 Not Found');
+ exit('404 找不到页面!');
+ }
+ }
+
/* 读取站点配置 */
$config = api('Config/lists');
C($config); //添加配置