tide-command.js 707 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';

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