Authored by 王水玲

星潮教室 收藏修改

... ... @@ -23,7 +23,7 @@ const headTab = [
name: '星专题'
},
{
url: '/guang/star/collocation',
url: '/guang/star/collocation?uid=',
name: '星搭配'
}
];
... ... @@ -58,6 +58,7 @@ exports.index = (req, res) => {
const pageHeadTab = _.cloneDeep(headTab);
pageHeadTab[0].cur = true;
pageHeadTab[2].url += (req.query.uid || 0);
res.render('star/index', _.assign({
page: 'star',
isStarIndexPage: true,
... ... @@ -90,6 +91,7 @@ exports.special = (req, res, next) => {
const pageHeadTab = _.cloneDeep(headTab);
pageHeadTab[1].cur = true;
pageHeadTab[2].url += (req.query.uid || 0);
res.render('star/special', _.assign({
page: 'special'
}, processPublicData(req, '星潮教室'), {
... ... @@ -111,6 +113,7 @@ exports.collocation = (req, res) => {
const pageHeadTab = _.cloneDeep(headTab);
pageHeadTab[2].cur = true;
pageHeadTab[2].url += (req.query.uid || 0);
res.render('star/collocation', _.assign({
isStarDetailPage: true,
page: 'collocation'
... ... @@ -128,7 +131,7 @@ exports.collocation = (req, res) => {
*/
exports.collocationList = (req, res, next) => {
let params = req.query;
let uid = req.user.uid || 0;
let uid = req.query.uid || 0; // 客户端访问,不能使用 cookie
starModel.getCollocationListData(params, uid).then((result) => {
res.render('star/list', _.assign({
... ...