shop_cart.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. $status = array
  3. (
  4. 1 => '默认选中',
  5. 2 => '未选中',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'shop_cart',
  11. # 显示给用户看的名称
  12. 'lang' => '门店购物车',
  13. 'menu' => false,
  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. 'search' => 'order',
  25. 'update' => 'hidden',
  26. //'list' => true,
  27. ),
  28. 'shop_id' => array
  29. (
  30. 'type' => 'int-11',
  31. 'name' => '所属门店',
  32. 'default' => '',
  33. 'desc' => '所属门店',
  34. 'match' => 'is_numeric',
  35. 'list' => 'Dever::load("shop/info-find#name", {shop_id})',
  36. ),
  37. 'goods_id' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => '商品名称',
  41. 'default' => '',
  42. 'desc' => '商品名称',
  43. 'match' => 'is_numeric',
  44. 'list' => 'Dever::load("goods/info-find#name", {goods_id})',
  45. ),
  46. 'sku_id' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => 'sku',
  50. 'default' => '',
  51. 'desc' => 'sku',
  52. 'match' => 'is_numeric',
  53. ),
  54. 'num' => array
  55. (
  56. 'type' => 'int-11',
  57. 'name' => '购买数量',
  58. 'default' => '',
  59. 'desc' => '购买数量',
  60. 'match' => 'is_numeric',
  61. 'search' => 'select',
  62. 'list' => true,
  63. ),
  64. 'status' => array
  65. (
  66. 'type' => 'int-11',
  67. 'name' => '状态',
  68. 'default' => '1',
  69. 'desc' => '状态',
  70. 'match' => 'is_numeric',
  71. //'update' => 'select',
  72. 'option' => $status,
  73. 'search' => 'select',
  74. 'list' => true,
  75. 'edit' => true,
  76. ),
  77. 'state' => array
  78. (
  79. 'type' => 'tinyint-1',
  80. 'name' => '状态',
  81. 'default' => '1',
  82. 'desc' => '请选择状态',
  83. 'match' => 'is_numeric',
  84. ),
  85. 'cdate' => array
  86. (
  87. 'type' => 'int-11',
  88. 'name' => '创建时间',
  89. 'match' => array('is_numeric', time()),
  90. 'desc' => '',
  91. # 只有insert时才生效
  92. //'insert' => true,
  93. 'search' => 'date',
  94. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  95. ),
  96. ),
  97. 'manage' => array
  98. (
  99. ),
  100. 'request' => array
  101. (
  102. ),
  103. );