...
|
...
|
@@ -34,7 +34,8 @@ exports.index = (req, res, next) => { |
|
|
pageChannel: {
|
|
|
boys: true
|
|
|
},
|
|
|
showFooterTab: footerModel.getUrlData('mine')
|
|
|
showFooterTab: footerModel.getUrlData('mine'),
|
|
|
localCss: true
|
|
|
}));
|
|
|
}
|
|
|
}).catch(next);
|
...
|
...
|
@@ -74,7 +75,14 @@ exports.myDetails = (req, res, next) => { |
|
|
* @param next
|
|
|
*/
|
|
|
|
|
|
exports.record = (req, res) => {
|
|
|
exports.record = (req, res, next) => {
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
let udid = req.user.udid;
|
|
|
|
|
|
let page = req.query.page || 1;
|
|
|
|
|
|
let limit = 10;
|
|
|
|
|
|
let headerData = headerModel.setNav({
|
|
|
navTitle: '浏览记录'
|
...
|
...
|
@@ -86,10 +94,20 @@ exports.record = (req, res) => { |
|
|
page: 'browse-record',
|
|
|
title: '浏览记录',
|
|
|
browseRecordPage: true,
|
|
|
pageFooter: true
|
|
|
pageFooter: true,
|
|
|
_noLazy: true,
|
|
|
localCss: true
|
|
|
};
|
|
|
|
|
|
res.render('browse-record', responseData);
|
|
|
indexModel.recordContent(uid, udid, page, limit).then((result) => {
|
|
|
|
|
|
if (result.browseRecord && result.browseRecord.length > 0) {
|
|
|
responseData.browseRecord = result.browseRecord;
|
|
|
}
|
|
|
|
|
|
res.render('browse-record', responseData);
|
|
|
|
|
|
}).catch(next);
|
|
|
|
|
|
};
|
|
|
|
...
|
...
|
@@ -106,7 +124,7 @@ exports.recordContent = (req, res, next) => { |
|
|
|
|
|
let page = req.query.page || 1;
|
|
|
|
|
|
let limit = 30;
|
|
|
let limit = 10;
|
|
|
|
|
|
indexModel.recordContent(uid, udid, page, limit).then((result) => {
|
|
|
|
...
|
...
|
|