'未激活', 2 => '正常', 3 => '停用', ); $audit_manage = array ( //1 => '未开始审核', //2 => '待审核', 3 => '审核通过', 4 => '审核未通过', ); $audit = array ( 1 => '未开始审核', 2 => '待审核', 3 => '审核通过', 4 => '审核未通过', ); $type = array ( 1 => '子账号', 2 => '主账号', ); $is_email = array ( 1 => '邮箱已验证', 2 => '邮箱未验证', ); $is_idcard = array ( 1 => '已上传', 2 => '未上传', ); $is_sign = array ( 1 => '已签署', 2 => '未签署', ); $col = Dever::input('col'); return array ( # 表名 'name' => 'account', # 显示给用户看的名称 'lang' => '期权账户认证审核', 'order' => 100, 'set' => array ( 'status' => $status, 'type' => $type, 'audit' => $audit, 'is_email' => $is_email, 'is_idcard' => $is_idcard, 'is_sign' => $is_sign, ), 'start' => array ( 'insert' => 'option/lib/manage.updateAccountAudit', ), 'end' => array ( 'update' => 'option/lib/manage.updateAccount', ), 'check' => 'mobile', # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', //'list' => true, ), 'type' => array ( 'type' => 'tinyint-1', 'name' => '账号类型', 'default' => '1', 'desc' => '账号类型', 'match' => 'is_numeric', 'option' => $type, 'search' => 'hidden', 'update' => 'radio', ), 'key' => array ( 'type' => 'int-11', 'name' => '账户索引-通过账户索引来判断同一个人', 'default' => '', 'desc' => '账户索引', 'match' => 'is_string', 'update' => 'text', ), 'name' => array ( 'type' => 'varchar-100', 'name' => '姓名', 'default' => '', 'desc' => '姓名', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => 'Dever::load("option/lib/account.getInfo", {id})', 'list_order' => 1, ), 'mobile' => array ( 'type' => 'bigint-11', 'name' => '手机号', 'default' => '', 'desc' => '请输入手机号', 'match' => Dever::rule('mobile'), 'update' => 'text', 'search' => 'fulltext', //'list' => true, ), 'is_email' => array ( 'type' => 'tinyint-1', 'name' => '邮箱是否验证', 'default' => '2', 'desc' => '邮箱是否验证', 'match' => 'is_numeric', 'option' => $is_email, ), 'email' => array ( 'type' => 'varchar-150', 'name' => '邮箱', 'default' => '', 'desc' => '请输入邮箱', 'match' => 'option||' . Dever::rule('email'), //'update' => 'text', ), 'is_idcard' => array ( 'type' => 'tinyint-1', 'name' => '身份证资料', 'default' => '2', 'desc' => '身份证资料', 'match' => 'is_numeric', 'option' => $is_idcard, //'update' => 'radio', 'list' => true, 'list_order' => 3, ), 'idcard' => array ( 'type' => 'varchar-32', 'name' => '身份证号码', 'default' => '', 'desc' => '身份证号码', 'match' => Dever::rule('idcard'), 'match' => 'is_string', 'update' => 'text', ), 'idcard_front' => array ( 'type' => 'varchar-150', 'name' => '身份证正面', 'default' => '', 'desc' => '身份证正面', 'match' => 'option', //'update' => 'image', 'key' => '8', //'place' => '660*660', ), 'idcard_back' => array ( 'type' => 'varchar-150', 'name' => '身份证背面', 'default' => '', 'desc' => '身份证背面', 'match' => 'option', //'update' => 'image', 'key' => '8', //'place' => '660*660', ), 'is_sign' => array ( 'type' => 'tinyint-1', 'name' => '合同签字', 'default' => '2', 'desc' => '合同签字', 'match' => 'is_numeric', 'option' => $is_sign, //'update' => 'radio', 'list' => true, 'list_order' => 4, ), 'sign' => array ( 'type' => 'varchar-150', 'name' => '合同签字', 'default' => '', 'desc' => '合同签字', 'match' => 'option', //'update' => 'image', 'key' => '7', ), 'audit' => array ( 'type' => 'tinyint-1', 'name' => '审核状况', 'default' => $col ? '3' : '1', 'desc' => '审核状况', 'match' => 'is_numeric', 'option' => $audit_manage, 'search' => 'select', 'update' => $col ? 'radio' : false, 'list' => 'Dever::load("option/lib/account.getAudit", {id})', 'list_order' => 5, 'control' => 'audit', ), 'audit_desc' => array ( 'type' => 'varchar-500', 'name' => '审核备注', 'default' => '', 'desc' => '审核备注', 'match' => 'option', 'update' => $col ? 'textarea' : false, 'show' => 'audit=4', ), 'audit_date' => array ( 'type' => 'int-11', 'name' => '审核时间', 'match' => 'is_numeric', 'desc' => '审核时间', ), 'status' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '状态', 'match' => 'is_numeric', 'option' => $status, //'search' => 'select', //'list' => true, ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '创建时间', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'insert' => true, 'search' => 'date', 'list' => 'date("Y-m-d H:i:s", {cdate})', 'list_order' => 2, ), ), 'manage' => array ( //'insert' => false, 'delete' => false, //'edit' => false, 'list_button' => array ( 'list' => array('查看详情', '"cash&aid={id}&page_type=1"'), 'edit' => array('审核', 'audit,audit_desc', '{audit} == 2'), //'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin,tk_status', '{status} == 6'), //'delete' => array('删除', '', '{status} == 1'), ), ), 'request' => array ( 'getInfo' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'status' => 2, 'state' => 1, ), 'order' => array('id' => 'desc'), 'type' => 'one', 'col' => '*', ), 'getData' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'idcard' => 'yes', 'id' => array('yes', '!='), 'status' => 2, 'state' => 1, ), 'order' => array('id' => 'desc'), 'type' => 'all', 'page' => array(20, 'list'), 'col' => '*', ), 'upCash' => array ( 'type' => 'update', 'where' => array ( 'id' => 'yes', ), 'set' => array ( 'cash' => array('yes', '+='), ), ), 'upSell' => array ( 'type' => 'update', 'where' => array ( 'id' => 'yes', ), 'set' => array ( 'cash' => array('yes', '+='), 'upcol' => array('yes-sell', '+='), 'level_id' => 'yes', ), ), 'upGroupSell' => array ( 'type' => 'update', 'where' => array ( 'id' => 'yes', ), 'set' => array ( 'cash' => array('yes', '+='), 'upcol' => array('yes-group_sell', '+='), 'level_id' => 'yes', ), ), 'upGroupSellOne' => array ( 'type' => 'update', 'where' => array ( 'id' => 'yes', ), 'set' => array ( 'group_sell' => array('yes', '+='), ), ), # 获取订单数量 'getNum' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'start' => array('yes-cdate', '>='), 'end' => array('yes-cdate', '<='), 'status' => 'yes', 'role' => 'yes', 'state' => 1, ), 'type' => 'count', 'col' => '*', ), ), );