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
b19fd524336337c13c1edd5b65b81489bc4a6b84
1 parent
4a877c98
shop sort url add branh
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
library/Plugin/DataProcess/ShopProcess.php
yohobuy/m.yohobuy.com/application/models/Product/List.php
library/Plugin/DataProcess/ShopProcess.php
View file @
b19fd52
...
...
@@ -13,6 +13,7 @@ class ShopProcess
private
static
$shopData
=
array
();
private
static
$shopId
=
0
;
private
static
$appVersion
=
0
;
private
static
$brandId
;
/**
* 组织店铺页面数据
...
...
@@ -144,7 +145,7 @@ class ShopProcess
if
(
$brandNumber
>
5
)
{
self
::
$shopData
[
'brandList'
][
'url'
]
=
Helpers
::
url
(
'/product/index/allBrand'
,
array
(
'shop_id'
=>
self
::
$shopId
));
}
self
::
$shopData
[
'brand'
]
=
rtrim
(
$brandId
,
','
);
self
::
$
brandId
=
self
::
$
shopData
[
'brand'
]
=
rtrim
(
$brandId
,
','
);
}
/**
...
...
@@ -214,7 +215,7 @@ class ShopProcess
}
foreach
(
$data
[
'data'
]
as
$key
=>
$val
)
{
self
::
$shopData
[
'shopCategory'
][
'list'
][]
=
array
(
'url'
=>
Helpers
::
url
(
''
,
array
(
'shop_id'
=>
self
::
$shopId
,
'sort'
=>
$val
[
'relation_parameter'
][
'sort'
]),
'search'
),
'url'
=>
Helpers
::
url
(
''
,
array
(
'shop_id'
=>
self
::
$shopId
,
'
brand'
=>
self
::
$brandId
,
'
sort'
=>
$val
[
'relation_parameter'
][
'sort'
]),
'search'
),
'categoryId'
=>
$val
[
'category_id'
],
'name'
=>
$val
[
'category_name'
]
);
...
...
yohobuy/m.yohobuy.com/application/models/Product/List.php
View file @
b19fd52
...
...
@@ -416,11 +416,11 @@ class ListModel
$data
=
array
();
//店铺信息
$data
[
'shopInfo'
]
=
ListData
::
getShopInfo
(
$shopId
,
$uid
);
//店铺装修资源数据
$data
[
'decorator'
]
=
ListData
::
getShopDecorator
(
$shopId
);
//店铺分类
$channel
=
Helpers
::
getChannelByCookie
();
$data
[
'shopCategory'
]
=
ListData
::
getShopCategory
(
$shopId
,
$channel
);
//店铺装修资源数据
$data
[
'decorator'
]
=
ListData
::
getShopDecorator
(
$shopId
);
//组织楼层数据
$result
=
ShopProcess
::
formShopData
(
$data
,
$shopId
,
$appVersion
);
return
$result
;
...
...
Please
register
or
login
to post a comment