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
f320b316718d67959690c819e9b6e56d704e88ef
1 parent
eb5dcad6
app direct
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
library/Plugin/DataProcess/ShopProcess.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
library/Plugin/DataProcess/ShopProcess.php
View file @
f320b31
...
...
@@ -51,7 +51,8 @@ class ShopProcess
//店铺简介页地址
self
::
$shopData
[
'shopIntroHref'
]
=
Helpers
::
url
(
'/product/index/intro'
,
array
(
'shop_id'
=>
self
::
$shopId
));
//全部商品链接
self
::
$shopData
[
'allGoods'
]
=
Helpers
::
url
(
''
,
array
(
'shop_id'
=>
self
::
$shopId
,
'title'
=>
'全部商品'
),
'search'
);
$appSuffix
=
'{"action":"go.list","params":{"title":"全部商品", "shop_id":"'
.
self
::
$shopId
.
'","page":"1"}}'
;
self
::
$shopData
[
'allGoods'
]
=
Helpers
::
url
(
''
,
array
(
'shop_id'
=>
self
::
$shopId
,
'title'
=>
'全部商品'
,
'yohobuy'
=>
$appSuffix
),
'search'
);
//搜索链接
self
::
$shopData
[
'url'
]
=
Helpers
::
url
(
''
,
array
(
'shop_id'
=>
self
::
$shopId
),
'search'
);
//人气单品的链接
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
f320b31
...
...
@@ -463,13 +463,19 @@ class IndexController extends AbstractAction
private
function
shop
(
$shopId
)
{
$appVersion
=
$this
->
get
(
'app_version'
);
$uid
=
$this
->
getUid
(
true
);
$data
=
ListModel
::
shopData
(
$shopId
,
$uid
,
$appVersion
);
if
(
empty
(
$appVersion
))
{
$this
->
setNavHeader
(
''
,
true
,
SITE_MAIN
);
}
else
{
$uid
=
$this
->
getUid
(
true
);
}
//app环境
else
{
$data
[
'appVersion'
]
=
$appVersion
;
$uid
=
$this
->
get
(
'uid'
);
$this
->
setSession
(
'appUid'
,
$uid
);
}
$data
=
ListModel
::
shopData
(
$shopId
,
$uid
,
$appVersion
);
$this
->
_view
->
display
(
'shop'
,
array
(
'shopIndex'
=>
$data
,
'shopPage'
=>
true
...
...
@@ -486,7 +492,11 @@ class IndexController extends AbstractAction
$data
=
array
();
$shopId
=
$this
->
post
(
'shop_id'
,
0
);
$appVersion
=
$this
->
post
(
'app_version'
,
0
);
$uid
=
$this
->
getUid
();
if
(
!
empty
(
$appVersion
)){
$uid
=
$this
->
getSession
(
'appUid'
);
}
else
{
$uid
=
$this
->
getUid
();
}
do
{
if
(
!
$this
->
isAjax
())
{
break
;
...
...
Please
register
or
login
to post a comment