Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
3883eeb042f5d03cbaa468694b9ee8fc898d6eb7
2 parents
63e10e73
6308f193
Merge branch 'feature/payOrderCtx' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
apps/cart/models/cart-helper.js
apps/cart/models/cart-service.js
apps/home/models/orders-service.js
apps/cart/models/cart-helper.js
View file @
3883eeb
...
...
@@ -145,7 +145,7 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys
};
// 划线的价格
if
(
it
.
last_vip_price
<
it
.
sales_price
)
{
if
(
+
it
.
last_vip_price
<
+
it
.
sales_price
)
{
goods
.
productPrice
=
transPrice
(
it
.
last_vip_price
);
goods
.
linePrice
=
transPrice
(
it
.
sales_price
);
// 划线的价格
}
...
...
apps/cart/models/cart-service.js
View file @
3883eeb
...
...
@@ -780,13 +780,13 @@ const getRecommendProduct = (channelNum, uid, udid, page) => {
img
:
it
.
default_images
?
helpers
.
image
(
it
.
default_images
,
190
,
250
)
:
''
,
alt
:
it
.
product_name
,
price
:
'¥'
+
chelper
.
transPrice
(
it
.
sales_price
),
marketPrice
:
(
it
.
market_price
&&
it
.
market_price
>
it
.
sales_price
)
?
marketPrice
:
(
it
.
market_price
&&
+
it
.
market_price
>
+
it
.
sales_price
)
?
'¥'
+
chelper
.
transPrice
(
it
.
market_price
)
:
''
};
item
.
href
=
helpers
.
getUrlBySkc
(
it
.
product_skn
);
if
(
it
.
sales_price
!==
it
.
market_price
)
{
if
(
+
it
.
sales_price
!==
+
it
.
market_price
)
{
it
.
marketPrice
=
chelper
.
transPrice
(
it
.
market_price
);
}
return
item
;
...
...
apps/home/models/orders-service.js
View file @
3883eeb
...
...
@@ -395,13 +395,12 @@ module.exports = class extends global.yoho.BaseModel {
newGood
.
name
=
good
.
product_name
;
newGood
.
color
=
good
.
factory_color_name
;
newGood
.
size
=
good
.
size_name
;
newGood
.
price
=
that
.
transPrice
(
good
.
sales_price
);
// 默认显示销售价
newGood
.
isVipPrice
=
good
.
discount_tag
===
'V'
;
newGood
.
isStuPrice
=
good
.
discount_tag
===
'S'
;
// 划线的价格
if
(
good
.
real_pay_price
<
good
.
sales_price
)
{
if
(
+
good
.
real_pay_price
<
+
good
.
sales_price
)
{
newGood
.
price
=
that
.
transPrice
(
good
.
real_pay_price
);
// 显示分摊价
newGood
.
linePrice
=
that
.
transPrice
(
good
.
sales_price
);
// 划线的价格
}
...
...
@@ -829,7 +828,7 @@ module.exports = class extends global.yoho.BaseModel {
};
// 划线的价格
if
(
good
.
real_pay_price
<
good
.
sales_price
)
{
if
(
+
good
.
real_pay_price
<
+
good
.
sales_price
)
{
newGood
.
price
=
that
.
transPrice
(
good
.
real_pay_price
);
// 显示分摊价
newGood
.
linePrice
=
that
.
transPrice
(
good
.
sales_price
);
// 划线的价格
}
...
...
Please
register
or
login
to post a comment