From 0923006a200ba3caf6bae5646e9b22a9c92fc93c Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 20 Aug 2020 17:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PromoteCompanyController.class.php | 8 ++++++++ Application/Admin/View/PromoteCompany/add.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index ed2cae846..942e2cbab 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -974,6 +974,14 @@ class PromoteCompanyController extends ThinkController } } + if (I('pay_type', 0) == 0) { + $this->error('请选择押金付款方式'); + } + + if (I('pay_type', 0) != PresidentDepositService::PAY_TYPE_NONE && I('pay_way', 0) == 0) { + $this->error('请选择付款方式'); + } + // if(!empty(I("contact_phone")) && !checkPhone(I('contact_phone'))) { // $this->error('联系电话格式不正确'); // } diff --git a/Application/Admin/View/PromoteCompany/add.html b/Application/Admin/View/PromoteCompany/add.html index 651ddf4a6..6277ac540 100644 --- a/Application/Admin/View/PromoteCompany/add.html +++ b/Application/Admin/View/PromoteCompany/add.html @@ -970,7 +970,7 @@ + '' + promote.mobile_phone + '' + '' + promote.email + '' + '' + canViewRecharge + '' - + '' + + '' + '' console.log(html) $('#promote-table').children('tbody').append(html)