...
|
...
|
@@ -9,6 +9,7 @@ const co = Promise.coroutine; |
|
|
const headerModel = require('../../../doraemon/models/header'); // 头部model
|
|
|
const _ = require('lodash');
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
const stdntMrktModel = require('../models/student-market');
|
|
|
|
|
|
const userAcquireStatus = (uid, couponIds) => {
|
|
|
if (couponIds != '') {
|
...
|
...
|
@@ -185,3 +186,25 @@ exports.index = (req, res, next) => { |
|
|
}).catch(next);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 新版学生营销页面
|
|
|
*/
|
|
|
exports.newIndex = (req, res, next) => {
|
|
|
stdntMrktModel.getStudentGoods({
|
|
|
limit: req.query.limit || '60',
|
|
|
stocknumber: req.query.stocknumber || '1'
|
|
|
}).then(result => {
|
|
|
let title = '有货学生专享优惠';
|
|
|
|
|
|
res.render('student-market-new', {
|
|
|
title: title,
|
|
|
pageHeader: headerModel.setNav({
|
|
|
navTitle: title,
|
|
|
navBtn: true
|
|
|
}),
|
|
|
page: 'student-market-new',
|
|
|
goods: result
|
|
|
});
|
|
|
}).catch(next);
|
|
|
}; |
...
|
...
|
|