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
邱骏
6 years ago
Commit
2b26d8457e5f3897b90f61d9c6f95da47a4808e5
1 parent
9fac412a
个人主页-优惠券-判断线上渠道,线下渠道隐藏立即使用按钮
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
apps/home/models/coupon-service.js
apps/home/views/action/coupons.hbs
apps/home/models/coupon-service.js
View file @
2b26d84
...
...
@@ -60,6 +60,7 @@ module.exports = class extends global.yoho.BaseModel {
couponApiCase
.
getCouponNum
(
uid
)
]).
then
(
result
=>
{
Object
.
assign
(
resData
,
_
.
get
(
result
,
'[0].data'
,
{}));
console
.
log
(
'resData:'
,
resData
);
if
(
resData
.
couponList
&&
resData
.
couponList
.
length
)
{
_
.
forEach
(
resData
.
couponList
,
value
=>
{
...
...
apps/home/views/action/coupons.hbs
View file @
2b26d84
...
...
@@ -49,9 +49,11 @@
</label>
{{/if}}
</div>
{{#
toUse
}}
<a
href=
"
{{
.
}}
"
class=
"use-now-btn"
target=
"_blank"
>
立即使用
</a>
{{/
toUse
}}
{{#if
is_online_avail
}}
{{#
toUse
}}
<a
href=
"
{{
.
}}
"
class=
"use-now-btn"
target=
"_blank"
>
立即使用
</a>
{{/
toUse
}}
{{/if}}
</div>
{{/
couponList
}}
...
...
Please
register
or
login
to post a comment