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
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
f48573c439e6dc53c60aa3b8c800cadcd6775db7
1 parent
33960e2b
购物车bug修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
public/hbs/cart/index/cart-content.hbs
public/hbs/cart/index/cart-good.hbs
utils/cart-process.js
public/hbs/cart/index/cart-content.hbs
View file @
f48573c
...
...
@@ -129,7 +129,7 @@
</div>
<div
class=
"opts bill "
>
<div
class=
"total"
>
<p
class=
"price"
>
总计:
¥
{{
sumPrice
}}
(
{{
count
}}
件)
</p>
<p
class=
"price"
>
总计:
¥
{{
sumPrice
}}
(
{{
count
}}
件)
</p>
<p
class=
"intro"
>
不含运费
</p>
</div>
<button
class=
"btn btn-red btn-balance"
>
结算
</button>
...
...
public/hbs/cart/index/cart-good.hbs
View file @
f48573c
...
...
@@ -52,7 +52,7 @@
<div
class=
"count"
>
x
{{
count
}}
</div>
</div>
<p
class=
"price"
>
<span
class=
"market-price"
>
¥
{{
price
}}
</span>
<span
class=
"market-price"
>
¥
{{
price
}}
</span>
{{#if
isStudents
}}
<span
class=
"vip fill-text"
>
学
</span>
{{/if}}
{{#if
isVipPrice
}}
<span
class=
"vip fill-text"
>
VIP
</span>
{{/if}}
</p>
...
...
utils/cart-process.js
View file @
f48573c
...
...
@@ -20,7 +20,7 @@ const formatPromotionTitle = (promo) => {
if
(
promo
.
condition_unit
===
1
)
{
title
=
`差
$
{
transPrice
(
Math
.
abs
(
promo
.
condition_value
))}
件立享`
;
}
else
if
(
promo
.
condition_unit
===
2
)
{
title
=
`差
¥
$
{
transPrice
(
Math
.
abs
(
promo
.
condition_value
))}
立享`
;
title
=
`差
¥
$
{
transPrice
(
Math
.
abs
(
promo
.
condition_value
))}
立享`
;
}
}
else
{
title
=
'已满足'
;
...
...
Please
register
or
login
to post a comment