...
|
...
|
@@ -20,7 +20,7 @@ class Style extends Model |
|
|
*/
|
|
|
public static function getStyleList($where){
|
|
|
$list = self::where($where)
|
|
|
->order('weigh desc')
|
|
|
->order('weigh asc')
|
|
|
->select();
|
|
|
foreach($list as $v){
|
|
|
$v['style_value_list'] = self::getStyleValueList($v['id']);
|
...
|
...
|
@@ -36,7 +36,7 @@ class Style extends Model |
|
|
*/
|
|
|
public static function getStyleValueList($style_id){
|
|
|
$list = StyleValue::where('style_id',$style_id)
|
|
|
->order('weigh desc')
|
|
|
->order('weigh asc')
|
|
|
->select();
|
|
|
foreach($list as $v){
|
|
|
$v['style_list'] = self::getStyleList(['id'=>['in',$v['style_ids']]]);
|
...
|
...
|
|