tide-command.js 782 Bytes
'use strict';

const headerModel = require('../../../doraemon/models/header'); // 头部model
const tideCommandModel = require('../models/tide-command');

exports.tideCommand = (req, res, next) => {
    let uid = req.user.uid,
        contentCode = '29958987ef0c0f830fad03d7e54f6061',
        hideTips = req.query.hideTips === 'true' ? true : false;

    req.ctx(tideCommandModel).invitionData(uid, contentCode, hideTips).then(result => {
        res.render('tide-command', {
            page: 'tide-command',
            pageHeader: headerModel.setNav({
                navTitle: '我的潮流口令'
            }),
            title: '我的潮流口令',
            width750: true,
            localCss: true,
            invitionDta: result
        });
    }).catch(next);
};