manage_config.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?php
  2. $home_top_type = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'manage_config',
  11. # 显示给用户看的名称
  12. 'lang' => '门店小程序信息',
  13. 'order' => 1,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => '平台ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. ),
  25. 'name' => array
  26. (
  27. 'type' => 'varchar-32',
  28. 'name' => '小程序名称',
  29. 'default' => '',
  30. 'desc' => '小程序名称',
  31. 'match' => 'is_string',
  32. 'update' => 'text',
  33. ),
  34. 'info' => array
  35. (
  36. 'type' => 'varchar-1000',
  37. 'name' => '小程序业务描述',
  38. 'default' => '',
  39. 'desc' => '小程序业务描述',
  40. 'match' => 'option',
  41. 'update' => 'textarea',
  42. ),
  43. 'logo' => array
  44. (
  45. 'type' => 'varchar-150',
  46. 'name' => '小程序LOGO',
  47. 'default' => '',
  48. 'desc' => '小程序LOGO',
  49. 'match' => 'option',
  50. 'update' => 'image',
  51. 'key' => '1',
  52. 'place' => '150',
  53. ),
  54. 'applet' => array
  55. (
  56. 'type' => 'varchar-150',
  57. 'name' => '小程序二维码',
  58. 'default' => '',
  59. 'desc' => '小程序二维码',
  60. 'match' => 'option',
  61. 'update' => 'image',
  62. 'key' => '1',
  63. 'place' => '150*150',
  64. ),
  65. 'phone' => array
  66. (
  67. 'type' => 'varchar-100',
  68. 'name' => '客服电话',
  69. 'default' => '',
  70. 'desc' => '请输入客服电话',
  71. 'match' => 'option',
  72. 'update' => 'text',
  73. ),
  74. 'dz_phone' => array
  75. (
  76. 'type' => 'varchar-100',
  77. 'name' => '对账专员电话',
  78. 'default' => '',
  79. 'desc' => '请输入对账专员电话',
  80. 'match' => 'option',
  81. 'update' => 'text',
  82. ),
  83. 'km' => array
  84. (
  85. 'type' => 'varchar-32',
  86. 'name' => '推荐门店公里数-单位是公里,如5公里,填写5即可',
  87. 'default' => '5',
  88. 'desc' => '推荐门店公里数',
  89. 'match' => 'option',
  90. 'update' => 'text',
  91. ),
  92. 'video' => array
  93. (
  94. 'type' => 'varchar-800',
  95. 'name' => '视频宣传片-视频格式mp4,上传大小不能超过4G',
  96. 'default' => '',
  97. 'desc' => '视频宣传片',
  98. 'match' => 'option',
  99. 'update' => 'video',
  100. 'key' => '3',
  101. 'place' => '150',
  102. 'upload' => 'yun',
  103. 'large' => true,
  104. 'cover' => 'video_cover',//封面图字段名
  105. ),
  106. 'video_cover' => array
  107. (
  108. 'type' => 'varchar-150',
  109. 'name' => '视频封面图-封面图自动生成,也可以更改,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  110. 'default' => '',
  111. 'desc' => '封面图',
  112. 'match' => 'option',
  113. 'update' => 'image',
  114. 'key' => '1',
  115. 'place' => '750*422',
  116. ),
  117. 'file' => array
  118. (
  119. 'type' => 'varchar-150',
  120. 'name' => '宣传文件',
  121. 'default' => '',
  122. 'desc' => '宣传文件',
  123. 'match' => 'option',
  124. 'update' => 'upload',
  125. 'key' => '4',
  126. 'upload' => 'yun',
  127. 'large' => true,
  128. ),
  129. 'rule' => array
  130. (
  131. 'type' => 'text-1000',
  132. 'name' => '门店合作规则',
  133. 'default' => '',
  134. 'desc' => '门店合作规则',
  135. 'match' => 'option',
  136. 'update' => 'editor',
  137. 'key' => 1,
  138. ),
  139. 'fund' => array
  140. (
  141. 'type' => 'text-1000',
  142. 'name' => '门店资金规则',
  143. 'default' => '',
  144. 'desc' => '门店资金规则',
  145. 'match' => 'option',
  146. 'update' => 'editor',
  147. 'key' => 1,
  148. ),
  149. 'state' => array
  150. (
  151. 'type' => 'tinyint-1',
  152. 'name' => '状态',
  153. 'default' => '1',
  154. 'desc' => '请选择状态',
  155. 'match' => 'is_numeric',
  156. ),
  157. 'cdate' => array
  158. (
  159. 'type' => 'int-11',
  160. 'name' => '录入时间',
  161. 'match' => array('is_numeric', time()),
  162. 'desc' => '',
  163. # 只有insert时才生效
  164. 'insert' => true,
  165. ),
  166. ),
  167. 'default' => array
  168. (
  169. 'col' => 'name,info,cdate',
  170. 'value' => array
  171. (
  172. '"门店管理","门店管理",' . time(),
  173. ),
  174. ),
  175. 'manage' => array
  176. (
  177. # 后台管理不要列表页
  178. 'list' => 'update',
  179. ),
  180. 'request' => array
  181. (
  182. 'getFund' => array
  183. (
  184. # 匹配的正则或函数 选填项
  185. 'option' => array
  186. (
  187. 'state' => 1,
  188. ),
  189. 'type' => 'one',
  190. 'col' => 'fund',
  191. ),
  192. ),
  193. );