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
ccbikai(👎🏻🍜)
8 years ago
Commit
b1754fa039a634df562c7efd3043ef88807ce7ab
1 parent
f84a6c6e
活动支持个性化优惠券
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
apps/activity/views/action/feature/index.hbs
apps/activity/views/action/feature/index.hbs
View file @
b1754fa
...
...
@@ -14,7 +14,7 @@
{{#
content
.
floors
}}
{{#
isEqualOr
type
'sidebar'
}}
{{! 侧悬浮}}
<div
id=
"sidebar"
pageid=
"
{{
param
.
sidebarPageId
}}
"
></div>
<div
id=
"sidebar"
pageid=
"
{{
param
.
sidebarPageId
}}
"
></div>
{{/
isEqualOr
}}
{{#
isEqualOr
type
''
'common_floor'
'fix'
}}
{{! 普通楼层 顶悬浮}}
...
...
@@ -41,7 +41,14 @@
{{#
isEqualOr
type
'coupon'
}}
{{! 优惠券}}
<a
class=
"anchor yoho-conpon"
style=
"
{{
styleFormat
this
percent
=
1
}}
"
data-token=
"
{{
token
}}
"
href=
"
{{#if
url
}}{{
url
}}{{else}}
javascript:void(0);
{{/if}}
"
fp=
"
{{
getAnalysis
..
/
this
@index
}}
"
></a>
{{#if
personCoupon
}}
{{! 个性化优惠券,使用:分割}}
<a
class=
"anchor yoho-conpon"
style=
"
{{
styleFormat
this
percent
=
1
}}
"
data-token=
"
{{
personCoupon
.
couponId
}}
:
{{
personCoupon
.
personCouponId
}}
"
href=
"
{{#if
url
}}{{
url
}}{{else}}
javascript:void(0);
{{/if}}
"
fp=
"
{{
getAnalysis
..
/
this
@index
}}
"
></a>
{{else}}
<a
class=
"anchor yoho-conpon"
style=
"
{{
styleFormat
this
percent
=
1
}}
"
data-token=
"
{{
token
}}
"
href=
"
{{#if
url
}}{{
url
}}{{else}}
javascript:void(0);
{{/if}}
"
fp=
"
{{
getAnalysis
..
/
this
@index
}}
"
></a>
{{/if}}
{{/
isEqualOr
}}
{{#
isEqualOr
type
'yohoCoin'
}}
...
...
@@ -84,12 +91,12 @@
{{/
repeat
}}
</div>
{{/
isEqualOr
}}
{{#
isEqualOr
type
'productGroup'
}}
{{! 商品池}}
<div
class=
"product-container item
{{
numOfOneRow
}}
"
{{#if
proBgImg
}}
style=
"background:url(
{{
image2
proBgImg
q
=
60
}}
)repeat;"
{{/if}}
>
<div
class=
"product-source"
condition=
'
{{
stringify
searchCondition
}}
'
fp=
"
{{
getAnalysis
..
/
this
@index
}}
"
{{#
unless
defaultPros
.
length
}}
{{#
unless
defaultPros
.
length
}}
{{#if
searchCondition
.
item
}}
cloneitem=
"
{{
searchCondition
.
item
}}
"
{{else}}
...
...
@@ -130,7 +137,7 @@
<img
class=
"brand-img lazy"
data-original=
"
{{
image2
..
/
brandImg
q
=
60
}}
"
>
</a>
{{/if}}
</div>
</div>
{{/
defaultPros
}}
{{else}}
<div
class=
"feature-product-info novisible"
>
...
...
@@ -158,7 +165,7 @@
{{#if
brandImg
}}
<a
class=
"second-part
{{#
isEqualOr
showBrandUrl
'1'
}}
product-brand
{{else}}
product-detail
{{/
isEqualOr
}}
"
href=
''
>
<div
class=
"brand-div"
>
<span
class=
"brand-name"
{{#if
fontColor
}}
style=
"color:
{{
fontColor
}}
;"
{{/if}}
></span>
<span
class=
"brand-name"
{{#if
fontColor
}}
style=
"color:
{{
fontColor
}}
;"
{{/if}}
></span>
</div>
<img
class=
"brand-img"
src=
"
{{
image2
brandImg
q
=
60
}}
"
>
</a>
...
...
@@ -171,6 +178,6 @@
{{/
component
}}
</div>
{{/
isEqualOr
}}
{{/
content
.
floors
}}
{{/
content
.
floors
}}
{{/
unless
}}
</div>
\ No newline at end of file
</div>
...
...
Please
register
or
login
to post a comment