config.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?php
  2. $ios_pay = array
  3. (
  4. 1 => '关闭小程序支付',
  5. 2 => '开启公众号支付',
  6. 3 => '开启小程序支付',
  7. );
  8. $video = array
  9. (
  10. 1 => '显示',
  11. 2 => '不显示',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'config',
  17. # 显示给用户看的名称
  18. 'lang' => '基本配置',
  19. 'order' => 1,
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => '系统ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. ),
  31. 'hr1' => array
  32. (
  33. 'name' => '通用设置',
  34. 'class' => '',//本项必须填写
  35. 'attr' => '',
  36. ),
  37. 'name' => array
  38. (
  39. 'type' => 'varchar-32',
  40. 'name' => '站点名称',
  41. 'default' => '',
  42. 'desc' => '请输入站点名称',
  43. 'match' => 'is_string',
  44. 'update' => 'text',
  45. ),
  46. 'info' => array
  47. (
  48. 'type' => 'text-255',
  49. 'name' => '站点介绍',
  50. 'default' => '',
  51. 'desc' => '站点介绍',
  52. 'match' => 'option',
  53. 'update' => 'textarea',
  54. ),
  55. 'keywords' => array
  56. (
  57. 'type' => 'varchar-800',
  58. 'name' => '站点关键字-多个用逗号隔开',
  59. 'default' => '',
  60. 'desc' => '站点关键字',
  61. 'match' => 'option',
  62. 'update' => 'textarea',
  63. ),
  64. 'logo' => array
  65. (
  66. 'type' => 'varchar-150',
  67. 'name' => 'logo图片',
  68. 'default' => '',
  69. 'desc' => 'logo图片',
  70. 'match' => 'option',
  71. 'update' => 'image',
  72. 'key' => '1',
  73. 'place' => '200*40',
  74. ),
  75. 'hr2' => array
  76. (
  77. 'name' => '通用设置',
  78. 'class' => '',//本项必须填写
  79. 'attr' => '',
  80. ),
  81. 'curtime' => array
  82. (
  83. 'type' => 'varchar-300',
  84. 'name' => '营业时间',
  85. 'default' => '9:00-18:00',
  86. 'desc' => '营业时间',
  87. 'match' => 'option',
  88. 'update' => 'text',
  89. ),
  90. 'mobile' => array
  91. (
  92. 'type' => 'varchar-300',
  93. 'name' => '联系电话',
  94. 'default' => '',
  95. 'desc' => '联系电话',
  96. 'match' => 'option',
  97. 'update' => 'textarea',
  98. ),
  99. 'email' => array
  100. (
  101. 'type' => 'varchar-300',
  102. 'name' => '联系邮箱',
  103. 'default' => '',
  104. 'desc' => '联系邮箱',
  105. 'match' => 'option',
  106. 'update' => 'textarea',
  107. ),
  108. 'address' => array
  109. (
  110. 'type' => 'varchar-1000',
  111. 'name' => '联系地址',
  112. 'default' => '',
  113. 'desc' => '联系地址',
  114. 'match' => 'option',
  115. 'update' => 'textarea',
  116. ),
  117. 'wechat' => array
  118. (
  119. 'type' => 'varchar-150',
  120. 'name' => '联系微信二维码-图片尺寸450*450px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  121. 'default' => '',
  122. 'desc' => '联系微信微信二维码',
  123. 'match' => 'option',
  124. 'update' => 'image',
  125. 'key' => '1',
  126. 'place' => '150',
  127. //直接上传到云端
  128. //'upload' => 'qiniu',
  129. //上传大数据
  130. //'large' => true,
  131. ),
  132. 'contact' => array
  133. (
  134. 'type' => 'varchar-800',
  135. 'name' => '联系简介',
  136. 'default' => '',
  137. 'desc' => '联系简介',
  138. 'match' => 'option',
  139. 'update' => 'textarea',
  140. ),
  141. 'map_name' => array
  142. (
  143. 'type' => 'varchar-800',
  144. 'name' => '高德地图标注名称-为空则自动显示站点名称',
  145. 'default' => '',
  146. 'desc' => '高德地图标注名称',
  147. 'match' => 'option',
  148. 'update' => 'text',
  149. ),
  150. 'map' => array
  151. (
  152. 'type' => 'varchar-800',
  153. 'name' => '高德地图坐标-<a href="https://lbs.amap.com/console/show/picker" target="_blank">点此访问坐标拾取工具</a>',
  154. 'default' => '116.470098,39.992838',
  155. 'desc' => '高德地图坐标',
  156. 'match' => 'option',
  157. 'update' => 'text',
  158. ),
  159. 'foot' => array
  160. (
  161. 'type' => 'text-255',
  162. 'name' => '底部联系信息',
  163. 'default' => '',
  164. 'desc' => '底部联系信息',
  165. 'match' => 'option',
  166. 'update' => 'editor',
  167. ),
  168. 'cdate' => array
  169. (
  170. 'type' => 'int-11',
  171. 'name' => '录入时间',
  172. 'match' => array('is_numeric', time()),
  173. 'desc' => '',
  174. # 只有insert时才生效
  175. 'insert' => true,
  176. ),
  177. ),
  178. 'default' => array
  179. (
  180. 'col' => 'name,info,cdate',
  181. 'value' => array
  182. (
  183. '"小码侠","小码侠",' . time(),
  184. ),
  185. ),
  186. 'manage' => array
  187. (
  188. # 后台管理不要列表页
  189. 'list' => 'update',
  190. ),
  191. );