|
@@ -51,24 +51,28 @@ $is_idcard = array
|
|
|
|
|
|
$col = Dever::input('col');
|
|
|
|
|
|
-$search_audit = Dever::input('search_option_audit');
|
|
|
-$search_stype = Dever::input('search_option_stype');
|
|
|
+
|
|
|
+$search_auth = Dever::input('search_option_dever_auth', 1);
|
|
|
|
|
|
$button = $list_button = array();
|
|
|
|
|
|
-$list_button = array
|
|
|
-(
|
|
|
- 'list' => array('查看详情', '"cash&mid={mid}&page_type=1&search_stype='.$search_stype.'"'),
|
|
|
-);
|
|
|
+if ($search_auth <= 2) {
|
|
|
+ $list_button = array
|
|
|
+ (
|
|
|
+ 'list' => array('查看详情', '"cash&mid={mid}&page_type=1&search_auth='.$search_auth.'"'),
|
|
|
+ );
|
|
|
+}
|
|
|
|
|
|
-if (!$search_stype) {
|
|
|
+if ($search_auth == 1) {
|
|
|
+ $list_button['edit'] = array('审核', 'audit,audit_desc', '{audit} == 2');
|
|
|
+} elseif ($search_auth == 2) {
|
|
|
$button = array
|
|
|
(
|
|
|
'创建账户' => array('fast', '', 'member'),
|
|
|
);
|
|
|
- $list_button['list1'] = array('子账户列表', '"member&search_option_aid={id}&search_option_main=2&oper_table=account"');
|
|
|
-} else {
|
|
|
- $list_button['edit'] = array('审核', 'audit,audit_desc', '{audit} == 2');
|
|
|
+ $list_button['list1'] = array('子账户列表', '"member&search_option_aid={id}&search_option_main=2&oper_table=account&search_option_dever_auth='.$search_auth.'"');
|
|
|
+} elseif ($search_auth == 3) {
|
|
|
+ $list_button['list1'] = array('子账户列表', '"member&search_option_aid={id}&search_option_main=2&oper_table=account&search_option_dever_auth='.$search_auth.'"');
|
|
|
}
|
|
|
|
|
|
return array
|
|
@@ -187,7 +191,7 @@ return array
|
|
|
'option' => $is_idcard,
|
|
|
'search' => 'select',
|
|
|
|
|
|
- 'list' => !$search_stype ? false : 'Dever::load("option/lib/account.getIdcard", {id})',
|
|
|
+ 'list' => $search_auth == 1 ? 'Dever::load("option/lib/account.getIdcard", {id})' : false,
|
|
|
'list_order' => 3,
|
|
|
),
|
|
|
|
|
@@ -206,7 +210,7 @@ return array
|
|
|
),
|
|
|
|
|
|
'sync' => array('mid', 'id'),
|
|
|
- 'list' => !$search_stype ? 'Dever::load("option/lib/account.getCash#daijiaofu", {id})' : false,
|
|
|
+ 'list' => $search_auth == 2 ? 'Dever::load("option/lib/account.getCash#daijiaofu", {id})' : false,
|
|
|
'list_name' => '待交付',
|
|
|
'list_order' => 4,
|
|
|
),
|
|
@@ -221,7 +225,7 @@ return array
|
|
|
'update' => $col ? 'image' : false,
|
|
|
'key' => '8',
|
|
|
|
|
|
- 'list' => !$search_stype ? 'Dever::load("option/lib/account.getCash#qiquan", {id})' : false,
|
|
|
+ 'list' => $search_auth == 2 ? 'Dever::load("option/lib/account.getCash#qiquan", {id})' : false,
|
|
|
'list_name' => '期权',
|
|
|
'list_order' => 5,
|
|
|
),
|
|
@@ -236,7 +240,7 @@ return array
|
|
|
'update' => $col ? 'image' : false,
|
|
|
'key' => '8',
|
|
|
|
|
|
- 'list' => !$search_stype ? 'Dever::load("option/lib/account.getCash#yuanshiqiquan", {id})' : false,
|
|
|
+ 'list' => $search_auth == 2 ? 'Dever::load("option/lib/account.getCash#yuanshiqiquan", {id})' : false,
|
|
|
'list_name' => '原始期权',
|
|
|
'list_order' => 6,
|
|
|
),
|
|
@@ -244,7 +248,7 @@ return array
|
|
|
'audit' => array
|
|
|
(
|
|
|
'type' => 'tinyint-1',
|
|
|
- 'name' => !$search_stype ? '账户认证' : '审核状况',
|
|
|
+ 'name' => $search_auth == 1 ? '审核状况' : '账户认证',
|
|
|
'default' => $col ? '3' : '1',
|
|
|
'desc' => '审核状况',
|
|
|
'match' => 'is_numeric',
|
|
@@ -252,7 +256,7 @@ return array
|
|
|
'search' => 'select',
|
|
|
'update' => $col ? 'radio' : false,
|
|
|
'list' => 'Dever::load("option/lib/account.getAudit", {id})',
|
|
|
- 'list_order' => !$search_stype ? 3 : 5,
|
|
|
+ 'list_order' => $search_auth == 1 ? 5 : 3,
|
|
|
'value' => $col ? '3' : '1',
|
|
|
'control' => 'audit',
|
|
|
),
|
|
@@ -285,7 +289,7 @@ return array
|
|
|
'match' => 'is_numeric',
|
|
|
'option' => $status,
|
|
|
|
|
|
- 'list' => !$search_stype ? true : false,
|
|
|
+ 'list' => $search_auth == 1 ? false : true,
|
|
|
'list_order' => 100,
|
|
|
),
|
|
|
|
|
@@ -300,6 +304,15 @@ return array
|
|
|
'search' => 'hidden',
|
|
|
),
|
|
|
|
|
|
+ 'dever_auth' => array
|
|
|
+ (
|
|
|
+ 'name' => '权限',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '类型',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'search' => 'hidden',
|
|
|
+ ),
|
|
|
+
|
|
|
'state' => array
|
|
|
(
|
|
|
'type' => 'tinyint-1',
|
|
@@ -339,7 +352,7 @@ return array
|
|
|
|
|
|
'option' => array
|
|
|
(
|
|
|
-
|
|
|
+ 'mid' => 'yes',
|
|
|
'is_email' => 'yes',
|
|
|
'is_idcard' => 'yes',
|
|
|
'email' => array('yes', 'like'),
|