...
|
...
|
@@ -220,7 +220,7 @@ class ShopModel |
|
|
|
|
|
|
|
|
/**
|
|
|
* 店铺Banner 资源位
|
|
|
* 店铺-经典Banner 资源位
|
|
|
* @param type $data []
|
|
|
*/
|
|
|
public static function shopTopBanner($data)
|
...
|
...
|
@@ -231,21 +231,50 @@ class ShopModel |
|
|
'bannerHeight' => 150
|
|
|
);
|
|
|
|
|
|
if (isset($data['resource_data'][0]['shopSrc'])) {
|
|
|
if (!empty($data['resource_data'][0]['shopSrc'])) {
|
|
|
$result['banner'] = self::imageView2($data['resource_data'][0]['shopSrc'], 1150, 150);
|
|
|
}
|
|
|
|
|
|
if (isset($data['resource_data'][0]['detailSrc'])) {
|
|
|
if (!empty($data['resource_data'][0]['detailSrc'])) {
|
|
|
$result['detailSrc'] = self::imageView2($data['resource_data'][0]['detailSrc'], 1150, 150);
|
|
|
}
|
|
|
|
|
|
if (isset($data['resource_data'][0]['isShowShopName'])) {
|
|
|
if (!empty($data['resource_data'][0]['isShowShopName'])) {
|
|
|
$result['isShowShopName'] = $data['resource_data'][0]['isShowShopName'] === 'Y';
|
|
|
}
|
|
|
return $result;
|
|
|
|
|
|
}
|
|
|
/**
|
|
|
* 店铺-基础Banner 资源位
|
|
|
* @param type $data
|
|
|
* @return type []
|
|
|
*/
|
|
|
public static function shopTopBanner_base($data)
|
|
|
{
|
|
|
$result = array(
|
|
|
'banner' => '',
|
|
|
'isShowShopName' => false,
|
|
|
'bannerHeight' => 150
|
|
|
);
|
|
|
|
|
|
if (!empty($data['resource_data'][0]['shopSrc'])) {
|
|
|
$result['banner'] = $data['resource_data'][0]['shopSrc'];
|
|
|
}
|
|
|
|
|
|
if (!empty($data['resource_data'][0]['detailSrc'])) {
|
|
|
$result['detailSrc'] = $data['resource_data'][0]['detailSrc'];
|
|
|
}
|
|
|
|
|
|
if (!empty($data['resource_data'][0]['isShowShopName'])) {
|
|
|
$result['isShowShopName'] = $data['resource_data'][0]['isShowShopName'] === 'Y';
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 导航栏 资源位
|
|
|
* @param type $data
|
|
|
* @return type []
|
...
|
...
|
@@ -573,7 +602,7 @@ class ShopModel |
|
|
if (is_callable("self::$fun")) {
|
|
|
$list = self::$fun(self::getResourceData($list), $parameters);
|
|
|
switch ($fun) {
|
|
|
case 'shopTopBanner':
|
|
|
case 'shopTopBanner_base':
|
|
|
case 'signboard':
|
|
|
$data[$fun] = $list;
|
|
|
break;
|
...
|
...
|
|