apply.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. # 获取分类权限
  3. $status = array
  4. (
  5. 1 => '申请中',
  6. 2 => '审核通过',
  7. 3 => '审核未通过',
  8. );
  9. return array
  10. (
  11. # 表名
  12. 'name' => 'apply',
  13. # 显示给用户看的名称
  14. 'lang' => '门店合作申请',
  15. # 后台菜单排序
  16. 'order' => 1,
  17. //'menu' => false,
  18. 'ends' => array
  19. (
  20. 'insert' => 'shop/lib/manage.upInfo',
  21. 'update' => 'shop/lib/manage.upInfo',
  22. ),
  23. # 数据结构
  24. 'struct' => array
  25. (
  26. 'id' => array
  27. (
  28. 'type' => 'int-11',
  29. 'name' => 'ID',
  30. 'default' => '',
  31. 'desc' => '',
  32. 'match' => 'is_numeric',
  33. 'search' => 'order',
  34. 'list' => true,
  35. 'order' => 'desc',
  36. ),
  37. 'name' => array
  38. (
  39. 'type' => 'varchar-100',
  40. 'name' => '申请人姓名',
  41. 'default' => '',
  42. 'desc' => '申请人姓名',
  43. 'match' => 'is_string',
  44. 'update' => 'text',
  45. 'search' => 'fulltext',
  46. 'list' => true,
  47. ),
  48. 'mobile' => array
  49. (
  50. 'type' => 'bigint-11',
  51. 'name' => '申请人电话',
  52. 'default' => '',
  53. 'desc' => '申请人电话',
  54. 'match' => 'is_numeric',
  55. 'update' => 'text',
  56. 'search' => 'fulltext',
  57. 'list' => true,
  58. ),
  59. 'area' => array
  60. (
  61. 'type' => 'varchar-500',
  62. 'name' => '所在城市',
  63. 'default' => '',
  64. 'desc' => '所在城市',
  65. 'match' => 'option',
  66. 'search' => 'linkage',
  67. 'update' => 'linkage',
  68. 'option' => Dever::url('api.get?level_total=2', 'area'),
  69. 'list' => 'Dever::load("area/api.string", "{area}")',
  70. ),
  71. 'province' => array
  72. (
  73. 'type' => 'int-11',
  74. 'name' => '省份',
  75. 'default' => '',
  76. 'desc' => '省份',
  77. 'match' => 'option',
  78. //'update' => 'text',
  79. ),
  80. 'city' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => '城市',
  84. 'default' => '',
  85. 'desc' => '城市',
  86. 'match' => 'option',
  87. //'update' => 'text',
  88. ),
  89. 'lng' => array
  90. (
  91. 'type' => 'varchar-100',
  92. 'name' => '经度',
  93. 'default' => '',
  94. 'desc' => '经度',
  95. 'match' => 'option',
  96. //'update' => 'text',
  97. //'list' => true,
  98. ),
  99. 'lat' => array
  100. (
  101. 'type' => 'varchar-100',
  102. 'name' => '纬度',
  103. 'default' => '',
  104. 'desc' => '纬度',
  105. 'match' => 'option',
  106. //'update' => 'text',
  107. //'list' => true,
  108. ),
  109. 'status' => array
  110. (
  111. 'type' => 'int-11',
  112. 'name' => '申请状态',
  113. 'default' => '1',
  114. 'desc' => '申请状态',
  115. 'match' => 'is_numeric',
  116. //'update' => 'select',
  117. 'option' => $status,
  118. 'search' => 'select',
  119. 'list' => true,
  120. 'edit' => true,
  121. ),
  122. 'state' => array
  123. (
  124. 'type' => 'tinyint-1',
  125. 'name' => '状态',
  126. 'default' => '1',
  127. 'desc' => '请选择状态',
  128. 'match' => 'is_numeric',
  129. ),
  130. 'cdate' => array
  131. (
  132. 'type' => 'int-11',
  133. 'name' => '录入时间',
  134. 'match' => array('is_numeric', time()),
  135. 'desc' => '',
  136. # 只有insert时才生效
  137. 'insert' => true,
  138. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  139. ),
  140. ),
  141. 'manage' => array
  142. (
  143. 'insert' => false,
  144. ),
  145. 'request' => array
  146. (
  147. ),
  148. );