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
7fa9dba46e6c5262db06ef8021225f576cb2d322
1 parent
ec612bca
优惠券文案修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
33 deletions
apps/home/models/coupons.js
apps/home/views/action/coupons.hbs
public/hbs/home/coupons-list.hbs
apps/home/models/coupons.js
View file @
7fa9dba
...
...
@@ -14,12 +14,6 @@ const couponData = (params) => {
return
result
.
data
.
couponList
.
map
(
function
(
elem
)
{
delete
elem
.
id
;
elem
.
isNoLimit
=
elem
.
isNoLimit
===
'true'
;
// 全场通用
elem
.
isDiscount
=
(
`
,
$
{
elem
.
shopPriceLimits
},
`
).
indexOf
(
',1,'
)
!==
-
1
;
// 三折以下
elem
.
isLimited
=
(
`
,
$
{
elem
.
shopPriceLimits
},
`
).
indexOf
(
',2,'
)
!==
-
1
;
// 限量
elem
.
brandNameLimits
=
elem
.
brandNameLimit
&&
elem
.
brandNameLimit
.
join
(
'、'
);
elem
.
sortNameLimits
=
elem
.
sortNameLimit
&&
elem
.
sortNameLimit
.
join
(
'、'
);
if
(
status0
)
{
elem
.
bestowLink
=
helpers
.
urlFormat
(
'/product/index/index'
,
{
...
...
apps/home/views/action/coupons.hbs
View file @
7fa9dba
...
...
@@ -36,19 +36,9 @@
</div>
</div>
<div
class=
"coupon-footer hide"
>
{{#if
isNoLimit
}}
<p>
全场通用
</p>
{{/if}}
{{#if
brandNameLimits
}}
<p>
限品牌:
{{
brandNameLimits
}}
</p>
{{/if}}
{{#if
sortNameLimits
}}
<p>
限品类:
{{
sortNameLimits
}}
</p>
{{/if}}
<p>
特例商品(秒杀、限定、境外、预售
{{#if
isDiscount
}}
、3折以下
{{/if}}{{#if
isLimited
}}
、限量
{{/if}}
等)暂不支持使用优惠券。
</p>
{{#if
explains
}}
<p>
说明:
{{
explains
}}
</p>
{{/if}}
{{#
notes
}}
<p>
{{
.
}}
</p>
{{/
notes
}}
</div>
</div>
{{/
each
}}
...
...
public/hbs/home/coupons-list.hbs
View file @
7fa9dba
...
...
@@ -26,20 +26,9 @@
</div>
</div>
<div
class=
"coupon-footer hide"
>
{{#if
isNoLimit
}}
<p>
全场通用
</p>
{{/if}}
{{#if
brandNameLimits
}}
<p>
限品牌:
{{
brandNameLimits
}}
</p>
{{/if}}
{{#if
sortNameLimits
}}
<p>
限品类:
{{
sortNameLimits
}}
</p>
{{/if}}
<p>
特例商品(秒杀、限定、境外、预售
{{#if
isDiscount
}}
、3折以下
{{/if}}{{#if
isLimited
}}
、限量
{{/if}}
等)暂不支持使用优惠券。
</p>
{{#if
explains
}}
<p>
说明:
{{
explains
}}
</p>
{{/if}}
{{#
notes
}}
<p>
{{
.
}}
</p>
{{/
notes
}}
</div>
</div>
{{/
each
}}
...
...
Please
register
or
login
to post a comment