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
周少峰
9 years ago
Commit
90a42cca36adff18fa625630538ce9b6f5bbc22e
1 parent
a8dd1131
form shop index brandlist
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
library/Plugin/DataProcess/ShopProcess.php
library/Plugin/DataProcess/ShopProcess.php
View file @
90a42cc
...
...
@@ -3,6 +3,7 @@
namespace
Plugin\DataProcess
;
use
Plugin\Helpers
;
use
Plugin\Images
;
/**
* 店铺楼层数据处理类
...
...
@@ -56,9 +57,8 @@ class ShopProcess
*/
private
static
function
shopInfo
(
$data
)
{
self
::
$shopData
[
'shopName'
]
=
''
;
self
::
$shopData
[
'logo'
]
=
''
;
self
::
$shopData
[
'logoImg'
]
=
Images
::
getImageUrl
(
$data
[
'data'
][
'shop_logo'
],
500
,
500
,
'shop'
);
self
::
$shopData
[
'storeName'
]
=
$data
[
'data'
][
'shop_name'
];
}
/**
...
...
@@ -101,10 +101,11 @@ class ShopProcess
*/
private
static
function
brandBrowse
(
$data
)
{
// print_r($data); exit;
foreach
(
$data
as
$val
)
{
self
::
$shopData
[
'multi-list'
][]
=
array
(
'url'
=>
''
,
'img'
=>
$val
[
'brandIco'
],
self
::
$shopData
[
'multiList'
][]
=
array
(
'url'
=>
Helpers
::
url
(
''
,
''
,
$val
[
'brandDomain'
]),
'img'
=>
Images
::
getImageUrl
(
$val
[
'brandIco'
],
640
,
400
),
'brandName'
=>
$val
[
'brandName'
]
);
}
...
...
@@ -154,7 +155,7 @@ class ShopProcess
foreach
(
$data
as
$val
)
{
self
::
$shopData
[
'hotList'
][]
=
array
(
'url'
=>
$val
[
'url'
],
'img'
=>
$val
[
'src'
]
,
'img'
=>
Helpers
::
getImageUrl
(
$val
[
'src'
],
235
,
314
)
,
'productName'
=>
$val
[
'productName'
],
'salesPrice'
=>
'¥'
.
$val
[
'salesPrice'
],
'presentPrice'
=>
'¥'
.
$val
[
'salesPrice'
]
...
...
Please
register
or
login
to post a comment