user_bind.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?php
  2. $status = array
  3. (
  4. 1 => '未核实',
  5. 2 => '已核实',
  6. 3 => '驳回',
  7. );
  8. $type = array
  9. (
  10. 1 => '个人',
  11. 2 => '公司',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'user_bind',
  17. # 显示给用户看的名称
  18. 'lang' => '零售绑定认证',
  19. 'order' => 1,
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => 'ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. 'search' => 'order',
  31. //'list' => true,
  32. ),
  33. 'uid' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => '绑定用户',
  37. 'default' => '',
  38. 'desc' => '绑定用户',
  39. 'match' => 'is_numeric',
  40. 'update' => 'text',
  41. 'list_name' => '昵称',
  42. 'list' => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"',
  43. 'list_order' => 1,
  44. ),
  45. 'name' => array
  46. (
  47. 'type' => 'varchar-100',
  48. 'name' => '绑定姓名',
  49. 'default' => '',
  50. 'desc' => '姓名',
  51. 'match' => 'is_string',
  52. 'update' => 'text',
  53. 'search' => 'fulltext',
  54. 'list' => true,
  55. 'list_order' => 4,
  56. ),
  57. 'mobile' => array
  58. (
  59. 'type' => 'bigint-11',
  60. 'name' => '手机号',
  61. 'default' => '',
  62. 'desc' => '请输入手机号',
  63. 'match' => Dever::rule('mobile'),
  64. 'update' => 'text',
  65. 'search' => 'fulltext',
  66. 'list' => true,
  67. 'list_order' => 2,
  68. ),
  69. 'type' => array
  70. (
  71. 'type' => 'tinyint-1',
  72. 'name' => '类型',
  73. 'default' => '1',
  74. 'desc' => '类型',
  75. 'match' => 'is_numeric',
  76. 'option' => $type,
  77. 'update' => 'radio',
  78. 'control' => 'type',
  79. ),
  80. 'idcard' => array
  81. (
  82. 'type' => 'varchar-32',
  83. 'name' => '身份证号码',
  84. 'default' => '',
  85. 'desc' => '身份证号码',
  86. 'match' => 'is_string',
  87. 'update' => 'text',
  88. 'list' => true,
  89. 'list_order' => 5,
  90. ),
  91. 'idcard_front' => array
  92. (
  93. 'type' => 'varchar-150',
  94. 'name' => '身份证正面',
  95. 'default' => '',
  96. 'desc' => '身份证正面',
  97. 'match' => 'option',
  98. 'update' => 'image',
  99. 'key' => '8',
  100. 'place' => '660*660',
  101. ),
  102. 'idcard_back' => array
  103. (
  104. 'type' => 'varchar-150',
  105. 'name' => '身份证背面',
  106. 'default' => '',
  107. 'desc' => '身份证背面',
  108. 'match' => 'option',
  109. 'update' => 'image',
  110. 'key' => '8',
  111. 'place' => '660*660',
  112. ),
  113. 'company_name' => array
  114. (
  115. 'type' => 'varchar-100',
  116. 'name' => '公司名称',
  117. 'default' => '',
  118. 'desc' => '公司名称',
  119. 'match' => 'is_string',
  120. 'update' => 'text',
  121. //'search' => 'fulltext',
  122. //'list' => true,
  123. 'show' => 'type=2',
  124. ),
  125. 'company_pic' => array
  126. (
  127. 'type' => 'varchar-150',
  128. 'name' => '营业执照',
  129. 'default' => '',
  130. 'desc' => '营业执照',
  131. 'match' => 'option',
  132. 'update' => 'image',
  133. 'key' => '8',
  134. 'place' => '660*660',
  135. 'show' => 'type=2',
  136. ),
  137. 'company_number' => array
  138. (
  139. 'type' => 'varchar-80',
  140. 'name' => '营业执照号码',
  141. 'default' => '',
  142. 'desc' => '营业执照号码',
  143. 'match' => 'is_string',
  144. 'update' => 'text',
  145. 'show' => 'type=2',
  146. ),
  147. 'status' => array
  148. (
  149. 'type' => 'tinyint-1',
  150. 'name' => '状态',
  151. 'default' => '1',
  152. 'desc' => '状态',
  153. 'match' => 'is_numeric',
  154. 'option' => $status,
  155. 'search' => 'select',
  156. 'list' => true,
  157. ),
  158. 'state' => array
  159. (
  160. 'type' => 'tinyint-1',
  161. 'name' => '状态',
  162. 'default' => '1',
  163. 'desc' => '请选择状态',
  164. 'match' => 'is_numeric',
  165. ),
  166. 'cdate' => array
  167. (
  168. 'type' => 'int-11',
  169. 'name' => '申请日期',
  170. 'match' => array('is_numeric', time()),
  171. 'desc' => '',
  172. # 只有insert时才生效
  173. 'insert' => true,
  174. 'search' => 'date',
  175. 'list' => 'date("Y-m-d H:i", {cdate})',
  176. 'list_order' => 3,
  177. ),
  178. ),
  179. 'manage' => array
  180. (
  181. 'insert' => false,
  182. 'delete' => false,
  183. 'edit' => false,
  184. 'list_button' => array
  185. (
  186. 'list' => array('查看详情', '"member_area&mid={id}&page_type=1"'),
  187. //'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin,tk_status', '{status} == 6'),
  188. //'delete' => array('删除', '', '{status} == 1'),
  189. ),
  190. ),
  191. 'request' => array
  192. (
  193. 'getInfo' => array
  194. (
  195. # 匹配的正则或函数 选填项
  196. 'option' => array
  197. (
  198. 'status' => 2,
  199. 'state' => 1,
  200. ),
  201. 'order' => array('id' => 'desc'),
  202. 'type' => 'one',
  203. 'col' => '*',
  204. ),
  205. 'getData' => array
  206. (
  207. # 匹配的正则或函数 选填项
  208. 'option' => array
  209. (
  210. 'idcard' => 'yes',
  211. 'id' => array('yes', '!='),
  212. 'status' => 2,
  213. 'state' => 1,
  214. ),
  215. 'order' => array('id' => 'desc'),
  216. 'type' => 'all',
  217. 'page' => array(20, 'list'),
  218. 'col' => '*',
  219. ),
  220. ),
  221. );