config.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. 'logo' => array
  56. (
  57. 'type' => 'varchar-150',
  58. 'name' => 'logo图片',
  59. 'default' => '',
  60. 'desc' => 'logo图片',
  61. 'match' => 'option',
  62. 'update' => 'image',
  63. 'key' => '1',
  64. 'place' => '150',
  65. ),
  66. 'hr2' => array
  67. (
  68. 'name' => '分享设置',
  69. 'class' => '',//本项必须填写
  70. 'attr' => '',
  71. ),
  72. 'article_share_name' => array
  73. (
  74. 'type' => 'varchar-100',
  75. 'name' => '图文详情页分享文字设置',
  76. 'default' => '喜欢就邀请好友一起阅读',
  77. 'desc' => '图文详情页分享文字设置',
  78. 'match' => 'is_string',
  79. 'update' => 'text',
  80. ),
  81. 'vod_share_name' => array
  82. (
  83. 'type' => 'varchar-100',
  84. 'name' => '视频详情页分享文字设置',
  85. 'default' => '喜欢就邀请好友一起阅读',
  86. 'desc' => '视频详情页分享文字设置',
  87. 'match' => 'is_string',
  88. 'update' => 'text',
  89. ),
  90. 'live_share_name' => array
  91. (
  92. 'type' => 'varchar-100',
  93. 'name' => '直播详情页分享文字设置',
  94. 'default' => '喜欢就邀请好友一起阅读',
  95. 'desc' => '直播详情页分享文字设置',
  96. 'match' => 'is_string',
  97. 'update' => 'text',
  98. ),
  99. 'hr3' => array
  100. (
  101. 'name' => '小程序支付设置',
  102. 'class' => '',//本项必须填写
  103. 'attr' => '',
  104. ),
  105. 'ios_pay' => array
  106. (
  107. 'type' => 'int-11',
  108. 'name' => 'ios支付设置',
  109. 'default' => '1',
  110. 'desc' => 'ios支付设置',
  111. 'match' => 'is_numeric',
  112. 'update' => 'radio',
  113. 'option' => $ios_pay,
  114. ),
  115. 'ios_pay_pic' => array
  116. (
  117. 'type' => 'varchar-150',
  118. 'name' => 'ios支付引导图-ios支付引导图',
  119. 'default' => '',
  120. 'desc' => 'ios支付引导图',
  121. 'match' => 'option',
  122. 'update' => 'image',
  123. 'key' => '1',
  124. 'place' => '150',
  125. //直接上传到云端
  126. //'upload' => 'qiniu',
  127. //上传大数据
  128. //'large' => true,
  129. ),
  130. 'hr4' => array
  131. (
  132. 'name' => '公众号支付设置',
  133. 'class' => '',//本项必须填写
  134. 'attr' => '',
  135. ),
  136. 'service_name' => array
  137. (
  138. 'type' => 'varchar-100',
  139. 'name' => '公众号名称',
  140. 'default' => '',
  141. 'desc' => '公众号名称',
  142. 'match' => 'option',
  143. 'update' => 'text',
  144. ),
  145. 'service_text' => array
  146. (
  147. 'type' => 'varchar-100',
  148. 'name' => '公众号支付成功时的小程序名称',
  149. 'default' => 'Jstyle精美电子刊',
  150. 'desc' => '公众号支付成功时的小程序名称',
  151. 'match' => 'is_string',
  152. 'update' => 'text',
  153. ),
  154. 'hr5' => array
  155. (
  156. 'name' => '视频设置',
  157. 'class' => '',//本项必须填写
  158. 'attr' => '',
  159. ),
  160. 'video' => array
  161. (
  162. 'type' => 'int-11',
  163. 'name' => '是否显示视频',
  164. 'default' => '1',
  165. 'desc' => '是否显示视频',
  166. 'match' => 'is_numeric',
  167. 'update' => 'radio',
  168. 'option' => $video,
  169. ),
  170. 'version' => array
  171. (
  172. 'type' => 'varchar-100',
  173. 'name' => '版本号',
  174. 'default' => '',
  175. 'desc' => '版本号',
  176. 'match' => 'option',
  177. 'update' => 'text',
  178. ),
  179. 'hr6' => array
  180. (
  181. 'name' => 'APP分享内容',
  182. 'class' => '',//本项必须填写
  183. 'attr' => '',
  184. ),
  185. 'share_content' => array
  186. (
  187. 'type' => 'varchar-400',
  188. 'name' => 'APP固定分享内容-内容中可以设置变量,{link}为下载链接',
  189. 'default' => '',
  190. 'desc' => 'APP固定分享内容',
  191. 'match' => 'is_string',
  192. 'update' => 'textarea',
  193. ),
  194. 'ios_link' => array
  195. (
  196. 'type' => 'varchar-200',
  197. 'name' => 'IOS下载链接',
  198. 'default' => '',
  199. 'desc' => 'IOS下载链接',
  200. 'match' => 'is_string',
  201. 'update' => 'textarea',
  202. ),
  203. 'android_link' => array
  204. (
  205. 'type' => 'varchar-200',
  206. 'name' => 'android下载链接',
  207. 'default' => '',
  208. 'desc' => 'android下载链接',
  209. 'match' => 'is_string',
  210. 'update' => 'textarea',
  211. ),
  212. 'cdate' => array
  213. (
  214. 'type' => 'int-11',
  215. 'name' => '录入时间',
  216. 'match' => array('is_numeric', time()),
  217. 'desc' => '',
  218. # 只有insert时才生效
  219. 'insert' => true,
  220. ),
  221. ),
  222. 'default' => array
  223. (
  224. 'col' => 'name,info,cdate',
  225. 'value' => array
  226. (
  227. '"精美时尚内容平台","精美时尚内容平台",' . time(),
  228. ),
  229. ),
  230. /*
  231. 'alter' => array
  232. (
  233. 2 => array
  234. (
  235. array('update', 'task_id', 'task_id', 'varchar-800 软装任务链接'),
  236. //array('add', 'config', 'config', 'int-11 1 配置'),
  237. ),
  238. 'version' => 2,
  239. ),
  240. */
  241. 'manage' => array
  242. (
  243. # 后台管理不要列表页
  244. 'list' => 'update',
  245. ),
  246. );