sell_config.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. $home_top_type = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'sell_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. 'card_name' => array
  66. (
  67. 'type' => 'varchar-150',
  68. 'name' => '礼品卡名称',
  69. 'default' => '厨人E卡',
  70. 'desc' => '礼品卡名称',
  71. 'match' => 'option',
  72. 'update' => 'text',
  73. ),
  74. 'card' => array
  75. (
  76. 'type' => 'varchar-150',
  77. 'name' => '礼品卡封面',
  78. 'default' => '',
  79. 'desc' => '礼品卡封面',
  80. 'match' => 'option',
  81. 'update' => 'image',
  82. 'key' => '1',
  83. 'place' => '672*386',
  84. ),
  85. 'per' => array
  86. (
  87. 'type' => 'int-11',
  88. 'name' => '平台佣金比例-输入1就是百分之1,分账时,平台自动从支付的金额里抽取1%的手续费',
  89. 'default' => '1',
  90. 'desc' => '平台佣金比例',
  91. 'match' => 'option',
  92. 'update' => 'text',
  93. ),
  94. 'phone' => array
  95. (
  96. 'type' => 'varchar-100',
  97. 'name' => '客服电话',
  98. 'default' => '',
  99. 'desc' => '请输入客服电话',
  100. 'match' => 'option',
  101. 'update' => 'text',
  102. ),
  103. 'state' => array
  104. (
  105. 'type' => 'tinyint-1',
  106. 'name' => '状态',
  107. 'default' => '1',
  108. 'desc' => '请选择状态',
  109. 'match' => 'is_numeric',
  110. ),
  111. 'cdate' => array
  112. (
  113. 'type' => 'int-11',
  114. 'name' => '录入时间',
  115. 'match' => array('is_numeric', time()),
  116. 'desc' => '',
  117. # 只有insert时才生效
  118. 'insert' => true,
  119. ),
  120. ),
  121. 'default' => array
  122. (
  123. 'col' => 'name,info,cdate',
  124. 'value' => array
  125. (
  126. '"零售小程序","零售小程序",' . time(),
  127. ),
  128. ),
  129. 'manage' => array
  130. (
  131. # 后台管理不要列表页
  132. 'list' => 'update',
  133. ),
  134. );