manage_config.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. 'km' => array
  75. (
  76. 'type' => 'varchar-32',
  77. 'name' => '推荐门店公里数-单位是公里,如5公里,填写5即可',
  78. 'default' => '5',
  79. 'desc' => '推荐门店公里数',
  80. 'match' => 'option',
  81. 'update' => 'text',
  82. ),
  83. 'video' => array
  84. (
  85. 'type' => 'varchar-800',
  86. 'name' => '视频宣传片-视频格式mp4,上传大小不能超过4G',
  87. 'default' => '',
  88. 'desc' => '视频宣传片',
  89. 'match' => 'option',
  90. 'update' => 'video',
  91. 'key' => '3',
  92. 'place' => '150',
  93. 'upload' => 'yun',
  94. 'large' => true,
  95. 'cover' => 'video_cover',//封面图字段名
  96. ),
  97. 'video_cover' => array
  98. (
  99. 'type' => 'varchar-150',
  100. 'name' => '视频封面图-封面图自动生成,也可以更改,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  101. 'default' => '',
  102. 'desc' => '封面图',
  103. 'match' => 'option',
  104. 'update' => 'image',
  105. 'key' => '1',
  106. 'place' => '750*1386',
  107. ),
  108. 'file' => array
  109. (
  110. 'type' => 'varchar-150',
  111. 'name' => '宣传文件',
  112. 'default' => '',
  113. 'desc' => '宣传文件',
  114. 'match' => 'option',
  115. 'update' => 'upload',
  116. 'key' => '4',
  117. ),
  118. 'rule' => array
  119. (
  120. 'type' => 'text-1000',
  121. 'name' => '门店合作规则',
  122. 'default' => '',
  123. 'desc' => '门店合作规则',
  124. 'match' => 'option',
  125. 'update' => 'editor',
  126. 'key' => 1,
  127. ),
  128. 'state' => array
  129. (
  130. 'type' => 'tinyint-1',
  131. 'name' => '状态',
  132. 'default' => '1',
  133. 'desc' => '请选择状态',
  134. 'match' => 'is_numeric',
  135. ),
  136. 'cdate' => array
  137. (
  138. 'type' => 'int-11',
  139. 'name' => '录入时间',
  140. 'match' => array('is_numeric', time()),
  141. 'desc' => '',
  142. # 只有insert时才生效
  143. 'insert' => true,
  144. ),
  145. ),
  146. 'default' => array
  147. (
  148. 'col' => 'name,info,cdate',
  149. 'value' => array
  150. (
  151. '"门店管理","门店管理",' . time(),
  152. ),
  153. ),
  154. 'manage' => array
  155. (
  156. # 后台管理不要列表页
  157. 'list' => 'update',
  158. ),
  159. );