From f8f9046a87d17afd4eec1df7d368b2c21542dfe2 Mon Sep 17 00:00:00 2001
From: "elf@home" <360197197@qq.com>
Date: Thu, 20 Aug 2020 07:13:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../PromoteCompanyController.class.php | 2 +
.../Admin/View/PromoteCompany/add.html | 81 ++++++++++++++-----
2 files changed, 65 insertions(+), 18 deletions(-)
diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php
index 10173caba..ed2cae846 100644
--- a/Application/Admin/Controller/PromoteCompanyController.class.php
+++ b/Application/Admin/Controller/PromoteCompanyController.class.php
@@ -418,6 +418,8 @@ class PromoteCompanyController extends ThinkController
));
}
} else {
+ $this->assign('payWays', PresidentDepositService::$payWays);
+ $this->assign('payTypes', PresidentDepositService::$payTypes);
$this->assign('serviceAgreements', M('service_agreement', 'tab_')->select());
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCompany/add'])->find());
$this->meta_title = '新增下游推广公司';
diff --git a/Application/Admin/View/PromoteCompany/add.html b/Application/Admin/View/PromoteCompany/add.html
index 747e51ad1..651ddf4a6 100644
--- a/Application/Admin/View/PromoteCompany/add.html
+++ b/Application/Admin/View/PromoteCompany/add.html
@@ -231,6 +231,52 @@
+
+ *押金付款方式: |
+
+
+
+ |
+
+
+ *付款方式: |
+
+
+
+ |
+
+
+ *金额: |
+
+
+
+ |
+
+
+ 付款人: |
+
+
+
+ |
+
+
+ 付款账号: |
+
+
+
+ |
+
+
*承担服务费: |
@@ -463,7 +509,6 @@
会长账号 |
- 账号状态 |
真实姓名 |
手机号码 |
邮箱 |
@@ -506,20 +551,6 @@
密码长度必须大于6位
-
- 账号状态: |
-
-
-
-
-
- 锁定状态下,推广员账号则无法登录
- |
-
真实姓名: |
@@ -926,18 +957,15 @@
var promote = {
account: box.find('input[name=account]').val(),
password: box.find('input[name=password]').val(),
- status: box.find('input[name=status]:checked').val(),
real_name: box.find('input[name=realname]').val(),
mobile_phone: box.find('input[name=mobile]').val(),
email: box.find('input[name=email]').val(),
can_view_recharge: box.find('input[name=can_view_recharge]:checked').val(),
}
- var statusText = promote.status == 1 ? '开启' : '锁定'
var canViewRecharge = promote.can_view_recharge == 1 ? '允许' : '禁止'
console.log(promote)
$('#promote-table').find('.no-record').remove()
var html = ' | ' + promote.account + ' | '
- + '' + statusText + ' | '
+ '' + promote.real_name + ' | '
+ '' + promote.mobile_phone + ' | '
+ '' + promote.email + ' | '
@@ -949,5 +977,22 @@
layer.closeAll()
}
})
+
+ $('#pay_type').change(function() {
+ var val = $(this).val()
+ if (val == 2) {
+ $('.need-amount').show();
+ $("#pay_way option[value='4']").removeProp('disabled');
+ $('#pay_way').val('4')
+ $('#pay_way').attr('disabled', 'disabled')
+ } else if(val == 3) {
+ $('.need-amount').hide();
+ } else {
+ $('.need-amount').show();
+ $('#pay_way').removeAttr('disabled');
+ $("#pay_way option[value='4']").prop('disabled', true);
+ $('#pay_way').val('')
+ }
+ })
|