apply.php 4.1 KB

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