Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
cailing
9 years ago
Commit
aa35bd226db2cebe0b61cc19f1035fd909263024
1 parent
d795f9f1
首页按钮改成10个
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
library/Plugin/DataProcess/FloorProcess.php
library/Plugin/DataProcess/FloorProcess.php
View file @
aa35bd2
...
...
@@ -50,7 +50,6 @@ class FloorProcess
$result
[]
=
$build
;
}
$build
=
array
();
return
$result
;
}
...
...
@@ -81,6 +80,7 @@ class FloorProcess
foreach
(
$data
as
&
$one
)
{
$one
[
'url'
]
=
Helpers
::
getFilterUrl
(
$one
[
'url'
]);
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
98
,
98
);
$one
[
'className'
]
=
(
count
(
$data
)
==
8
)
?
'icons-item-eight'
:
'icons-item-ten'
;
unset
(
$one
[
'src'
]);
}
$result
[
'iconsEnter'
][
'list'
]
=
$data
;
...
...
@@ -102,6 +102,7 @@ class FloorProcess
foreach
(
$data
as
&
$one
)
{
$one
[
'url'
]
=
Helpers
::
getFilterUrl
(
$one
[
'url'
]);
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
98
,
98
);
$one
[
'className'
]
=
(
count
(
$data
)
==
8
)
?
'icons-item-eight'
:
'icons-item-ten'
;
unset
(
$one
[
'src'
]);
}
$result
[
'iconsEnter'
][
'list'
]
=
$data
;
...
...
@@ -269,8 +270,8 @@ class FloorProcess
foreach
(
$data
as
$key
=>
&
$value
)
{
if
(
$key
==
'title'
)
{
$urlParam
=
array
(
'id'
=>
4
);
//isset(self::$channel[$type]) && $urlParam['gender'] = self::$channel[$type];
$urlParam
=
array
(
'id'
=>
4
);
//isset(self::$channel[$type]) && $urlParam['gender'] = self::$channel[$type];
$value
[
'more_url'
]
=
Helpers
::
url
(
''
,
$urlParam
,
'guang'
);
}
if
(
$key
==
'list'
&&
is_array
(
$value
))
{
...
...
@@ -315,7 +316,8 @@ class FloorProcess
foreach
(
$data
[
'list'
]
as
$kk
=>
&
$one
)
{
if
(
$kk
==
0
)
{
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
253
,
383
);
}
else
{
}
else
{
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
191
,
191
);
}
if
(
isset
(
$one
[
'url'
]))
{
...
...
@@ -427,9 +429,9 @@ class FloorProcess
{
// URL附加参数
$param
=
''
;
/*if (isset(self::$channel[$type])) {
$param = '/?gender=' . self::$channel[$type];
}*/
/* if (isset(self::$channel[$type])) {
$param = '/?gender=' . self::$channel[$type];
} */
$result
=
array
();
$result
[
'hotBrandsScroll'
][
'name'
]
=
$data
[
'title'
][
'title'
];
...
...
@@ -478,6 +480,7 @@ class FloorProcess
$result
[
'list'
][
$key
][
'salePrice'
]
=
number_format
(
$val
[
'sales_price'
],
2
);
$result
[
'list'
][
$key
][
'price'
]
=
number_format
(
$val
[
'market_price'
],
2
);
}
return
array
(
'freshOnly'
=>
$result
);
return
array
(
'freshOnly'
=>
$result
);
}
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment