user_info.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?php
  2. $status = array
  3. (
  4. 1 => '审核中',
  5. 2 => '已认证',
  6. 3 => '未认证',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'user_info',
  12. # 显示给用户看的名称
  13. 'lang' => '用户认证',
  14. 'menu' => 'passport',
  15. 'order' => 20,
  16. 'fast' => 10,
  17. # 数据结构
  18. 'struct' => array
  19. (
  20. 'id' => array
  21. (
  22. 'type' => 'int-11',
  23. 'name' => 'ID',
  24. 'default' => '',
  25. 'desc' => '',
  26. 'match' => 'is_numeric',
  27. //'search' => 'order',
  28. 'order' => 'desc',
  29. 'list' => true,
  30. ),
  31. 'uid' => array
  32. (
  33. 'type' => 'int-11',
  34. 'name' => '用户名',
  35. 'default' => '',
  36. 'desc' => '用户名',
  37. 'match' => 'is_numeric',
  38. //'update' => 'text',
  39. 'search' => array
  40. (
  41. 'api' => 'passport/user-all',
  42. 'col' => 'username',
  43. 'result' => 'id',
  44. ),
  45. 'list' => 'Dever::load("passport/user-one#username", {uid})',
  46. ),
  47. 'truename' => array
  48. (
  49. 'type' => 'varchar-80',
  50. 'name' => '真实姓名',
  51. 'default' => '',
  52. 'desc' => '真实姓名',
  53. 'match' => 'is_string',
  54. 'update' => 'text',
  55. 'search' => 'fulltext',
  56. 'list' => true,
  57. ),
  58. 'card' => array
  59. (
  60. 'type' => 'varchar-32',
  61. 'name' => '身份证号',
  62. 'default' => '',
  63. 'desc' => '身份证号',
  64. 'match' => 'is_string',
  65. 'update' => 'text',
  66. 'search' => 'fulltext',
  67. 'list' => true,
  68. ),
  69. 'card_front' => array
  70. (
  71. 'type' => 'varchar-150',
  72. 'name' => '身份证正面',
  73. 'default' => '',
  74. 'desc' => '身份证正面',
  75. 'match' => 'is_string',
  76. 'update' => 'image',
  77. 'key' => '1',
  78. 'place' => '150',
  79. 'list_name' => '详细信息',
  80. 'list' => 'table',
  81. 'modal' => '查看详情',
  82. ),
  83. 'card_end' => array
  84. (
  85. 'type' => 'varchar-150',
  86. 'name' => '身份证反面',
  87. 'default' => '',
  88. 'desc' => '身份证反面',
  89. 'match' => 'is_string',
  90. 'update' => 'image',
  91. 'key' => '1',
  92. 'place' => '150',
  93. ),
  94. 'wechat' => array
  95. (
  96. 'type' => 'varchar-150',
  97. 'name' => '微信号',
  98. 'default' => '',
  99. 'desc' => '身份证号',
  100. 'match' => 'is_string',
  101. 'update' => 'text',
  102. //'search' => 'fulltext',
  103. //'list' => true,
  104. ),
  105. 'alipay' => array
  106. (
  107. 'type' => 'varchar-150',
  108. 'name' => '支付宝',
  109. 'default' => '',
  110. 'desc' => '支付宝',
  111. 'match' => 'is_string',
  112. 'update' => 'text',
  113. //'search' => 'fulltext',
  114. //'list' => true,
  115. ),
  116. 'status' => array
  117. (
  118. 'type' => 'tinyint-1',
  119. 'name' => '审核状态',
  120. 'default' => '1',
  121. 'desc' => '审核状态',
  122. 'match' => 'is_numeric',
  123. 'update' => 'select',
  124. 'option' => $status,
  125. 'search' => 'select',
  126. 'list' => true,
  127. 'control' => 'status',
  128. ),
  129. 'status_desc' => array
  130. (
  131. 'type' => 'varchar-300',
  132. 'name' => '审核说明',
  133. 'default' => '',
  134. 'desc' => '请输入审核说明',
  135. 'match' => 'option',
  136. 'update' => 'textarea',
  137. 'show' => 'status=3',
  138. ),
  139. 'state' => array
  140. (
  141. 'type' => 'tinyint-1',
  142. 'name' => '状态',
  143. 'default' => '1',
  144. 'desc' => '请选择状态',
  145. 'match' => 'is_numeric',
  146. ),
  147. 'cdate' => array
  148. (
  149. 'type' => 'int-11',
  150. 'name' => '录入时间',
  151. 'match' => array('is_numeric', time()),
  152. 'desc' => '',
  153. # 只有insert时才生效
  154. 'insert' => true,
  155. 'search' => 'date',
  156. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  157. ),
  158. ),
  159. 'manage' => array
  160. (
  161. 'insert' => false,
  162. 'edit' => false,
  163. 'delete' => false,
  164. # 快捷更新
  165. 'list_button' => array
  166. (
  167. 'edit' => array('审核', 'status,status_desc'),
  168. ),
  169. ),
  170. );