...
|
...
|
@@ -48,21 +48,6 @@ class ShopModel |
|
|
$data['newArrivel']['navs'] = $list['new'];
|
|
|
}
|
|
|
break;
|
|
|
case 'brandBrowse':
|
|
|
$data['brandBrowse'] = array('title' => '品牌集合', 'list'=> $list);
|
|
|
break;
|
|
|
case 'recommend':
|
|
|
$data['recommend'] = array(
|
|
|
'title' => isset($list[0]['title']) ? $list[0]['title'] : '经典推荐',
|
|
|
'list'=> $list
|
|
|
);
|
|
|
break;
|
|
|
case 'hotRecommend':
|
|
|
$data['hotRecommend'] = array(
|
|
|
'title' => isset($list[0]['title']) ? $list[0]['title'] : '热销推荐',
|
|
|
'list'=> $list
|
|
|
);
|
|
|
break;
|
|
|
default :
|
|
|
$data[$fun] = $list;
|
|
|
}
|
...
|
...
|
@@ -148,21 +133,6 @@ class ShopModel |
|
|
$data['newArrivel']['navs'] = $list['new'];
|
|
|
}
|
|
|
break;
|
|
|
case 'brandBrowse':
|
|
|
$data['brandBrowse'] = array('title' => '品牌集合', 'list'=> $list);
|
|
|
break;
|
|
|
case 'recommend':
|
|
|
$data['recommend'] = array(
|
|
|
'title' => isset($list[0]['title']) ? $list[0]['title'] : '经典推荐',
|
|
|
'list'=> $list
|
|
|
);
|
|
|
break;
|
|
|
case 'hotRecommend':
|
|
|
$data['hotRecommend'] = array(
|
|
|
'title' => isset($list[0]['title']) ? $list[0]['title'] : '热销推荐',
|
|
|
'list'=> $list
|
|
|
);
|
|
|
break;
|
|
|
default :
|
|
|
$data[$fun] = $list;
|
|
|
}
|
...
|
...
|
@@ -399,8 +369,14 @@ class ShopModel |
|
|
'url'=> $resource['url'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
if (empty($result)) {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
return array(
|
|
|
'title' => isset($result[0]['title']) ? $result[0]['title'] : '经典推荐',
|
|
|
'list'=> $result
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -419,8 +395,14 @@ class ShopModel |
|
|
'url'=> $resource['url'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
if (empty($result)) {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
return array(
|
|
|
'title' => isset($result[0]['title']) ? $result[0]['title'] : '热销推荐',
|
|
|
'list'=> $result
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -475,8 +457,8 @@ class ShopModel |
|
|
'cur' => ($brand === strval($resource['id']))
|
|
|
);
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
|
|
|
return array('title' => '品牌集合', 'list'=> $result);
|
|
|
}
|
|
|
/**
|
|
|
* 商品标签栏
|
...
|
...
|
@@ -612,6 +594,9 @@ class ShopModel |
|
|
public static function getArticle($tag = '')
|
|
|
{
|
|
|
$result = array();
|
|
|
if (empty($tag)) {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
$article = GuangListData::article('1,2,3', 0, 0, '', 0, $tag, '', 3);
|
|
|
if (empty($article['data']['list']['artList'])) {
|
...
|
...
|
|