123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- <?php
- $type = array
- (
- 1 => '个人',
- 2 => '个体户',
- 3 => '企业',
- );
- $status = array
- (
- 1 => '已认证',
- 2 => '未认证',
- );
- return array
- (
- # 表名
- 'name' => 'auth',
- # 显示给用户看的名称
- 'lang' => '认证管理',
- # 是否显示在后台菜单
- 'order' => 9,
- 'menu' => false,
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- ),
- 'uid' => array
- (
- 'type' => 'int-11',
- 'name' => '用户名',
- 'default' => '0',
- 'desc' => '请选择用户',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'search' => array
- (
- 'api' => 'user/info-like',
- 'col' => 'search',
- 'result' => 'id',
- ),
- 'value' => Dever::input('search_option_uid'),
- 'list' => 'Dever::load("user/lib/info.get#name", {uid})',
- ),
- 'name' => array
- (
- 'type' => 'varchar-100',
- 'name' => '真实姓名',
- 'default' => '',
- 'desc' => '真实姓名',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'tel' => array
- (
- 'type' => 'varchar-50',
- 'name' => '联系电话',
- 'default' => '',
- 'desc' => '联系电话',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'email' => array
- (
- 'type' => 'varchar-50',
- 'name' => '联系邮箱',
- 'default' => '',
- 'desc' => '联系邮箱',
- 'match' => 'option',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'area' => array
- (
- 'type' => 'varchar-500',
- 'name' => '城市地区',
- 'default' => '',
- 'desc' => '城市地区',
- 'match' => 'option',
- 'search' => 'linkage',
- 'update' => 'linkage',
- 'option' => Dever::url('api.get?level_total=3', 'area'),
- 'list' => 'Dever::load("area/api.string", "{area}")',
- ),
- 'address' => array
- (
- 'type' => 'varchar-1000',
- 'name' => '联系地址',
- 'default' => '',
- 'desc' => '联系地址',
- 'match' => 'option',
- 'update' => 'text',
- 'list' => true,
- ),
- 'idcard' => array
- (
- 'type' => 'varchar-150',
- 'name' => '身份证号',
- 'default' => '',
- 'desc' => '身份证号',
- 'match' => 'option',
- 'update' => 'text',
- 'list' => true,
- ),
- 'type' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '认证身份',
- 'default' => '1',
- 'desc' => '认证身份',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'search' => 'select',
- 'option' => $type,
- 'control' => 'type',
- 'list' => true,
- ),
- 'idcard_front' => array
- (
- 'type' => 'varchar-150',
- 'name' => '身份证正面-如果是个人,这里上传联系人身份证,如果是个体户或者企业,这里上传法人身份证',
- 'default' => '',
- 'desc' => '身份证正面',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- ),
- 'idcard_back' => array
- (
- 'type' => 'varchar-150',
- 'name' => '身份证背面-如果是个人,这里上传联系人身份证,如果是个体户或者企业,这里上传法人身份证',
- 'default' => '',
- 'desc' => '身份证背面',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- ),
- 'company_license' => array
- (
- 'type' => 'varchar-150',
- 'name' => '营业执照',
- 'default' => '',
- 'desc' => '企业营业执照',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '8',
- 'show' => 'identity=2,3',
- ),
- 'company_name' => array
- (
- 'type' => 'varchar-200',
- 'name' => '企业全称',
- 'default' => '',
- 'desc' => '企业全称',
- 'match' => 'option',
- //'update' => 'text',
- 'show' => 'identity=2,3',
- ),
- 'company_number' => array
- (
- 'type' => 'varchar-200',
- 'name' => '社会信用代码',
- 'default' => '',
- 'desc' => '社会信用代码',
- 'match' => 'option',
- //'update' => 'text',
- 'show' => 'identity=2,3',
- ),
- 'status' => array
- (
- 'type' => 'int-11',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '状态',
- 'match' => 'is_numeric',
- 'update' => 'select',
- '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})',
- ),
- ),
- 'manage' => array
- (
- 'delete' => false,
- //'edit' => false,
- 'insert' => false,
- # 列表
- 'list_button' => array
- (
- //'fast_add' => array('账户操作', 'push&project=account&uid={id}'),
- ),
- ),
- );
|