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
6f00ad6ecbf1a80305c8b1379dcb1ba249385efa
1 parent
a73447c9
新增第二屏图片
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
apps/activity/models/coupon.js
apps/activity/views/action/coupon.hbs
apps/activity/models/coupon.js
View file @
6f00ad6
...
...
@@ -21,6 +21,7 @@ const getPageInfo = (pageInfo) => {
dest
.
oldUserCouponPic
=
pageInfo
.
data
.
oldUserCouponPic
;
dest
.
mobile
=
pageInfo
.
data
.
mobile
;
dest
.
wechatShare
=
true
;
dest
.
secondScreenPic
=
pageInfo
.
data
.
secondScreenPic
;
// 强制活动开始,活动上线产品要求这样设置
pageInfo
.
data
.
flag
=
1
;
...
...
@@ -91,7 +92,7 @@ exports.getCoupon = (data) => {
method
:
'wap.order.drawOrderShareCoupon'
},
// 处理完成后,发给后端
// 处理完成后,发给后端
phoneData
=
Object
.
assign
(
defaultParam
,
data
);
return
api
.
get
(
''
,
phoneData
).
then
(
result
=>
{
...
...
@@ -108,10 +109,10 @@ exports.registerAndSendCoupon = (data) => {
method
:
'wap.order.registerAndSendCoupon'
},
// 处理完成后,发给后端
// 处理完成后,发给后端
verifyData
=
Object
.
assign
(
defaultParam
,
data
);
return
api
.
get
(
''
,
verifyData
).
then
(
result
=>
{
return
getUserStatus
(
result
);
});
// 所有数据返回一个 Promise,方便 Promise.all 调用
};
});
// 所有数据返回一个 Promise,方便 Promise.all 调用
};
\ No newline at end of file
...
...
apps/activity/views/action/coupon.hbs
View file @
6f00ad6
...
...
@@ -2,6 +2,9 @@
<div
class=
"receive-coupon-page"
>
<div
class=
"bg-contain"
>
<img
src=
"
{{
image
bgImg
640
1136
}}
"
>
{{#if
secondScreenPic
}}
<img
src=
"
{{
image
secondScreenPic
}}
"
>
{{/if}}
</div>
<p
class=
"hidden"
id=
"orderCode"
>
{{
ordercode
}}
</p>
<p
class=
"hidden"
id=
"oldUserCouponPic"
>
{{
image
oldUserCouponPic
}}
</p>
...
...
Please
register
or
login
to post a comment