Authored by htoooth

add version

... ... @@ -92,12 +92,13 @@ const newProduct = (req, res, next) => {
};
const reduction = (req, res, next) => {
let uid = req.user.uid;
let page = +req.query.page || 1;
let type = req.query.type || '';
let limit = 10;
favoriteService.reduction().then((result) => {
return res.render('reduction', result);
favoriteService.reduction(uid, page, limit, type, 0, 'Y').then((result) => {
return res.render('home/favorite/reduction', result);
}).catch(next);
};
... ...
... ... @@ -305,6 +305,10 @@ const newProductAsync = (uid, page, limit, id) => {
})();
};
const reduction = (uid, page, limit, type) =>{
}
module.exports = {
getFavoriteTabs,
favoriteBrandListAsync,
... ...
... ... @@ -41,5 +41,6 @@
{{> analysis}}
{{/if}}
<script>window.cdn='{{cdn}}';</script>
<script>window._version='{{version}}';</script>
</body>
</html>
... ...