...
|
...
|
@@ -7,8 +7,7 @@ const couponModel = require(`${mRoot}/coupon`); // 领取优惠券 model |
|
|
exports.index = (req, res, next) => {
|
|
|
var renderData = {
|
|
|
module: 'activity',
|
|
|
page: 'coupon',
|
|
|
appDownLoadLink: 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho'
|
|
|
page: 'coupon'
|
|
|
},
|
|
|
ordercode = req.query.ordercode,
|
|
|
uid = req.query.uid,
|
...
|
...
|
@@ -28,7 +27,6 @@ exports.index = (req, res, next) => { |
|
|
// 获取信息成功
|
|
|
couponData.ordercode = ordercode;
|
|
|
}
|
|
|
couponData.appDownLoadLink = renderData.appDownLoadLink;
|
|
|
res.render('coupon', {
|
|
|
result: couponData,
|
|
|
module: 'activity',
|
...
|
...
|
@@ -61,6 +59,7 @@ exports.getCoupon = (req, res, next) => { |
|
|
// 获取信息成功
|
|
|
couponData.ordercode = ordercode;
|
|
|
}
|
|
|
|
|
|
// console.log(couponData);
|
|
|
res.json({
|
|
|
result: couponData
|
...
|
...
|
@@ -94,6 +93,7 @@ exports.verify = (req, res, next) => { |
|
|
// 获取信息成功
|
|
|
couponData.ordercode = ordercode;
|
|
|
}
|
|
|
|
|
|
// console.log(couponData);
|
|
|
res.json({
|
|
|
result: couponData
|
...
|
...
|
|