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
uedxwg
9 years ago
Commit
812176a5a7544266e01f29afef961c56b5e7868d
2 parents
8b91205e
eb39559d
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
library/Api/Yohobuy.php
static/sass/product/_detail.scss
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
library/Api/Yohobuy.php
View file @
812176a
...
...
@@ -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/product/_detail.scss
View file @
812176a
...
...
@@ -252,20 +252,22 @@ $basicBtnC:#eb0313;
width
:
pxToRem
(
53px
);
height
:
pxToRem
(
32px
);
}
&
:nth-child
(
3
)
.vip-img
{
background
:
image-url
(
'product/silver.png'
)
no-repeat
;
}
&
:nth-child
(
2
)
.vip-img
{
background
:
image-url
(
'product/golden.png'
)
no-repeat
;
&
:nth-child
(
3
)
{
text-align
:
right
;
.vip-img
{
background
:
image-url
(
'product/silver.png'
)
no-repeat
;
}
}
&
:nth-child
(
1
)
.vip-img
{
background
:
image-url
(
'product/platinum.png'
)
no-repeat
;
&
:nth-child
(
2
)
{
.vip-img
{
background
:
image-url
(
'product/golden.png'
)
no-repeat
;
}
}
&
:
first-child
{
&
:
nth-child
(
1
)
{
text-align
:
left
;
}
&
:last-child
{
text-align
:
right
;
.vip-img
{
background
:
image-url
(
'product/platinum.png'
)
no-repeat
;
}
}
}
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
812176a
...
...
@@ -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 @
812176a
...
...
@@ -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