agent.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. return array
  3. (
  4. 'list' => array
  5. (
  6. 'field' => array
  7. (
  8. 'name',
  9. 'level',
  10. 'price',
  11. 'pay',
  12. 'status' => array
  13. (
  14. 'type' => 'switch',
  15. 'show' => '{status}',
  16. 'active_value' => 1,
  17. 'inactive_value' => 2,
  18. ),
  19. ),
  20. 'button' => array
  21. (
  22. '新增' => array('add'),
  23. ),
  24. 'data_button' => array
  25. (
  26. '编辑' => 'edit',
  27. ),
  28. 'search' => array
  29. (
  30. 'name',
  31. ),
  32. ),
  33. 'update' => array
  34. (
  35. 'tab' => array
  36. (
  37. '基本信息' => 'name,level,price,pay,content',
  38. '权益设置' => 'vip_fee,agent_fee,place/agent_price',
  39. ),
  40. 'field' => array
  41. (
  42. 'name' => array
  43. (
  44. 'rules' => true,
  45. ),
  46. 'level' => array
  47. (
  48. 'rules' => true,
  49. 'desc' => '将按照等级数字正序排序',
  50. ),
  51. 'price' => array
  52. (
  53. 'rules' => true,
  54. ),
  55. 'pay' => array
  56. (
  57. 'type' => 'radio',
  58. 'rules' => true,
  59. 'tips' => '差额支付:如用户已是等级1的代理,购买等级2时会自动减去等级1已支付的金额<br />全额支付:根据代理价格全额支付',
  60. ),
  61. 'content' => array
  62. (
  63. 'type' => 'editor',
  64. 'editorMenu' => array
  65. (
  66. 'uploadImage' => 1,
  67. 'uploadVideo' => 3,
  68. ),
  69. ),
  70. 'vip_fee' => array
  71. (
  72. 'desc' => '会员价格*佣金比例%=代理佣金 如:代理佣金填写为10,则代理佣金=会员价格*10%',
  73. 'placeholder' => '会员价格*佣金比例%=代理佣金',
  74. ),
  75. 'agent_fee' => array
  76. (
  77. 'desc' => '代理价格*佣金比例%=代理佣金 如:代理佣金填写为10,则代理佣金=代理价格*10%',
  78. 'placeholder' => '代理价格*佣金比例%=代理佣金',
  79. ),
  80. 'place/agent_price' => array
  81. (
  82. 'name' => '资源默认折扣',
  83. 'where' => array('agent_id' => 'id'),
  84. 'desc' => '设置购买资源的默认折扣和代理佣金比例,如果资源里单独设置了“代理折扣/价格”或者“代理佣金”,此处相应的设置将失效',
  85. 'default' => Dever::load('manage', 'place')->getResourceDefault(array('per' => '')),
  86. ),
  87. ),
  88. ),
  89. );