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
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
77faa5bf9ff0d18876353de72a3e6b1d229e0029
1 parent
89a4a3e1
'订单分摊价转数字'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 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 @
77faa5b
...
...
@@ -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 @
77faa5b
...
...
@@ -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 @
77faa5b
...
...
@@ -387,7 +387,7 @@ const getOrders = (uid, page, limit, type, isPage)=> {
newGood
.
isStuPrice
=
good
.
discount_tag
===
'S'
;
// 划线的价格
if
(
good
.
real_pay_price
<
good
.
sales_price
)
{
if
(
+
good
.
real_pay_price
<
+
good
.
sales_price
)
{
newGood
.
price
=
transPrice
(
good
.
real_pay_price
);
// 显示分摊价
newGood
.
linePrice
=
transPrice
(
good
.
sales_price
);
// 划线的价格
}
...
...
@@ -803,7 +803,7 @@ const _getOrderDetail = co(function * (uid, orderId) {
};
// 划线的价格
if
(
good
.
real_pay_price
<
good
.
sales_price
)
{
if
(
+
good
.
real_pay_price
<
+
good
.
sales_price
)
{
newGood
.
price
=
transPrice
(
good
.
real_pay_price
);
// 显示分摊价
newGood
.
linePrice
=
transPrice
(
good
.
sales_price
);
// 划线的价格
}
...
...
Please
register
or
login
to post a comment