...
|
...
|
@@ -17,9 +17,7 @@ exports.index = (req, res, next) => { |
|
|
renderData.mobile = mobile;
|
|
|
renderData.ordercode = ordercode;
|
|
|
|
|
|
// 测试假数据
|
|
|
// res.render('coupon', renderData); // 渲染页面
|
|
|
couponModel.getPageInfo({
|
|
|
req.ctx(couponModel).getPageInfo({
|
|
|
ordercode: ordercode,
|
|
|
uid: uid
|
|
|
}).then((couponData) => {
|
...
|
...
|
@@ -49,9 +47,7 @@ exports.getCoupon = (req, res, next) => { |
|
|
renderData.mobile = mobile;
|
|
|
renderData.ordercode = ordercode;
|
|
|
|
|
|
// //测试假数据
|
|
|
// res.render('coupon', renderData); // 渲染页面
|
|
|
couponModel.getCoupon({
|
|
|
req.ctx(couponModel).getCoupon({
|
|
|
ordercode: ordercode,
|
|
|
mobile: mobile
|
|
|
}).then((couponData) => {
|
...
|
...
|
@@ -59,8 +55,6 @@ exports.getCoupon = (req, res, next) => { |
|
|
// 获取信息成功
|
|
|
couponData.ordercode = ordercode;
|
|
|
}
|
|
|
|
|
|
// console.log(couponData);
|
|
|
res.json({
|
|
|
result: couponData
|
|
|
});
|
...
|
...
|
@@ -72,8 +66,6 @@ exports.verify = (req, res, next) => { |
|
|
module: 'activity',
|
|
|
page: 'coupon'
|
|
|
};
|
|
|
|
|
|
|
|
|
var ordercode = req.query.ordercode,
|
|
|
mobile = req.query.mobile,
|
|
|
identifycode = req.query.identifycode;
|
...
|
...
|
@@ -82,9 +74,7 @@ exports.verify = (req, res, next) => { |
|
|
renderData.ordercode = ordercode;
|
|
|
renderData.identifycode = identifycode;
|
|
|
|
|
|
// //测试假数据
|
|
|
// res.render('coupon', renderData); // 渲染页面
|
|
|
couponModel.registerAndSendCoupon({
|
|
|
req.ctx(couponModel).registerAndSendCoupon({
|
|
|
ordercode: ordercode,
|
|
|
mobile: mobile,
|
|
|
identifycode: identifycode
|
...
|
...
|
@@ -93,8 +83,6 @@ exports.verify = (req, res, next) => { |
|
|
// 获取信息成功
|
|
|
couponData.ordercode = ordercode;
|
|
|
}
|
|
|
|
|
|
// console.log(couponData);
|
|
|
res.json({
|
|
|
result: couponData
|
|
|
});
|
...
|
...
|
|