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
253a5f8c0e4d3d2d3b75080217ba19dccdbd797b
1 parent
228f0d9f
slogan-modifeid
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
apps/product/models/detail.js
apps/product/models/new-detail.js
public/hbs/product/detail/infodata.hbs
apps/product/models/detail.js
View file @
253a5f8
...
...
@@ -500,7 +500,8 @@ let getNewProductAsyncData = (data) => {
if
(
bundleData
&&
_
.
get
(
bundleData
,
'bundleInfo.discountType'
,
null
)
===
2
)
{
finalResult
.
discountBuy
=
{
num
:
_
.
get
(
bundleData
,
'bundleInfo.bundleCount'
,
1
),
promotionPhrase
:
_
.
get
(
bundleData
,
'bundleInfo.promotionPhrase'
,
''
)
promotionPhrase
:
_
.
get
(
bundleData
,
'bundleInfo.promotionPhrase'
,
''
),
discount
:
_
.
get
(
bundleData
,
'bundleInfo.discount'
,
''
)
};
}
...
...
apps/product/models/new-detail.js
View file @
253a5f8
...
...
@@ -237,7 +237,8 @@ const tool = {
processDiscount
(
finalResult
,
bundleData
)
{
finalResult
.
discountBuy
=
{
num
:
_
.
get
(
bundleData
,
'bundleInfo.bundleCount'
,
1
),
promotionPhrase
:
_
.
get
(
bundleData
,
'bundleInfo.promotionPhrase'
,
''
)
promotionPhrase
:
_
.
get
(
bundleData
,
'bundleInfo.promotionPhrase'
,
''
),
discount
:
_
.
get
(
bundleData
,
'bundleInfo.discount'
,
1
)
};
let
oldPromotion
=
finalResult
.
promotion
;
...
...
public/hbs/product/detail/infodata.hbs
View file @
253a5f8
...
...
@@ -56,7 +56,7 @@
</a>
</div>
{{#if
@root
.
discountBuy
}}
<span
class=
"left-num-discount"
style=
"color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;"
>
{{
@root
.
discountBuy
.
promotionPhrase
}}
</span>
<span
class=
"left-num-discount"
style=
"color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;"
>
{{
@root
.
discountBuy
.
num
}}
件起购,享
{{
@root
.
discountBuy
.
discount
}}
折
</span>
<input
id=
"mnum"
type=
"hidden"
value=
"
{{
@root
.
discountBuy
.
num
}}
"
>
{{^}}
<span
class=
"left-num"
></span>
...
...
Please
register
or
login
to post a comment