user_info.php 3.7 KB

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