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
0b59fc9f3742fe338a4d9654b14cb04dc8764cf3
1 parent
5f05226d
add shop index shopInfo
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
library/LibModels/Wap/Product/ListData.php
library/Plugin/DataProcess/ShopProcess.php
yohobuy/m.yohobuy.com/application/models/Product/List.php
library/LibModels/Wap/Product/ListData.php
View file @
0b59fc9
...
...
@@ -71,7 +71,7 @@ class ListData
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
//TODO
// return Yohobuy::get(Yohobuy::API_URL, $param);
return
Yohobuy
::
get
(
'http://192.168.102.218:8080/gateway/'
,
$param
,
$cache
);
return
Yohobuy
::
get
(
'http://192.168.102.218:8080/gateway/'
,
$param
,
0
);
}
/**
...
...
library/Plugin/DataProcess/ShopProcess.php
View file @
0b59fc9
...
...
@@ -25,8 +25,8 @@ class ShopProcess
}
self
::
$key
(
$val
);
}
print_r
(
$data
);
exit
;
// print_r($data);
// exit;
return
self
::
$shopData
;
}
...
...
@@ -51,6 +51,17 @@ class ShopProcess
}
/**
* 店铺基本信息
* @param $data
*/
private
static
function
shopInfo
(
$data
)
{
self
::
$shopData
[
'shopName'
]
=
''
;
self
::
$shopData
[
'logo'
]
=
''
;
}
/**
* 店铺Banner
* @param array $data
* @author sefon 2016-4-27 08:40:05
...
...
@@ -69,13 +80,14 @@ class ShopProcess
*/
private
static
function
oneRowTwoColImages_APP
(
$data
)
{
// print_r($data); exit;
foreach
(
$data
as
$key
=>
$val
)
{
if
(
empty
(
$val
[
'data'
]))
{
continue
;
}
self
::
$shopData
[
'spring'
][
$key
]
=
array
(
'url'
=>
$val
[
0
][
'url'
],
'springType'
=>
$val
[
0
][
'src'
]
'url'
=>
$val
[
'data'
][
0
][
'url'
],
'springType'
=>
$val
[
'data'
][
0
][
'src'
]
);
}
return
$data
;
...
...
@@ -99,7 +111,7 @@ class ShopProcess
}
/**
*
*
资源位大图幻灯
* @param $data
* @author sefon 2016-4-27 16:50:01
*/
...
...
@@ -123,8 +135,9 @@ class ShopProcess
*/
private
static
function
recommend
(
$data
)
{
self
::
$shopData
[
'hotCategory'
][
'name'
]
=
'热门品类'
;
foreach
(
$data
as
$cate
)
{
self
::
$shopData
[
'hotCategory'
][
'list'
][]
=
array
(
'url'
=>
$cate
[
'url'
],
'img'
=>
$cate
[
'
img
'
]);
self
::
$shopData
[
'hotCategory'
][
'list'
][]
=
array
(
'url'
=>
$cate
[
'url'
],
'img'
=>
$cate
[
'
src
'
]);
}
return
$data
;
}
...
...
yohobuy/m.yohobuy.com/application/models/Product/List.php
View file @
0b59fc9
...
...
@@ -410,10 +410,10 @@ class ListModel
}
//店铺信息
//
$data['shopInfo'] = ListData::getShopInfo($shopId);
$data
[
'shopInfo'
]
=
ListData
::
getShopInfo
(
$shopId
);
//店铺装修资源数据
$data
[
'decorator'
]
=
ListData
::
getShopDecorator
(
$shopId
);
print_r
(
$data
);
exit
;
//
print_r($data); exit;
//品牌一览
//$data['shopBrands'] = ListData::getShopBrands($shopId);
//商品列表
...
...
Please
register
or
login
to post a comment