user_bind.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. 'mid' => array
  46. (
  47. 'type' => 'int-11',
  48. 'name' => '代理商id',
  49. 'default' => '',
  50. 'desc' => '代理商id',
  51. 'match' => 'is_numeric',
  52. ),
  53. 'name' => array
  54. (
  55. 'type' => 'varchar-100',
  56. 'name' => '绑定姓名',
  57. 'default' => '',
  58. 'desc' => '姓名',
  59. 'match' => 'is_string',
  60. 'update' => 'text',
  61. 'search' => 'fulltext',
  62. 'list' => true,
  63. 'list_order' => 4,
  64. ),
  65. 'mobile' => array
  66. (
  67. 'type' => 'bigint-11',
  68. 'name' => '手机号',
  69. 'default' => '',
  70. 'desc' => '请输入手机号',
  71. 'match' => Dever::rule('mobile'),
  72. 'update' => 'text',
  73. 'search' => 'fulltext',
  74. 'list' => true,
  75. 'list_order' => 2,
  76. ),
  77. 'type' => array
  78. (
  79. 'type' => 'tinyint-1',
  80. 'name' => '类型',
  81. 'default' => '1',
  82. 'desc' => '类型',
  83. 'match' => 'is_numeric',
  84. 'option' => $type,
  85. 'update' => 'radio',
  86. 'control' => 'type',
  87. ),
  88. 'idcard' => array
  89. (
  90. 'type' => 'varchar-32',
  91. 'name' => '身份证号码',
  92. 'default' => '',
  93. 'desc' => '身份证号码',
  94. 'match' => 'is_string',
  95. 'update' => 'text',
  96. 'list' => true,
  97. 'list_order' => 5,
  98. ),
  99. 'idcard_front' => array
  100. (
  101. 'type' => 'varchar-150',
  102. 'name' => '身份证正面',
  103. 'default' => '',
  104. 'desc' => '身份证正面',
  105. 'match' => 'option',
  106. 'update' => 'image',
  107. 'key' => '8',
  108. 'place' => '660*660',
  109. ),
  110. 'idcard_back' => array
  111. (
  112. 'type' => 'varchar-150',
  113. 'name' => '身份证背面',
  114. 'default' => '',
  115. 'desc' => '身份证背面',
  116. 'match' => 'option',
  117. 'update' => 'image',
  118. 'key' => '8',
  119. 'place' => '660*660',
  120. ),
  121. 'company_name' => array
  122. (
  123. 'type' => 'varchar-100',
  124. 'name' => '公司名称',
  125. 'default' => '',
  126. 'desc' => '公司名称',
  127. 'match' => 'is_string',
  128. 'update' => 'text',
  129. //'search' => 'fulltext',
  130. //'list' => true,
  131. 'show' => 'type=2',
  132. ),
  133. 'company_pic' => array
  134. (
  135. 'type' => 'varchar-150',
  136. 'name' => '营业执照',
  137. 'default' => '',
  138. 'desc' => '营业执照',
  139. 'match' => 'option',
  140. 'update' => 'image',
  141. 'key' => '8',
  142. 'place' => '660*660',
  143. 'show' => 'type=2',
  144. ),
  145. 'company_number' => array
  146. (
  147. 'type' => 'varchar-80',
  148. 'name' => '营业执照号码',
  149. 'default' => '',
  150. 'desc' => '营业执照号码',
  151. 'match' => 'is_string',
  152. 'update' => 'text',
  153. 'show' => 'type=2',
  154. ),
  155. 'status' => array
  156. (
  157. 'type' => 'tinyint-1',
  158. 'name' => '状态',
  159. 'default' => '1',
  160. 'desc' => '状态',
  161. 'match' => 'is_numeric',
  162. 'option' => $status,
  163. 'search' => 'select',
  164. 'list' => true,
  165. ),
  166. 'state' => array
  167. (
  168. 'type' => 'tinyint-1',
  169. 'name' => '状态',
  170. 'default' => '1',
  171. 'desc' => '请选择状态',
  172. 'match' => 'is_numeric',
  173. ),
  174. 'cdate' => array
  175. (
  176. 'type' => 'int-11',
  177. 'name' => '申请日期',
  178. 'match' => array('is_numeric', time()),
  179. 'desc' => '',
  180. # 只有insert时才生效
  181. 'insert' => true,
  182. 'search' => 'date',
  183. 'list' => 'date("Y-m-d H:i", {cdate})',
  184. 'list_order' => 3,
  185. ),
  186. ),
  187. 'manage' => array
  188. (
  189. 'insert' => false,
  190. 'delete' => false,
  191. 'edit' => false,
  192. 'page_list' => 'user_bind',
  193. 'list_button' => array
  194. (
  195. 'list' => array('绑定身份', '"user_bind&id={id}&page_type=1"', '{status} == 1'),
  196. 'list1' => array('关联查询', '"user_bind&id={id}&page_type=1"', '{status} == 2'),
  197. //'edit' => array('退款', 'status,tk_time,tk_pic,tk_desc,tk_admin,tk_status', '{status} == 6'),
  198. 'delete' => array('删除关联', '', '{status} == 2'),
  199. ),
  200. ),
  201. 'request' => array
  202. (
  203. 'getInfo' => array
  204. (
  205. # 匹配的正则或函数 选填项
  206. 'option' => array
  207. (
  208. 'status' => 2,
  209. 'state' => 1,
  210. ),
  211. 'order' => array('id' => 'desc'),
  212. 'type' => 'one',
  213. 'col' => '*',
  214. ),
  215. 'getData' => array
  216. (
  217. # 匹配的正则或函数 选填项
  218. 'option' => array
  219. (
  220. 'idcard' => 'yes',
  221. 'id' => array('yes', '!='),
  222. 'status' => 2,
  223. 'state' => 1,
  224. ),
  225. 'order' => array('id' => 'desc'),
  226. 'type' => 'all',
  227. 'page' => array(20, 'list'),
  228. 'col' => '*',
  229. ),
  230. ),
  231. );