|
@@ -20,6 +20,11 @@ $product = function()
|
|
|
return Dever::db('journal/info')->state();
|
|
|
};
|
|
|
|
|
|
+$buy = function()
|
|
|
+{
|
|
|
+ return Dever::db('journal/buy_num')->state();
|
|
|
+};
|
|
|
+
|
|
|
return array
|
|
|
(
|
|
|
|
|
@@ -57,7 +62,7 @@ return array
|
|
|
'match' => 'is_string',
|
|
|
'update' => 'text',
|
|
|
'search' => 'fulltext',
|
|
|
-
|
|
|
+ 'list' => true,
|
|
|
|
|
|
),
|
|
|
|
|
@@ -71,7 +76,7 @@ return array
|
|
|
'update' => 'text',
|
|
|
'search' => 'fulltext',
|
|
|
'list_name' => '订单信息',
|
|
|
-
|
|
|
+ 'list' => 'Dever::load("journal/lib/manage.showOrderUser", "{id}")',
|
|
|
),
|
|
|
|
|
|
'uid' => array
|
|
@@ -84,6 +89,16 @@ return array
|
|
|
'update' => 'text',
|
|
|
),
|
|
|
|
|
|
+ 'source_uid' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '邀请人',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '邀请人',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
'product_id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
@@ -97,6 +112,19 @@ return array
|
|
|
|
|
|
),
|
|
|
|
|
|
+ 'buy_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '购买本数',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '购买本数',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'option' => $buy,
|
|
|
+ 'search' => 'select',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
'type' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
@@ -246,18 +274,18 @@ return array
|
|
|
|
|
|
'manage' => array
|
|
|
(
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ 'delete' => false,
|
|
|
+ 'edit' => false,
|
|
|
+ 'insert' => false,
|
|
|
|
|
|
'button' => array
|
|
|
(
|
|
|
- '导出订单' => array('location', 'service/lib/manage.out'),
|
|
|
+
|
|
|
),
|
|
|
|
|
|
'list_button' => array(
|
|
|
- 'edit' => array('退款', 'tk_time,tk_desc,tk_admin', '{status} > 1'),
|
|
|
- 'delete' => array('删除', '', '{status} == 1'),
|
|
|
+
|
|
|
+
|
|
|
),
|
|
|
),
|
|
|
|