user_info.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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' => 'Dever::load("task/lib/manage.info", {id})',
  85. ),
  86. 'card_end' => array
  87. (
  88. 'type' => 'varchar-150',
  89. 'name' => '身份证反面',
  90. 'default' => '',
  91. 'desc' => '身份证反面',
  92. 'match' => 'is_string',
  93. 'update' => 'image',
  94. 'key' => '1',
  95. 'place' => '150',
  96. ),
  97. 'wechat' => array
  98. (
  99. 'type' => 'varchar-150',
  100. 'name' => '微信号',
  101. 'default' => '',
  102. 'desc' => '身份证号',
  103. 'match' => 'is_string',
  104. 'update' => 'text',
  105. //'search' => 'fulltext',
  106. //'list' => true,
  107. ),
  108. 'alipay' => array
  109. (
  110. 'type' => 'varchar-150',
  111. 'name' => '支付宝',
  112. 'default' => '',
  113. 'desc' => '支付宝',
  114. 'match' => 'is_string',
  115. 'update' => 'text',
  116. //'search' => 'fulltext',
  117. //'list' => true,
  118. ),
  119. 'status' => array
  120. (
  121. 'type' => 'tinyint-1',
  122. 'name' => '审核状态',
  123. 'default' => '1',
  124. 'desc' => '审核状态',
  125. 'match' => 'is_numeric',
  126. 'update' => 'select',
  127. 'option' => $status,
  128. 'search' => 'select',
  129. 'list' => true,
  130. 'control' => 'status',
  131. ),
  132. 'status_desc' => array
  133. (
  134. 'type' => 'varchar-300',
  135. 'name' => '审核说明',
  136. 'default' => '',
  137. 'desc' => '请输入审核说明',
  138. 'match' => 'option',
  139. 'update' => 'textarea',
  140. 'show' => 'status=3',
  141. ),
  142. 'state' => array
  143. (
  144. 'type' => 'tinyint-1',
  145. 'name' => '状态',
  146. 'default' => '1',
  147. 'desc' => '请选择状态',
  148. 'match' => 'is_numeric',
  149. ),
  150. 'cdate' => array
  151. (
  152. 'type' => 'int-11',
  153. 'name' => '录入时间',
  154. 'match' => array('is_numeric', time()),
  155. 'desc' => '',
  156. # 只有insert时才生效
  157. 'insert' => true,
  158. 'search' => 'date',
  159. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  160. ),
  161. ),
  162. 'manage' => array
  163. (
  164. 'insert' => false,
  165. 'edit' => false,
  166. 'delete' => false,
  167. # 快捷更新
  168. 'list_button' => array
  169. (
  170. 'edit' => array('审核', 'status,status_desc', '{status} == 1'),
  171. ),
  172. ),
  173. );