rabin 3 years ago
parent
commit
3e5ae39cd5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/shop/database/goods_sku.php

+ 2 - 2
app/shop/database/goods_sku.php

@@ -297,8 +297,8 @@ $config = array
                 ),
                 ),
             ),
             ),
             'type' => 'all',
             'type' => 'all',
-            'order' => array('total' => 'desc', 't_2.reorder' => 'desc', 't_2.id' => 'desc', 't_2.price' => 'asc'),
-            'page' => array(30, 'list'),
+            'order' => array('t_1.total_num-t_1.sell_num' => 'desc', 't_2.reorder' => 'desc', 't_2.id' => 'desc', 't_2.price' => 'asc'),
+            'page' => array(10, 'list'),
             'col' => '*,t_2.name,t_2.cover,t_2.id as id,t_1.total_num-t_1.sell_num as total,t_1.sell_num',
             'col' => '*,t_2.name,t_2.cover,t_2.id as id,t_1.total_num-t_1.sell_num as total,t_1.sell_num',
         ),
         ),