Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
zhangxiaoru
8 years ago
Commit
9f4ea2a633d9275171d2a6671cb90271a5a16eea
2 parents
f894f511
dcc722d4
merge
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
apps/product/models/list.js
utils/guang-process.js
apps/product/models/list.js
View file @
9f4ea2a
...
...
@@ -180,6 +180,9 @@ const _shopCouponsList = (shopId, uid) => {
* @private
*/
const
getBrandFavStatus
=
(
params
)
=>
{
if
(
params
.
uid
===
'undefined'
)
{
params
.
uid
=
0
;
}
return
api
.
get
(
''
,
{
method
:
'app.favorite.isFavorite'
,
uid
:
params
.
uid
||
0
,
...
...
utils/guang-process.js
View file @
9f4ea2a
...
...
@@ -270,7 +270,7 @@ const formatProduct = (productData, showTags, showNew, showSale, width, height,
// TODO student price
result
.
studentPrice
=
parseInt
(
productData
.
sales_price
*
100
*
0.9
)
/
100
;
result
.
is_soon_sold_out
=
(
productData
.
is_soon_sold_out
===
'Y'
);
let
url
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
productData
.
product_id
}
_$
{
productData
.
goods_list
[
0
].
goods_id
}
/${productData.cn_alphabet}.html`
)
;
let
url
=
encodeURI
(
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
productData
.
product_id
}
_$
{
productData
.
goods_list
[
0
].
goods_id
}
/${productData.cn_alphabet}.html`
)
)
;
result
.
url
=
url
.
replace
(
'http://'
,
'//'
);
...
...
Please
register
or
login
to post a comment