member.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?php
  2. $main = array
  3. (
  4. 1 => '主账号',
  5. 2 => '子账号',
  6. );
  7. $status = array
  8. (
  9. 1 => '手动添加',
  10. 2 => '系统导入',
  11. );
  12. return array
  13. (
  14. # 表名
  15. 'name' => 'member',
  16. # 显示给用户看的名称
  17. 'lang' => '期权账户列表',
  18. 'order' => 100,
  19. 'menu' => false,
  20. 'check' => 'key,mobile',
  21. 'start' => array
  22. (
  23. 'insert' => 'option/lib/manage.checkMember',
  24. //'update' => 'option/lib/manage.checkMember',
  25. ),
  26. 'end' => array
  27. (
  28. 'insert' => 'option/lib/manage.updateMember',
  29. 'update' => 'option/lib/manage.updateMember',
  30. ),
  31. 'set' => array
  32. (
  33. 'main' => $main,
  34. ),
  35. # 数据结构
  36. 'struct' => array
  37. (
  38. 'id' => array
  39. (
  40. 'type' => 'int-11',
  41. 'name' => 'ID',
  42. 'default' => '',
  43. 'desc' => '',
  44. 'match' => 'is_numeric',
  45. 'search' => 'order',
  46. //'list' => true,
  47. ),
  48. 'main' => array
  49. (
  50. 'type' => 'tinyint-1',
  51. 'name' => '账号类型',
  52. 'default' => '1',
  53. 'desc' => '账号类型',
  54. 'match' => 'is_numeric',
  55. 'option' => $main,
  56. //'search' => 'hidden',
  57. 'update' => 'radio',
  58. //'list' => true,
  59. ),
  60. 'key' => array
  61. (
  62. 'type' => 'int-11',
  63. 'name' => '账户索引-通过账户索引来判断同一个人',
  64. 'default' => '',
  65. 'desc' => '账户索引',
  66. 'match' => 'is_string',
  67. 'update' => 'text',
  68. 'list' => true,
  69. ),
  70. 'aid' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '期权登录账户',
  74. 'default' => '-1',
  75. 'desc' => '期权登录账户',
  76. 'match' => 'is_string',
  77. 'update' => 'hidden',
  78. ),
  79. 'name' => array
  80. (
  81. 'type' => 'varchar-100',
  82. 'name' => '姓名',
  83. 'default' => '',
  84. 'desc' => '姓名',
  85. 'match' => 'is_string',
  86. 'update' => 'text',
  87. 'search' => 'fulltext',
  88. 'list' => 'Dever::load("option/lib/member.getInfo", {id})',
  89. 'list' => true,
  90. ),
  91. 'mobile' => array
  92. (
  93. 'type' => 'bigint-11',
  94. 'name' => '手机号',
  95. 'default' => '',
  96. 'desc' => '请输入手机号',
  97. 'match' => Dever::rule('mobile'),
  98. 'update' => 'text',
  99. 'search' => 'fulltext',
  100. 'list' => true,
  101. ),
  102. 'idcard' => array
  103. (
  104. 'type' => 'varchar-32',
  105. 'name' => '身份证号码',
  106. 'default' => '',
  107. 'desc' => '身份证号码',
  108. 'match' => Dever::rule('idcard'),
  109. //'match' => 'is_string',
  110. 'search' => 'fulltext',
  111. 'update' => 'text',
  112. 'list' => true,
  113. ),
  114. 'status' => array
  115. (
  116. 'type' => 'tinyint-1',
  117. 'name' => '添加方式',
  118. 'default' => '1',
  119. 'desc' => '添加方式',
  120. 'match' => 'is_numeric',
  121. 'option' => $status,
  122. 'search' => 'select',
  123. 'list' => true
  124. ),
  125. 'state' => array
  126. (
  127. 'type' => 'tinyint-1',
  128. 'name' => '状态',
  129. 'default' => '1',
  130. 'desc' => '请选择状态',
  131. 'match' => 'is_numeric',
  132. ),
  133. 'cdate' => array
  134. (
  135. 'type' => 'int-11',
  136. 'name' => '创建时间',
  137. 'match' => array('is_numeric', time()),
  138. 'desc' => '',
  139. # 只有insert时才生效
  140. 'insert' => true,
  141. 'search' => 'date',
  142. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  143. ),
  144. ),
  145. 'manage' => array
  146. (
  147. 'insert' => false,
  148. 'delete' => false,
  149. 'edit' => false,
  150. 'list_button' => array
  151. (
  152. //'list' => array('查看详情', '"cash&mid={id}&page_type=1&search_audit=-1"'),
  153. 'fast_add' => array('期权价值交付与发放', 'push_cash&search_option_aid={aid}&search_option_mid={id}'),
  154. 'list1' => array('交付记录', '"bill_jiaofu&search_option_main=2&search_option_aid={aid}&search_option_mid={id}&oper_table=member&top_table=account"'),
  155. 'list2' => array('发放记录', '"bill_fafang&search_option_main=2&search_option_aid={aid}&search_option_mid={id}&oper_table=member&top_table=account"'),
  156. 'list3' => array('兑付记录', '"bill_duifu&search_option_main=2&search_option_aid={aid}&search_option_mid={id}&oper_table=member&top_table=account"'),
  157. ),
  158. ),
  159. 'request' => array
  160. (
  161. 'getData' => array
  162. (
  163. # 匹配的正则或函数 选填项
  164. 'option' => array
  165. (
  166. 'main' => 'yes',
  167. 'state' => 1,
  168. ),
  169. 'order' => array('id' => 'desc'),
  170. 'type' => 'all',
  171. 'col' => '*',
  172. ),
  173. # 获取主账号
  174. 'getMain' => array
  175. (
  176. # 匹配的正则或函数 选填项
  177. 'option' => array
  178. (
  179. 'mobile' => 'yes',
  180. 'key' => 'yes',
  181. 'main' => 1,
  182. 'state' => 1,
  183. ),
  184. 'type' => 'one',
  185. 'col' => '*',
  186. ),
  187. # 获取子账号
  188. 'getChild' => array
  189. (
  190. # 匹配的正则或函数 选填项
  191. 'option' => array
  192. (
  193. 'mobile' => 'yes',
  194. 'key' => 'yes',
  195. 'main' => 2,
  196. 'state' => 1,
  197. ),
  198. 'type' => 'one',
  199. 'col' => '*',
  200. ),
  201. ),
  202. );