...
|
...
|
@@ -59,7 +59,7 @@ class Process |
|
|
foreach ($data['navs']['list'] as $val) {
|
|
|
$temp['navs'][] = array(
|
|
|
'id' => '',
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['name']
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -71,7 +71,7 @@ class Process |
|
|
$val['img'] = Images::getImageUrl($val['img'], 185, 76, 1);
|
|
|
$val['url'] = Helpers::transUrl($val['url'], $type);
|
|
|
$temp['tplrecommend']['keyword'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title'],
|
|
|
'img' => $val['img']
|
|
|
);
|
...
|
...
|
@@ -84,7 +84,7 @@ class Process |
|
|
$val['url'] = Helpers::transUrl($val['url'], $type);
|
|
|
$temp['tplrecommend']['category'][] = array(
|
|
|
'name' => $val['name'],
|
|
|
'href' => $val['url']
|
|
|
'href' => Helpers::getUrlSafe($val['url'])
|
|
|
);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -93,7 +93,7 @@ class Process |
|
|
if ($key == 0) {
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 377, 504, 1); // 大图
|
|
|
$temp['tplrecommend']['brands'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title'],
|
|
|
'img' => $val['img']
|
|
|
);
|
...
|
...
|
@@ -101,7 +101,7 @@ class Process |
|
|
else {
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 185, 504, 1); // 小图
|
|
|
$temp['tplrecommend']['types'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title'],
|
|
|
'img' => $val['img']
|
|
|
);
|
...
|
...
|
@@ -195,7 +195,7 @@ class Process |
|
|
if (isset($data['data'][0])) {
|
|
|
$val = $data['data'][0];
|
|
|
$temp['img'] = Images::getImageUrl($val['src'], 1150, 129, 1);
|
|
|
$temp['href'] = $val['url'];
|
|
|
$temp['href'] = Helpers::getUrlSafe($val['url']);
|
|
|
$temp['name'] = $val['title'];
|
|
|
$result['adbanner'] = $temp;
|
|
|
}
|
...
|
...
|
@@ -220,26 +220,23 @@ class Process |
|
|
)
|
|
|
);
|
|
|
foreach ($data['left'] as $val) {
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 280, 265, 1);
|
|
|
$result['debrisSlider']['left'][] = array(
|
|
|
'img' => $val['img'],
|
|
|
'href' => $val['url'],
|
|
|
'img' => Images::getImageUrl($val['img'], 280, 265, 1),
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title']
|
|
|
);
|
|
|
}
|
|
|
foreach ($data['center'] as $val) {
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 570, 633, 1);
|
|
|
$result['debrisSlider']['center'][] = array(
|
|
|
'img' => $val['img'],
|
|
|
'href' => $val['url'],
|
|
|
'img' => Images::getImageUrl($val['img'], 570, 633, 1),
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title']
|
|
|
);
|
|
|
}
|
|
|
foreach ($data['right'] as $val) {
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 280, 449, 1);
|
|
|
$result['debrisSlider']['right'][] = array(
|
|
|
'img' => $val['img'],
|
|
|
'href' => $val['url'],
|
|
|
'img' => Images::getImageUrl($val['img'], 280, 449, 1),
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title']
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -393,7 +390,7 @@ class Process |
|
|
}
|
|
|
|
|
|
$result['singlehot']['imgHot'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'img' => $val['src'],
|
|
|
'name' => $val['alt']
|
|
|
);
|
...
|
...
|
@@ -581,14 +578,14 @@ class Process |
|
|
if ($listKey == 0 || $listKey == 7) {
|
|
|
$val['src'] = Images::getImageUrl($val['src'], 377, 504, 1);
|
|
|
$result['newReport']['list'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'img' => $val['src']
|
|
|
);
|
|
|
}
|
|
|
else {
|
|
|
$val['src'] = Images::getImageUrl($val['src'], 185, 248, 1);
|
|
|
$result['newReport']['list'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'img' => $val['src']
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -686,7 +683,7 @@ class Process |
|
|
if ($key2 == 0 || $key2 == 4) { // 两个大图
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 378, 248, 1); // 大图
|
|
|
$result['tplrecommend']['brands'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title'],
|
|
|
'img' => $val['img']
|
|
|
);
|
...
|
...
|
@@ -694,7 +691,7 @@ class Process |
|
|
else {
|
|
|
$val['img'] = Images::getImageUrl($val['img'], 185, 248, 1); // 小图
|
|
|
$result['tplrecommend']['types'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title'],
|
|
|
'img' => $val['img']
|
|
|
);
|
...
|
...
|
@@ -705,7 +702,7 @@ class Process |
|
|
foreach ($data[$key + 1]['data'] as $val) {
|
|
|
$val['src'] = Images::getImageUrl($val['src'], 222, 298, 1); // 小图
|
|
|
$result['tplrecommend']['products'][] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['title'],
|
|
|
'img' => $val['src']
|
|
|
);
|
...
|
...
|
@@ -735,7 +732,7 @@ class Process |
|
|
continue;
|
|
|
}
|
|
|
$result[] = array(
|
|
|
'href' => $val['url'],
|
|
|
'href' => Helpers::getUrlSafe($val['url']),
|
|
|
'name' => $val['name']
|
|
|
);
|
|
|
}
|
...
|
...
|
|