Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
e105ac7b68bd858c2672801f2def8465c1a2f477
2 parents
38e8d255
812176a5
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
library/Api/Yohobuy.php
static/sass/me/_coupons.scss
template/m.yohobuy.com/actions/index/home/personal-details.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
library/Api/Yohobuy.php
View file @
e105ac7
...
...
@@ -27,7 +27,7 @@ class Yohobuy
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.2
13:8080
/api-gateway-web/'
;
// 我的个人中心接口URL
const
API_URL_MYCENTER
=
'http://192.168.102.2
05:8081
/api-gateway-web/'
;
// 我的个人中心接口URL
const
API_URL_SHOPINGCART
=
'http://192.168.102.213:8080/api-gateway-web/'
;
// 我的购物车接口URL
const
API_URL_PRODUCTDETAIL
=
'http://192.168.102.209:18080/yoho-product/'
;
// 商品详情页
...
...
static/sass/me/_coupons.scss
View file @
e105ac7
...
...
@@ -31,7 +31,7 @@
height
:
180rem
/
$pxConvertRem
;
overflow
:
hidden
;
margin
:
20rem
/
$pxConvertRem
auto
;
background
:
url('../img/
me/employ/employ.jpg')
top
center
no-repeat
;
background
:
image-url
(
'
me/employ/employ.jpg'
)
top
center
no-repeat
;
background-size
:
100%
100%
;
color
:
#fff
;
span
{
...
...
template/m.yohobuy.com/actions/index/home/personal-details.phtml
View file @
e105ac7
{
{>
layout/header
}
}
<div
class=
"personal-details"
>
<ul>
<li><span>头像</span><span><i
class=
"head-portrait"
><span
class=
"user-avatar"
data-avatar=
"{{ head_ico }}"
></span></i></span></li>
<li><span>昵称</span><span>
{
{
username
}
}</span></li>
<li><span>头像</span><span><i
class=
"head-portrait"
><img
class=
"user-avatar"
src=
"{{ head_ico }}"
></i></span></li>
<li><span>昵称</span><span>
{
{
nickname
}
}</span></li>
<li><span>性别</span><span>
{
{
gender
}
}</span></li>
<li><span>生日</span><span>
{
{
birthday
}
}</span></li>
<li><span>会员等级</span>
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
e105ac7
...
...
@@ -127,7 +127,7 @@ class HomeController extends AbstractAction
if
(
$this
->
isAjax
())
{
$uid
=
$this
->
getUid
();
$fav_id
=
$this
->
post
(
'
fav_
id'
,
0
);
$fav_id
=
$this
->
post
(
'id'
,
0
);
$result
=
UserModel
::
favoriteDelete
(
$uid
,
$fav_id
);
}
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
e105ac7
...
...
@@ -162,9 +162,9 @@ class UserModel
$product
[
'fav_id'
]
=
$val
[
'product_id'
];
$product
[
'imgUrl'
]
=
$val
[
'image'
];
$product
[
'title'
]
=
$val
[
'product_name'
];
$product
[
'price'
]
=
'¥'
.
$val
[
'market_price'
];
$product
[
'discountPrice'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
'¥'
.
$val
[
'sales_price'
]
:
false
;
$product
[
'savePrice'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
'¥'
.
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
])
:
false
;
$product
[
'price'
]
=
!
empty
(
$val
[
'market_price'
])
?
'¥'
.
$val
[
'market_price'
]
.
'.00'
:
0
;
$product
[
'discountPrice'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
'¥'
.
$val
[
'sales_price'
]
.
'.00'
:
false
;
$product
[
'savePrice'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
'¥'
.
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
])
.
'.00'
:
false
;
$product
[
'sellOut'
]
=
(
bool
)(
$val
[
'price_down'
]);
$result
[]
=
$product
;
...
...
Please
register
or
login
to post a comment