info.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. return array
  3. (
  4. 'list' => array
  5. (
  6. 'field' => array
  7. (
  8. 'id',
  9. 'name',
  10. 'discount',
  11. 'cash' => array
  12. (
  13. 'name' => '余额 / 授信 / 充值',
  14. 'type' => 'show',
  15. 'show' => '"{cash}/{credit}/{p_cash}"',
  16. ),
  17. 'status' => array
  18. (
  19. 'type' => 'switch',
  20. 'show' => '{status}',
  21. 'active_value' => 1,
  22. 'inactive_value' => 2,
  23. ),
  24. ),
  25. 'data_button' => array
  26. (
  27. '编辑' => array('fastedit', 'name,credit,discount'),
  28. '渠道设置' => array('edit', 'seller/channel', 'Operation'),
  29. '折扣设置' => array('edit', 'seller/goods', 'Odometer'),
  30. '查看账户' => array('fastedit', 'doc,host,appkey,appsecret', 'View'),
  31. ),
  32. 'button' => array
  33. (
  34. '新增' => array('fastadd', 'name,credit,discount'),
  35. ),
  36. 'search' => array
  37. (
  38. 'name',
  39. ),
  40. ),
  41. 'update' => array
  42. (
  43. 'field' => array
  44. (
  45. 'doc' => array
  46. (
  47. 'name' => '接口文档',
  48. 'type' => 'show',
  49. 'default' => 'http://www.docway.net/project/1euEYXnqSa9/1euEYZQ2rUu',
  50. ),
  51. 'host' => array
  52. (
  53. 'name' => '接口域名',
  54. 'type' => 'show',
  55. 'default' => Dever::host(),
  56. ),
  57. 'appkey' => 'show',
  58. 'appsecret' => 'show',
  59. 'name',
  60. 'credit',
  61. 'discount' => array
  62. (
  63. 'desc' => '直接填写折扣数值,如0.98',
  64. ),
  65. 'seller/channel' => array
  66. (
  67. 'name' => '渠道设置',
  68. 'where' => array('seller_id' => 'id'),
  69. ),
  70. 'seller/goods' => array
  71. (
  72. 'name' => '折扣设置',
  73. 'desc' => '设置之后,默认折扣将失效',
  74. 'where' => array('seller_id' => 'id'),
  75. 'show' => false,
  76. ),
  77. ),
  78. 'end' => 'seller/manage.createAppKey',
  79. ),
  80. );