...
|
...
|
@@ -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,10 +369,16 @@ class ShopModel |
|
|
'url'=> $resource['url'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
return array(
|
|
|
'title' => isset($result[0]['title']) ? $result[0]['title'] : '经典推荐',
|
|
|
'list'=> $result
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 热门推荐
|
|
|
* @param type $data
|
...
|
...
|
@@ -419,10 +395,16 @@ class ShopModel |
|
|
'url'=> $resource['url'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
return array(
|
|
|
'title' => isset($result[0]['title']) ? $result[0]['title'] : '热销推荐',
|
|
|
'list'=> $result
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 水牌
|
|
|
* @param type $data
|
...
|
...
|
@@ -476,7 +458,7 @@ class ShopModel |
|
|
);
|
|
|
}
|
|
|
|
|
|
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'])) {
|
...
|
...
|
|