sell_config.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?php
  2. $home_top_type = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. $duihuan = array
  8. (
  9. 1 => '第一步:授权登录',
  10. 2 => '第二步:绑定厨人E卡',
  11. 3 => '第三步:购买商品',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'sell_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. 'name' => array
  32. (
  33. 'type' => 'varchar-32',
  34. 'name' => '小程序名称',
  35. 'default' => '',
  36. 'desc' => '小程序名称',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. ),
  40. 'info' => array
  41. (
  42. 'type' => 'varchar-1000',
  43. 'name' => '小程序业务描述',
  44. 'default' => '',
  45. 'desc' => '小程序业务描述',
  46. 'match' => 'option',
  47. 'update' => 'textarea',
  48. ),
  49. 'logo' => array
  50. (
  51. 'type' => 'varchar-150',
  52. 'name' => '小程序LOGO',
  53. 'default' => '',
  54. 'desc' => '小程序LOGO',
  55. 'match' => 'option',
  56. 'update' => 'image',
  57. 'key' => '1',
  58. 'place' => '150',
  59. ),
  60. 'applet' => array
  61. (
  62. 'type' => 'varchar-150',
  63. 'name' => '小程序二维码',
  64. 'default' => '',
  65. 'desc' => '小程序二维码',
  66. 'match' => 'option',
  67. 'update' => 'image',
  68. 'key' => '1',
  69. 'place' => '150*150',
  70. ),
  71. 'card_name' => array
  72. (
  73. 'type' => 'varchar-150',
  74. 'name' => '礼品卡名称',
  75. 'default' => '厨人E卡',
  76. 'desc' => '礼品卡名称',
  77. 'match' => 'option',
  78. 'update' => 'text',
  79. ),
  80. 'card' => array
  81. (
  82. 'type' => 'varchar-150',
  83. 'name' => '礼品卡封面',
  84. 'default' => '',
  85. 'desc' => '礼品卡封面',
  86. 'match' => 'option',
  87. 'update' => 'image',
  88. 'key' => '1',
  89. 'place' => '672*386',
  90. ),
  91. 'per' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '平台佣金比例-输入1就是百分之1,分账时,平台自动从支付的金额里抽取1%的手续费',
  95. 'default' => '1',
  96. 'desc' => '平台佣金比例',
  97. 'match' => 'option',
  98. 'update' => 'text',
  99. ),
  100. 'cash' => array
  101. (
  102. 'type' => 'text-255',
  103. 'name' => '钱包提示',
  104. 'default' => '',
  105. 'desc' => '平台佣金比例',
  106. 'match' => 'option',
  107. 'update' => 'editor',
  108. ),
  109. 'cash_tx' => array
  110. (
  111. 'type' => 'int-11',
  112. 'name' => '钱包提现手续费-输入1就是百分之1',
  113. 'default' => '8',
  114. 'desc' => '钱包提现手续费',
  115. 'match' => 'option',
  116. 'update' => 'text',
  117. ),
  118. 'phone' => array
  119. (
  120. 'type' => 'varchar-100',
  121. 'name' => '客服电话',
  122. 'default' => '',
  123. 'desc' => '请输入客服电话',
  124. 'match' => 'option',
  125. 'update' => 'text',
  126. ),
  127. 'duihuan_pic' => array
  128. (
  129. 'type' => 'varchar-150',
  130. 'name' => '兑换页说明图片',
  131. 'default' => '',
  132. 'desc' => '兑换页底部描述',
  133. 'match' => 'option',
  134. 'update' => 'image',
  135. 'key' => 1,
  136. ),
  137. 'duihuan' => array
  138. (
  139. 'type' => 'text-255',
  140. 'name' => '兑换页信息',
  141. 'default' => '',
  142. 'desc' => '兑换页信息',
  143. 'match' => 'is_string',
  144. 'option' => $duihuan,
  145. 'update' => array
  146. (
  147. array
  148. (
  149. 'col' => 'name',
  150. 'name' => '标题',
  151. 'default' => '',
  152. 'desc' => '标题',
  153. 'match' => 'is_string',
  154. 'update' => 'text',
  155. ),
  156. array
  157. (
  158. 'col' => 'pic',
  159. 'name' => '图片-为空则不显示,一般为做好的帮助提示图片',
  160. 'default' => '',
  161. 'desc' => '图片',
  162. 'match' => 'is_string',
  163. 'update' => 'image',
  164. 'key' => 1,
  165. ),
  166. array
  167. (
  168. 'col' => 'desc',
  169. 'name' => '描述-为空则不显示',
  170. 'default' => '',
  171. 'desc' => '描述',
  172. 'match' => 'is_string',
  173. 'update' => 'textarea',
  174. ),
  175. array
  176. (
  177. 'col' => 'button',
  178. 'name' => '按钮文字',
  179. 'default' => '',
  180. 'desc' => '按钮文字',
  181. 'match' => 'is_string',
  182. 'update' => 'text',
  183. ),
  184. ),
  185. ),
  186. 'duihuan_desc' => array
  187. (
  188. 'type' => 'varchar-1000',
  189. 'name' => '兑换页底部描述',
  190. 'default' => '',
  191. 'desc' => '兑换页底部描述',
  192. 'match' => 'option',
  193. 'update' => 'textarea',
  194. ),
  195. 'state' => array
  196. (
  197. 'type' => 'tinyint-1',
  198. 'name' => '状态',
  199. 'default' => '1',
  200. 'desc' => '请选择状态',
  201. 'match' => 'is_numeric',
  202. ),
  203. 'cdate' => array
  204. (
  205. 'type' => 'int-11',
  206. 'name' => '录入时间',
  207. 'match' => array('is_numeric', time()),
  208. 'desc' => '',
  209. # 只有insert时才生效
  210. 'insert' => true,
  211. ),
  212. ),
  213. 'default' => array
  214. (
  215. 'col' => 'name,info,cdate',
  216. 'value' => array
  217. (
  218. '"零售小程序","零售小程序",' . time(),
  219. ),
  220. ),
  221. 'manage' => array
  222. (
  223. # 后台管理不要列表页
  224. 'list' => 'update',
  225. ),
  226. );