...
|
...
|
@@ -17,19 +17,21 @@ const getPageInfo = (pageInfo) => { |
|
|
dest.activityID = pageInfo.id;
|
|
|
dest.title = pageInfo.data.h5Title;
|
|
|
dest.activityDesc = pageInfo.data.activityDesc;
|
|
|
dest.formatActivityDesc = pageInfo.data.formatActivityDesc;
|
|
|
dest.couponPic = pageInfo.data.couponPic;
|
|
|
dest.oldUserCouponPic = pageInfo.data.oldUserCouponPic;
|
|
|
dest.mobile = pageInfo.data.mobile;
|
|
|
dest.wechatShare = true;
|
|
|
dest.secondScreenPic = pageInfo.data.secondScreenPic;
|
|
|
dest.activityEndPic = pageInfo.data.activityEndPic;
|
|
|
dest.buttonLink = pageInfo.data.buttonLink;
|
|
|
|
|
|
// 强制活动开始,活动上线产品要求这样设置
|
|
|
pageInfo.data.flag = 1;
|
|
|
if (pageInfo.data.flag === 1) {
|
|
|
dest.bgImg = pageInfo.data.activityNormalPic;
|
|
|
} else {
|
|
|
if (pageInfo.data.flag === 3 || pageInfo.data.flag === 4 || pageInfo.data.flag === 5) {
|
|
|
// flag为3 表示活动结束 , 4 表示未开始
|
|
|
dest.bgImg = pageInfo.data.activityEndPic;
|
|
|
dest.ended = true;
|
|
|
} else {
|
|
|
dest.bgImg = pageInfo.data.activityNormalPic;
|
|
|
}
|
|
|
dest.message = pageInfo.data.returnMsg;
|
|
|
}
|
...
|
...
|
@@ -115,4 +117,4 @@ exports.registerAndSendCoupon = (data) => { |
|
|
return api.get('', verifyData).then(result => {
|
|
|
return getUserStatus(result);
|
|
|
}); // 所有数据返回一个 Promise,方便 Promise.all 调用
|
|
|
}; |
|
|
}; |
|
|
\ No newline at end of file |
...
|
...
|
|