'街道', 2 => '直推佣金', //3 => '九阳自动炒菜机套餐', ); $role = function() { $info = Dever::db('setting/role')->select(); return $info; }; $level = function() { $info = Dever::db('area/level')->select(); return $info; }; return array ( # 表名 'name' => 'prize', # 显示给用户看的名称 'lang' => '名额配置', # 后台菜单排序 'order' => 1, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', 'list' => true, 'order' => 'desc', ), 'name' => array ( 'type' => 'varchar-200', 'name' => '名称', 'default' => '', 'desc' => '名称', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'desc' => array ( 'type' => 'varchar-500', 'name' => '描述', 'default' => '', 'desc' => '描述', 'match' => 'option', 'update' => 'textarea', //'search' => 'fulltext', //'list' => true, ), 'type' => array ( 'type' => 'tinyint-1', 'name' => '名额类型', 'default' => '2', 'desc' => '名额类型', 'match' => 'is_numeric', 'update' => 'radio', 'option' => $type, 'search' => 'select', 'list' => true, 'control' => 'type', ), 'role' => array ( 'type' => 'int-11', 'name' => '推荐角色', 'default' => '-1', 'desc' => '推荐角色', 'match' => 'is_numeric', 'update' => 'radio', 'option' => $role, 'show' => 'type=2', ), 'level' => array ( 'type' => 'int-11', 'name' => '城市等级', 'default' => '-1', 'desc' => '城市等级', 'match' => 'is_numeric', //'update' => 'radio', 'option' => $level, 'show' => 'type=1', ), 'price' => array ( 'type' => 'varchar-11', 'name' => '价值-以元为单位,如输入40000,就是4万元,选择街道时,代表赠送价值4万元的街道',//,如果为空,则按照选择的城市等级赠送 'default' => '0', 'desc' => '价值', 'match' => 'option', 'update' => 'text', 'list' => true, ), 'per' => array ( 'type' => 'varchar-11', 'name' => '百分比数值-输入60代表60%,选择创客时,代表推荐创客可以获得60%的佣金', 'default' => '0', 'desc' => '价值', 'match' => 'option', 'update' => 'text', 'show' => 'type=2,3', ), 'num' => array ( 'type' => 'int-11', 'name' => '默认数量', 'default' => '1', 'desc' => '数量', 'match' => 'is_numeric', 'update' => 'text', '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, 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( 'list_button' => array ( 'location1' => array('权益设置', Dever::url('lib/prize_set.home', 'agent')), ) ), 'request' => array ( 'getInfo' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'type' => array('yes', 'in'), 'state' => 1, ), 'type' => 'all', 'col' => '*', ), ), );