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
ccbikai
9 years ago
Commit
c640f606a79bf81f6dd6eed82a039a5dea1fac18
1 parent
9a002eb7
个人中心首页登录注册按钮
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
library/Api/Yohobuy.php
template/m.yohobuy.com/actions/index/home/index.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
library/Api/Yohobuy.php
View file @
c640f60
...
...
@@ -18,18 +18,18 @@ class Yohobuy
{
// /* 正式环境 */
// const API_URL = 'http://api2.open.yohobuy.com/';
// const API_URL2 = 'http://api.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_URL = 'http://api2.open.yohobuy.com/';
// const API_URL2 = 'http://api.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
/* 测试环境 */
const
API_URL
=
'http://test2.open.yohobuy.com/'
;
const
SERVICE_URL
=
'http://test.service.api.yohobuy.com/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_URL_MYCENTER
=
'http://192.168.102.213:8080/api-gateway-web/'
;
// 我的个人中心接口URL
const
API_URL_SHOPINGCART
=
'http://192.168.102.213:8080/api-gateway-web/'
;
// 我的购物车接口URL
const
API_URL_PRODUCTDETAIL
=
'http://172.16.6.145:8080/'
;
// 商品详情页
const
API_URL
=
'http://test2.open.yohobuy.com/'
;
const
SERVICE_URL
=
'http://test.service.api.yohobuy.com/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_URL_MYCENTER
=
'http://192.168.102.213:8080/api-gateway-web/'
;
// 我的个人中心接口URL
const
API_URL_SHOPINGCART
=
'http://192.168.102.213:8080/api-gateway-web/'
;
// 我的购物车接口URL
const
API_URL_PRODUCTDETAIL
=
'http://172.16.6.145:8080/'
;
// 商品详情页
/**
* 私钥列表
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
c640f60
...
...
@@ -21,15 +21,15 @@
</div>
<div
class=
"my-link clearfix {{^isLogin}}no-login{{/isLogin}}"
>
<a
class=
"link-item"
href=
"/home/favorite"
>
{
{#i
f
product_favorite_total
}
}
{
{product_favorite_total
}
}
{
{/if
}
}
{
{#i
sLogin
}
}
{
{product_favorite_total
}
}
{
{/isLogin
}
}
<p>收藏的商品</p>
</a>
<a
class=
"link-item"
href=
"/home/favorite?tab=brand"
>
{
{#i
f
brand_favorite_total
}
}
{
{brand_favorite_total
}
}
{
{/if
}
}
{
{#i
sLogin
}
}
{
{brand_favorite_total
}
}
{
{/isLogin
}
}
<p>收藏的品牌</p>
</a>
<a
class=
"link-item"
href=
"/home/"
>
{
{#i
f
product_browse
}
}
{
{product_browse
}
}
{
{/if
}
}
{
{#i
sLogin
}
}
{
{product_browse
}
}
{
{/isLogin
}
}
<p>浏览记录</p>
</a>
</div>
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
c640f60
...
...
@@ -48,11 +48,11 @@ class HomeController extends AbstractAction
'myIndexPage'
=>
true
,
'pageFooter'
=>
true
);
echo
$this
->
getRequest
()
->
getActionName
();
//
echo $this->getRequest()->getActionName();
$uid
=
$this
->
getUid
();
if
(
$uid
)
{
$data
[
'isLogin'
]
=
true
;
$uid
=
8826435
;
$uid
=
8826435
;
$data
+=
\Index\UserModel
::
getUserProfileData
(
$uid
);
$data
+=
\Index\UserModel
::
getInfoNumData
(
$uid
);
...
...
Please
register
or
login
to post a comment